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
Next revisionBoth sides next revision
api:api_applications_id_flags_id [2014/07/11 09:32] – [HEAD, GET] Lauri Elevantapi:api_applications_id_flags_id [2014/07/17 10:32] Lauri Elevant
Line 23: Line 23:
  
 | ''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 |
  
  
 ===== PUT ===== ===== PUT =====
  
-Set the flag (identified by it's ID) to the application in question. +Set flag (identified by it's ID) to the application in question.  **This requires that the flag already exists.** Use ''POST'' [[api:api_applications_flags|/api/applications/flags]] to create a flag first, then this API call will allow you to ''PUT'' the flag (identified by it's code) to any number of applications.  
 + 
 +In other words, this will not create a new flag, but create a relationship (association) between an existing flag and an application.
  
 ==== Syntax ==== ==== Syntax ====
Line 44: Line 47:
  
 | ''200 OK'' | Flag was successfully set | | ''200 OK'' | Flag was successfully set |
 +| ''404 Not Found'' | The flag does not exist |
  
 ===== DELETE ===== ===== DELETE =====
Line 67: Line 70:
  
 | ''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 |