a Code Block {
"error_type": "Object not found error",
"success": false
}
If you provide the wrong client_id, the server will return code 404 with a message as below:
EXAMPLE
We will know more about the API through the example below:
Request
I will call API to create new Agent:
Code Block |
---|
curl \ -H "X-Auth-Token: eyaskjksadkasd9.9123kjsadhkj123jhasdjajsjsdhKS.IH5uHASSJsadnbads980asTHo9dhljM" \ -X POST -d "{ \t\"passwd\": \"12345678\", \t \"user_type\": \"agent\",\t\"landing_page\": \"string\", \t\"first_name\": \"string\", \t\"active\": true, \t\"default_mod2\": \"string\", \t\"report_group\": true, \t\"card_id\": 0, \t\"show_carrier_trunk_drop_only\": true, \t\"name\": \"dnhai\", \t\"report_fields\": \"string\", \t\"email\": \"[email protected]\"}" \ "http://88.99.175.131:8000/v1/auth/as_client" |
Response
Code Block |
---|
{ "object_id": 1795, "success": true } |