Skip to content

HighLevel: Update an item in a queue

HighLevel socialPlanner.updateQueueItem: arguments, response, policy and SDK examples.

← Social planner operations · Get started

Operation gohighlevel.updatequeueitem

Provider route: PUT /social-media-posting/category/queues/{queueId}/items/{itemId}. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/gohighlevel with npm, or alter-sdk-gohighlevel with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { HighLevelIntegration } from "@alter-ai/gohighlevel";
async function execute(input: Parameters<HighLevelIntegration["socialPlanner"]["updateQueueItem"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new HighLevelIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.socialPlanner.updateQueueItem(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_gohighlevel import HighLevelIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = HighLevelIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.social_planner.update_queue_item(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.queueIdstringRequired within parent
path.itemIdstringRequired within parent
bodyModelRequired within parentExpand Update an item in a queue — request body — body

Referenced models: Update an item in a queue — request body — body

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Update an item in a queue — response body

Referenced models: Update an item in a queue — response body

37 more schemas are linked from the tables above, on the schema pages.

Update an item in a queue — response body
FieldTypePresenceDescription and constraints
$objectRoot
resultsModelRequired within parentExpand Update an item in a queue — response body — results
statusCodeJSONRequired within parent
statusCode (anyOf 1)numberAlternative
statusCode (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
successbooleanRequired within parent
traceIdstringOptional

Referenced models: Update an item in a queue — response body — results

Update an item in a queue — request body — body
FieldTypePresenceDescription and constraints
$objectRoot
locationIdstringRequired within parentLocation ID
modifiedPostPayloadJSONOptionalModifications to the original post
modifiedPostPayload (allOf 1)ModelAll variants applyExpand Update an item in a queue — request body — body modified Post Payload account Ids, apply Watermark, category Id, created By, facebook Post Details, follow Up Comment, gmb Post Details, instagram Post Details, linkedin Post Details, location Id, media, og Tags Details, pinterest Post Details, post Approval Details, schedule Date, schedule Time Updated, selected Best Time, status, summary, tags, tiktok Post Details, type, user Id, youtube Post Details
newOrderJSONOptionalNew order value or position keyword (cyclic-aware). Accepts:
- A number: explicit order value calculated by FE as midpoint between adjacent items
- "top": place at cyclic top (first to be scheduled next)
- "bottom": place at cyclic bottom (last to be scheduled)

For positions between items, FE calculates: Math.floor((prevItem.order + nextItem.order) / 2)
newOrder (oneOf 1)numberAlternative
newOrder (oneOf 2)stringAlternative
primaryImagestringOptionalPrimary media URL (image)
sessionIdstringOptionalEdit session ID
variationsarrayOptionalVariations
variations[]ModelEach itemExpand Update an item in a queue — request body — body variations item

Referenced models: Update an item in a queue — request body — body modified Post Payload account Ids, apply Watermark, category Id, created By, facebook Post Details, follow Up Comment, gmb Post Details, instagram Post Details, linkedin Post Details, location Id, media, og Tags Details, pinterest Post Details, post Approval Details, schedule Date, schedule Time Updated, selected Best Time, status, summary, tags, tiktok Post Details, type, user Id, youtube Post Details, Update an item in a queue — request body — body variations item

Update an item in a queue — response body — results
FieldTypePresenceDescription and constraints
$objectRoot
messagestringOptionalA message indicating the result of the operation.
queueItemJSONOptionalThe updated queue item.
queueItem (allOf 1)ModelAll variants applyExpand Clone a queue item — response body — results queue Item id, created At, current Variation, deleted, errors, last Scheduled Time, location Id, modified Post Payload, order, parent Post Id, post Id, primary Image, queue Id, updated At, variations
totalPostsChangedJSONOptional
totalPostsChanged (anyOf 1)numberAlternativeNumber of unique posts that had their slots changed
totalPostsChanged (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
updatedSlotsarrayOptionalUpdated slot information for items affected by reorder operation
updatedSlots[]ModelEach itemExpand Fetch slot information for queue items — response body — results slots item

Referenced models: Clone a queue item — response body — results queue Item id, created At, current Variation, deleted, errors, last Scheduled Time, location Id, modified Post Payload, order, parent Post Id, post Id, primary Image, queue Id, updated At, variations, Fetch slot information for queue items — response body — results slots item

Update an item in a queue — request body — body variations item
FieldTypePresenceDescription and constraints
$objectRoot
contentstringOptionalThe text content of the variation.
mentionsarrayOptionalPlatform-specific mentions within the content (e.g., @username references).
mentions[]objectEach item
ogTagsJSONOptionalOpen Graph tags for link previews.
ogTags (allOf 1)ModelAll variants applyExpand Update an item in a queue — request body — body variations item og Tags meta Image, meta Link, og Title

Referenced models: Update an item in a queue — request body — body variations item og Tags meta Image, meta Link, og Title

Clone a queue item — response body — results queue Item id, created At, current Variation, deleted, errors, last Scheduled Time, location Id, modified Post Payload, order, parent Post Id, post Id, primary Image, queue Id, updated At, variations
FieldTypePresenceDescription and constraints
$objectRoot
_idstringOptionalThe unique identifier of the queue item.
createdAtstringOptionalCreation timestamp
currentVariationJSONOptional
currentVariation (anyOf 1)numberAlternativeThe index of the current variation being used for this post
currentVariation (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
deletedbooleanOptionalIndicates if the item is deleted
errorsarrayOptionalList of errors associated with the queue item. Possible values: INVALID_USER_ID, PIXABAY_MEDIA.
errors[]stringEach item
lastScheduledTimeJSONOptional
lastScheduledTime (anyOf 1)stringAlternativeTimestamp of the last scheduled post. Always null for a new queue.
Format: date-time
lastScheduledTime (anyOf 2)nullAlternative
locationIdstringOptionalLocation ID
modifiedPostPayloadJSONOptionalThe formatted post data modified from original post.
modifiedPostPayload (allOf 1)ModelAll variants applyExpand Clone a queue item — response body — results queue Item id, created At, current Variation, deleted, errors, last Scheduled Time, location Id, modified Post Payload, order, parent Post Id, post Id, primary Image, queue Id, updated At, variations modified Post Payload id, account Id, account Ids, created At, created By, display Date, error, facebook Post Details, gmb Post Details, instagram Post Details, linkedin Post Details, location Id, media, media Optimization, og Tags Details, pinterest Post Details, post Approval Details, post Id, published At, source, status, summary, tags, thumbnail, tiktok Post Details, type, updated At, user, youtube Post Details
orderJSONOptional
order (anyOf 1)numberAlternativeThe order of the item in the queue.
order (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
parentPostIdstringOptionalThe ID of the parent post before splitting to individual social posts.
postIdstringOptionalThe ID of the original post, if any.
primaryImagestringOptionalThe primary image URL for the post.
queueIdstringOptionalThe ID of the queue this post belongs to
updatedAtstringOptionalLast update timestamp
variationsarrayOptionalA list of content variations for the post.
variations[]ModelEach itemExpand Fetch items from a queue — response body — results items item variations item

Referenced models: Clone a queue item — response body — results queue Item id, created At, current Variation, deleted, errors, last Scheduled Time, location Id, modified Post Payload, order, parent Post Id, post Id, primary Image, queue Id, updated At, variations modified Post Payload id, account Id, account Ids, created At, created By, display Date, error, facebook Post Details, gmb Post Details, instagram Post Details, linkedin Post Details, location Id, media, media Optimization, og Tags Details, pinterest Post Details, post Approval Details, post Id, published At, source, status, summary, tags, thumbnail, tiktok Post Details, type, updated At, user, youtube Post Details, Fetch items from a queue — response body — results items item variations item

Fetch slot information for queue items — response body — results slots item
FieldTypePresenceDescription and constraints
$objectRoot
isSkippedbooleanOptionalIndicates if this time slot is skipped
itemIdstringOptionalThe ID of the queue item
scheduledDateTimeJSONOptional
scheduledDateTime (anyOf 1)stringAlternativeThe updated scheduled date/time for this item
Format: date-time
scheduledDateTime (anyOf 2)nullAlternative
Update an item in a queue — request body — body variations item og Tags meta Image, meta Link, og Title
FieldTypePresenceDescription and constraints
$objectRoot
metaImageobjectOptionalURL of the image to display in link preview.
metaLinkobjectOptionalThe canonical URL of the content for link preview.
ogTitleobjectOptionalTitle to display in link preview.

SDK function policy ID: gohighlevel.updatequeueitem. Catalog operation: updateQueueItem. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Required provider scopes: ["socialplanner/category.write"]

Pinned headers: {"Version": "v3"}

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.