Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
api:api_applications_id_flags_id [2014/07/11 09:34] – [PUT] Lauriapi:api_applications_id_flags_id [2024/07/30 11:50] (current) – external edit 127.0.0.1
Line 14: Line 14:
   Host: apply.example.edu   Host: apply.example.edu
   Authorization: DREAM apikey="..."   Authorization: DREAM apikey="..."
 +
  
 ==== Response headers ==== ==== Response headers ====
Line 19: Line 20:
   Content-Type: application/json   Content-Type: application/json
   Content-Length: 1234   Content-Length: 1234
 +
  
 ==== Response codes ==== ==== Response codes ====
  
 | ''200 OK'' | The flag is set | | ''200 OK'' | The flag is set |
-| ''404 Not Found'' | The flag was not set |+| ''404 Not Found'' | The flag does not exist | 
 +| ''404 Not Found'' | The flag was not set to this application |
  
 +
 +==== Response example ====
 +
 +  {
 +    "assigned": "2014-07-11T09:24:51+00:00",
 +    "flag": "/api/applications/flags/6"
 +  }
  
 ===== PUT ===== ===== PUT =====
Line 46: Line 56:
  
 | ''200 OK'' | Flag was successfully set | | ''200 OK'' | Flag was successfully set |
 +| ''404 Not Found'' | The flag does not exist |
  
 ===== DELETE ===== ===== DELETE =====
Line 69: Line 79:
  
 | ''204 No Content'' | Flag was successfully deleted | | ''204 No Content'' | Flag was successfully deleted |
 +| ''404 Not Found'' | The flag does not exist | 
 +| ''404 Not Found'' | The flag was not set to this application |