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

Unable to update ticket status via API #124

Closed
1 of 2 tasks
aravinth2094 opened this issue Jan 8, 2019 · 2 comments
Closed
1 of 2 tasks

Unable to update ticket status via API #124

aravinth2094 opened this issue Jan 8, 2019 · 2 comments

Comments

@aravinth2094
Copy link

aravinth2094 commented Jan 8, 2019

  • BUG
  • FEATURE

What happened:
I was trying to update the ticket status and obtained the following response

{
    "success": false,
    "error": "Invalid Post Data"
}

What did you expect to happen:
Expected the ticket status to be updated

How to reproduce it (as minimally and precisely as possible):
Use the following code json in the request body (With admin accesstoken)
URL: http://{url}/api/v1/tickets/{id}
PUT request

{
    "status": 2,
    "group": "yourGroupId",
    "issue": "Your Issue Text",
    "subject": "Your Issue Subject"
}

Anything else we need to know?:
The API documentation is incomplete

Environment:

  • Trudesk Version: v1.0.4
  • OS (e.g. from /etc/os-release): Alpine Linux v3.7
  • Node.JS Version: v9.11.1
  • MongoDB Version: v3.6.3
  • Is this hosted on cloud.trudesk.io: No
@polonel
Copy link
Owner

polonel commented Jan 8, 2019

I have made changes to better understand the error message. Also, I have changed the way the status is set in this API call and validated it is working. Make sure you're sending the objectid (5c31621a637bd2255c1065f3) and not the UID.

The ticket object id can be retrieved using the /api/v1/tickets/{uid} endpoint. In an upcoming release, the API will get a redesign to better support both UID and ID.

@aravinth2094
Copy link
Author

Okay, thanks! 👍

polonel added a commit that referenced this issue Jan 9, 2019
## [1.0.5](v1.0.4...v1.0.5) (2019-01-09)

### Bug Fixes

* **api:** tickets [#124](#124) - unable to update ticket status ([ab614a4](ab614a4))
* **backup:** crash on restore ([a613612](a613612))
* **backup:** restore directory fails to create ([d68a045](d68a045))
* **backup:** restore sending error response to soon ([605c8d8](605c8d8))
* **mailcheck:** event leak ([23eaab3](23eaab3))
* **nav:** disappearing dashboard button ([32a4e87](32a4e87))
* **overdue:** overdue card showing incorrect tickets ([72e2584](72e2584))
* **tags:** tags with min2 were not creating ([9a22364](9a22364))
* **ticket:** fix [#116](#116) - ability to configure character limit on tickets ([88ae488](88ae488))
polonel added a commit that referenced this issue Jan 9, 2019
## [1.0.5](v1.0.4...v1.0.5) (2019-01-09)

### Bug Fixes

* **api:** tickets [#124](#124) - unable to update ticket status ([ab614a4](ab614a4))
* **backup:** crash on restore ([a613612](a613612))
* **backup:** restore directory fails to create ([d68a045](d68a045))
* **backup:** restore sending error response to soon ([605c8d8](605c8d8))
* **mailcheck:** event leak ([23eaab3](23eaab3))
* **nav:** disappearing dashboard button ([32a4e87](32a4e87))
* **overdue:** overdue card showing incorrect tickets ([72e2584](72e2584))
* **tags:** tags with min2 were not creating ([9a22364](9a22364))
* **ticket:** fix [#116](#116) - ability to configure character limit on tickets ([88ae488](88ae488))
polonel added a commit that referenced this issue Jan 9, 2019
## [1.0.5](v1.0.4...v1.0.5) (2019-01-09)

### Bug Fixes

* **api:** tickets [#124](#124) - unable to update ticket status ([ab614a4](ab614a4))
* **backup:** crash on restore ([a613612](a613612))
* **backup:** restore directory fails to create ([d68a045](d68a045))
* **backup:** restore sending error response to soon ([605c8d8](605c8d8))
* **mailcheck:** event leak ([23eaab3](23eaab3))
* **nav:** disappearing dashboard button ([32a4e87](32a4e87))
* **overdue:** overdue card showing incorrect tickets ([72e2584](72e2584))
* **tags:** tags with min2 were not creating ([9a22364](9a22364))
* **ticket:** fix [#116](#116) - ability to configure character limit on tickets ([88ae488](88ae488))
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

2 participants