dvbrusselen Posted May 20, 2018 Report Share Posted May 20, 2018 Hi Guys, Trying to create a call queue curl -v -X PUT -H "X-Auth-Token: XXXXXXXXXXXXXXXXXXXXXXXXXXXXX" -H "Content-Type: application/json" https://api.company.be:8443/v2/accounts/XXXXXXXXXXXXXXXXXXXXXxxxx/queues -d '{"data":{"name":"{QUEUE_NAME}"}}' But did is not working, am i doing something wrong? . Receive error 404. LOGS > PUT /v2/accounts/XXXXXXXXXXXXXXXXXXXXXXXXXXx/queues HTTP/1.1 > User-Agent: curl/7.38.0 > Host: api.company.be:8443 > Accept: */* > X-Auth-Token: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx > Content-Type: application/json > Content-Length: 32 > * upload completely sent off: 32 out of 32 bytes < HTTP/1.1 404 Not Found < access-control-allow-headers: content-type, depth, user-agent, x-http-method-override, x-file-size, x-requested-with, if-modified-since, x-file-name, cache-control, x-auth-token, x-kazoo-cluster-id, if-match < access-control-allow-methods: OPTIONS < access-control-allow-origin: * < access-control-expose-headers: content-type, x-auth-token, x-request-id, x-kazoo-cluster-id, location, etag, etag < access-control-max-age: 86400 < content-length: 951 < content-type: application/json < date: Sun, 20 May 2018 22:46:43 GMT * Server Cowboy is not blacklisted < server: Cowboy < x-request-id: 2656968e186ae376afbd7f42b4ac740a < * Connection #0 to host api.company.com left intact {"data":{"message":"not found"},"error":"404","message":"not_found","status":"error","timestamp":"2018-05-20T22:46:44","version":"4.2.32","node":"pXirDLIE4TYVJCCqQ0gJFQ","request_id":"2656968e186ae376afbd7f42b4ac740a","auth_token":"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXx"} Quote Link to comment Share on other sites More sharing options...
dvbrusselen Posted May 20, 2018 Author Report Share Posted May 20, 2018 Same problem for storage curl -v -H "X-Auth-Token: xxxxxxxxxxxxxxxxxxxxx" "https://api.comp.be/v2/accounts/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/storage" < HTTP/1.1 404 Not Found < Date: Sun, 20 May 2018 23:32:19 GMT < Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips < Content-Length: 250 < Content-Type: text/html; charset=iso-8859-1 < <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> Quote Link to comment Share on other sites More sharing options...
2600Hz Employees ... Posted May 21, 2018 2600Hz Employees Report Share Posted May 21, 2018 16 hours ago, dvbrusselen said: curl -X PUT \ https://api.company.be:8443/v2/accounts/XXXXXXXXXXXXXXXXXXXXXxxxx/queues -H "X-Auth-Token: XXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \ -H "Content-Type: application/json" \ -v \ -d '{ "data": { "name": "{QUEUE_NAME}" } }' The endpoint your are trying to hit does not exist, you need to use `qubicle_queues` instead of simply `queues`, like so: /v2/accounts/{ACCOUNT_ID}/qubicle_queues Here is the documentation for this particular endpoint: https://docs.2600hz.com/qubicle/doc/crossbar/qubicle_queues/#create-a-queue Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.