You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to assign a ticket to a particular agent.
As suggested by the API documentation (https://github.com/uvdesk/api-bundle/wiki/Ticket-Related-APIs) I tried:
To send a PUT request to this endpoint: {my_localhost_url}/api/v1/ticket/{ticketId}/agent.
I assume that "agent", after the last slash, is the id of the agent you want to assign the ticket, isn't it?
The API response that I got is this:
{
"status": false,
"message": "No route found for \"PUT /api/v1/ticket/2/4\""
}
I should say that I've verified and the agent id exists.
Same thing for the ticket which id is 2.
My bad, I didn't use the properly data format.
The only thing I had to do is to simply send the data inside the body, and format it as json: json { "id": "4" }
I apologize for this because there's no issue, it was just me not using the PUT method correctly.
Description
I'm trying to assign a ticket to a particular agent.
As suggested by the API documentation (https://github.com/uvdesk/api-bundle/wiki/Ticket-Related-APIs) I tried:
To send a PUT request to this endpoint: {my_localhost_url}/api/v1/ticket/{ticketId}/agent.
I assume that "agent", after the last slash, is the id of the agent you want to assign the ticket, isn't it?
The API response that I got is this:
I should say that I've verified and the agent id exists.
Same thing for the ticket which id is 2.
How to reproduce
To reproduce this issue:
Thanks in advance!
The text was updated successfully, but these errors were encountered: