Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't assign a ticket using the API #15

Closed
ricardotormo opened this issue Feb 17, 2021 · 1 comment
Closed

I can't assign a ticket using the API #15

ricardotormo opened this issue Feb 17, 2021 · 1 comment

Comments

@ricardotormo
Copy link

ricardotormo commented Feb 17, 2021

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:

{
    "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.

How to reproduce

To reproduce this issue:

  1. Donwload and install uvdesk-community-skeleton.
  2. Install the api-bundle.
  3. Set up your api, following these steps: https://www.uvdesk.com/en/blog/api-resource/.
  4. Open Postman and try to assign a ticket using the above mentioned method.

Thanks in advance!

@ricardotormo
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant