Update queue settings
Message Queue
Update queue settings
Updates the queue settings of an instance, allowing control over message enqueue behavior when disconnected.
PUT
Update queue settings
Documentation Index
Fetch the complete documentation index at: https://developer.z-api.io/llms.txt
Use this file to discover all available pages before exploring further.
Concept
This method allows updating settings related to the message queue behavior of an instance. Currently, it is possible to configure whether the instance should accept new messages in the queue while disconnected.Attributes
Required
Your instance ID. Available in the Z-API panel under Instances.
Your Z-API instance token.
Body (Required)
Defines whether the instance should block message enqueueing when it is disconnected.
Request Body
Queue behavior
- By default, Z-API allows sending messages to the queue even when the instance does not have a connected number
- When
disableEnqueueWhenDisconnectedistrue, new messages will not be added to the queue while the instance is disconnected - When
disableEnqueueWhenDisconnectedisfalse, the default behavior is maintained (messages continue to be enqueued even when disconnected) - This setting is useful to prevent message accumulation in the queue when an instance is reused without a connected number