Creates new ticket and returns ticket information. Sends information about the ticket to client (device) associated with this session id.
Auth:
ApiKey header
Request:
Code Block |
---|
curl --location --request POST 'https://ombori-queue-dev.azure-api.net/api/organizations/kjell/queues/c179a3a2-9fd7-4e12-96e7-19d9e957e094/join' \ --header 'ApiKey: XYZ' \ --header 'Content-Type: application/json' \ --data-raw '{ "session": "foo", "position": { "customerInfo": [ "Jörgen", "Svensson", "2200001910105" ] } }' |
Response:
Code Block |
---|
{ "positionUrl": "https://queue.dev.ombori.com/kjell/queues/c179a3a2-9fd7-4e12-96e7-19d9e957e094/positions/5387920d-dfdd-4904-8a51-3f007effcffa", "position": { "status": "pending", "priority": 0, "location": null, "label": "A3", "customerInfo": [ "Jörgen", "Svensson", "2200001910105" ], "id": "5387920d-dfdd-4904-8a51-3f007effcffa", "type": "anonymous", "queue": "c179a3a2-9fd7-4e12-96e7-19d9e957e094", "createdAt": "2020-11-17T11:45:57.114Z", "numberInTheQueue": 6 } } |