Defect #33975

REST API format: JSON, Update Catelogy response incorrect.

Added by Terence Lien 8 months ago. Updated 8 months ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Documentation
Target version:-
Resolution: Affected version:4.1.1

Description

As Rest_IssueCategories notes,

PUT
Updates the issue category of given id

Parameters:

Same as issue category creation

Response:

200 OK: issue category was updated
422 Unprocessable Entity: issue category was not updated due to validation failures (response body contains the error messages)

I had test this function as:


/redmine/issue_categories/{1}.json?id=117&key={0}


then body given json data
{"issue_category":{"name":"Test", "assigned_to_id":1}}

and it's update the category name and assigned_to correctly
but response Status is 204 No Content.
Thanks.

SnapShot_20200910_003.png (12 KB) Terence Lien, 2020-09-10 11:55


Related issues

Related to Redmine - Defect #30073: Ajax Request Returns 200 but an error event is fired inst... Closed

History

#1 Updated by Go MAEDA 8 months ago

  • Related to Defect #30073: Ajax Request Returns 200 but an error event is fired instead of success added

#2 Updated by Go MAEDA 8 months ago

  • Category changed from REST API to Documentation

The response code has been changed in Redmine 4.1.0 (#30073) but Wiki pages are not updated.

#3 Updated by Terence Lien 8 months ago

Thank you Go MAEDA.

I suggest that doc could be more detail about PUT/POST description.
I tried this function until success work that spends over 3 hours ^^|||

PUT
/issue_categories.:format/{:issue_category_id}.:format

POST
/projects/{:project_id}/issue_categories.:format

#4 Updated by Terence Lien 8 months ago

Hello Go MAEDA,

does DELETE response also changed to 204 or something??
Thanks.

Also available in: Atom PDF