Project

General

Profile

Actions

Defect #33975

closed

REST API format: JSON, Update Catelogy response incorrect.

Added by Terence Lien over 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Documentation
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

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.


Files

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

Related issues

Related to Redmine - Defect #30073: Ajax Request Returns 200 but an error event is fired instead of successClosedGo MAEDA

Actions
Actions

Also available in: Atom PDF