SALES: 1-800-867-1380

Update Queue

Updated: February 3, 2015

Updates the queue description and sends the updates status to the FE/BE to update corresponding DB entries.


Method Request URI HTTP version

PUT{subscription ID}/services/ServiceBus/Namespaces/{Namespace}/Queues/{Queue Path}


The following table describes required and optional request headers.


Request Header Description







Note that the request also requires a client certificate. This certificate must match the certificate you uploaded for that particular subscription.

The following table describes the key elements of the request body. These are the only properties that you can update. The body must include the full queue description, even if you are only changing one property. The recommended flow is as follows:

  1. Get queue description.

  2. Update the required elements.

  3. Pass in the updated description.


Property Name Type Description


XML Datetime

Based on whether DeadLettering is enabled, if a message has been stored in the queue for more than the specified time, it is automatically moved to DeadLetterQueue or deleted. This value is overwritten by a TTL specified on the message if the message TTL is smaller than the TTL set on the queue. This value is immutable after the queue has been created:

  • Range: 1 second – 14 days.

  • Default: 14 days.


XML Datetime

This setting determines the amount of time in seconds in which a message should be locked for processing by a receiver. After this period, the message is unlocked and available for consumption by the next receiver. Settable only at queue creation time:

  • Range: 0–5 min. 0 means that the message is not locked.

  • Default: 30 seconds.



Settable only at queue creation time.

  • Default: False.

This field governs how the Service Bus handles a message with an expired TTL. If it is enabled and a message expires, the Service Bus moves the message from the queue into the queue’s dead-letter subqueue. If disabled, the message is permanently deleted from the queue.


Time Span

A property that specifies the time span during which the Service Bus detects message duplication.

  • Range: 1 second–7 days.

  • Default: 10 minutes.


Unsigned Integer

The maximum number of times Service Bus will try to deliver a message before being dead-lettered or discarded. The default is 10.

The response includes an HTTP status code and a set of response headers.

If you create a queue with a name that contains special or encoded characters (for example, "test?Name=value&", which gets encoded to "test%3FName%3Dvalue%26", a (401) Unauthorized exception will be generated.


Code Description


Successfully updated queue description.


Authorization failure.


Entity does not exist under this namespace.


Internal error.

For information about status codes, see Status and Error Codes.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft