I have my end users creating requests vía
POST https://{my_app}.zendesk.com/api/v2/requests
with header
Authorization => Basic [base64({user-email}/API_TOKEN)
and body:
{
"request": {
"subject": "Some subject",
"priority": "high",
"type":"incident",
"requester": {
"name":"Enduser Name",
"email":"enduser@mail.com"
},
"comment": {
"body": "Test - incident / high priority"
}
}
}
Everything works except the priority and type fields return null. If I replace the authorization email by an Agent's email, it works fine.
From the Request API documentation, I understand this is the way to create requests without making the end user to register an account, and all fields in the JSON table -including type and priority- could be set. What am I missing here?
