Project

General

Profile

Defect #23921

Updated by Toshi MARUYAMA over 7 years ago

Hi, 

 I ran across an issue with the REST API that responded with a 200 OK when I think it should respond with an error. 

 If I try to PUT this to an existing issue: 

 <pre><code class="json"> 
 { "issue": { 
  "assigned_to_id": "19" 
  } 
 } 
 </code></pre> 

 it will respond 200 OK even if it can't change the assigned_to_id to 19, for instance if user ID 19 does not have an assignable role on the project.    Because the API reported a 200 OK, this led to a lot of confused debugging.    A 422 return with appropriate error message in the body might be more useful. 

Back