See Stacksync in action with a solution architect. Book a demo ↗
Queues

Queues

Update a queue

PATCH
/v1/workspaces/{workspace_id}/queues/{workflows_app_queue_id}

Rename a queue, pause or resume it, or change its flush rules. Only the fields sent change.

Authorization

Authorizationstringheaderrequired

Bearer <key>, where <key> is a workspace API key or a user API key. See Authentication.

Path Parameters

workspace_id*integer

The workspace. List the ones your key can reach with GET /v1/workspaces.

workflows_app_queue_id*string

The queue.

Formatuuid

Query Parameters

region*Regions

Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them

Value in"besg""usnv"

Request Body

application/json
  1. body
queue_name?|
Defaultnull
status?|
Defaultnull
flush_batch_size?|
Defaultnull
flush_record_max_age?|
Defaultnull
flush_rate_limit_max_flush_count?|
Defaultnull
flush_rate_limit_time_window?|
Defaultnull
flush_strategy?|
Defaultnull
validate_only?Validate Only

Run every check of the write and answer 204 without writing: a refused write answers the error the write would

Defaultfalse

Response Body

OK

application/json
  1. response
queue_id*Queue Id
queue_name*Queue Name
queue_resource_id*Queue Resource Id
status*QueueStatus
Value in"running""paused"
consumer_workflow_id*|

The workflow that receives the flushed records, if any

flush_batch_size*Flush Batch Size

Records sent to the consumer workflow per flush

flush_record_max_age*|

Seconds a record may wait before the queue flushes

flush_rate_limit_max_flush_count*|

Maximum flushes per rate limit window

flush_rate_limit_time_window*|

The rate limit window, in seconds

flush_strategy*AppQueueFlushStrategy

fifo sends the oldest records first, lifo the newest

Value in"fifo""lifo"
parent_folder_id*string|null
created_time*Created Time
Formatdate-time
last_modified_time*Last Modified Time
Formatdate-time
region*Regions
Value in"besg""usnv"
Update a queue
curl -X PATCH 'https://api.stacksync.com/v1/workspaces/0/queues/497f6eca-6276-4993-bfeb-53cbbbba6f08?region=besg' \  -H 'Content-Type: application/json' \  -d '{  "queue_name": "<queue_name>"}'
{  "queue_id": "<queue_id>",  "queue_name": "<queue_name>",  "queue_resource_id": "<queue_resource_id>",  "status": "running",  "consumer_workflow_id": "<consumer_workflow_id>",  "flush_batch_size": 0,  "flush_record_max_age": 0,  "flush_rate_limit_max_flush_count": 0,  "flush_rate_limit_time_window": 0,  "flush_strategy": "fifo",  "parent_folder_id": "<parent_folder_id>",  "created_time": "2027-01-15T09:00:00Z",  "last_modified_time": "2027-01-15T09:00:00Z",  "region": "besg"}