Update an item in a queue
PUT/social-media-posting/category/queues/:queueId/items/:itemId
Updates the content or variations of a specific item within a category queue.
Request
Version stringrequired
API Version
Available options
v3queueId stringrequired
Category queue ID
itemId stringrequired
Queue item ID
- application/json
- Body
- Example (auto)
Bodyrequired
- 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)
locationIdstringrequired
Location ID
sessionIdstring
Edit session ID
modifiedPostPayloadobject
Modifications to the original post
newOrderobject
New order value or position keyword (cyclic-aware). Accepts:
For positions between items, FE calculates: Math.floor((prevItem.order + nextItem.order) / 2)
variationsobject[]
Variations
primaryImagestring
Primary media URL (image)
{
"locationId": "609e126a1c4ae1001291e1b5",
"sessionId": "60af88475f1b2c001f5d5f4b",
"modifiedPostPayload": {
"summary": "Updated queued post content",
"media": []
},
"newOrder": "top",
"variations": [
{
"content": "Try this variation",
"mentions": [],
"ogTags": {
"metaLink": "https://example.com"
}
}
],
"primaryImage": "http://example.com/media.png"
}
The queue item has been successfully updated.
- application/json
- Schema
- Example (auto)
Schema
successbooleanrequired
Success or Failure
statusCodenumberrequired
Status Code
resultsobjectrequired
Response payload
traceIdstring
Trace ID for debugging
{
"success": true,
"statusCode": 200,
"results": {
"message": "Queue item updated successfully",
"queueItem": {
"_id": "60af88475f1b2c001f5d5f4b",
"order": 1000,
"variations": [
{
"_id": "60af88475f1b2c001f5d5f4c",
"content": "Check out our latest blog post! #marketing #socialmedia",
"mentions": [
{
"platform": "instagram",
"username": "example_user",
"offset": 10,
"length": 12
}
],
"ogTags": {
"metaLink": "https://example.com",
"metaImage": "https://example.com/image.png",
"ogTitle": "Example Title"
}
}
],
"primaryImage": "https://example.com/images/post-image.png",
"postId": "60af88475f1b2c001f5d5f4d",
"post": {
"_id": "60af88475f1b2c001f5d5f4d",
"summary": "Scheduled queue post",
"media": [],
"type": "post"
},
"errors": [],
"scheduledDateTime": "2023-10-15T10:00:00.000Z",
"scheduledVariationIndex": 0,
"isSkipped": false,
"currentVariation": 0
},
"updatedSlots": [
{
"itemId": "60af88475f1b2c001f5d5f4b",
"scheduledDateTime": "2023-10-15T10:00:00.000Z",
"isSkipped": false,
"order": 18000
}
],
"totalPostsChanged": 5
},
"traceId": "TRACE-abc123-def456"
}