Zaqar/devguide/createQueue
< Zaqar | devguide
Revision as of 20:46, 19 August 2013 by CatherineR (talk | contribs) (Created page with "'''Create Queue''' Template: PUT /v1/queues/{queue_name} Normal response code(s): 201 Error response codes: badRequest (400), unauthorized (401), unauthorized (406) This o...")
Create Queue
Template: PUT /v1/queues/{queue_name}
Normal response code(s): 201
Error response codes: badRequest (400), unauthorized (401), unauthorized (406)
This operation creates a new queue. queue_name is the name given to the queue. The name MUST NOT exceed 64 bytes in length, and is limited to US-ASCII letters, digits, underscores, and hyphens. The body of the PUT is empty.
Request example:
PUT /v1/queues/fizbat HTTP/1.1 Host: marconi.example.com
Response example:
HTTP/1.1 201 Created Location: /v1/queues/fizbit