Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
api:api_applications_flags [2014/06/25 16:42]
Lauri Elevant [Response codes]
api:api_applications_flags [2014/07/23 22:17] (current)
Lauri Elevant
Line 16: Line 16:
   Content-Length: 1234   Content-Length: 1234
  
 +==== Response example ====
 +
 +  {
 +    "1": {
 +        "created": "2014-06-20T06:50:15+00:00",
 +        "name": "Will come to the interview"
 +    },
 +    "2": {
 +        "created": "2014-06-20T06:50:15+00:00",
 +        "name": "Interested in accommodation"
 +    },
 +  }
  
 ===== POST ===== ===== POST =====
Line 23: Line 35:
 If a flag with this name exists already, a ''409 Conflict'' will be returned, along with the URI of the offending flag in the ''Location'' header.  If a flag with this name exists already, a ''409 Conflict'' will be returned, along with the URI of the offending flag in the ''Location'' header. 
  
-**This method simply creates a new flag, but does not assign it to any applications.** You are expected to use the ''PUT'' verb to add **exiting** flags to applications, see [[api:api_applications_123_flags_1|/api/applications/123/flags/1]].+**This method simply creates a new flag, but does not assign it to any applications.** You are expected to use the ''PUT'' verb to add **exiting** flags to applications, see [[api:api_applications_ID_flags_ID|/api/applications/ID/flags/ID]].
  
 ==== Syntax ==== ==== Syntax ====
Line 33: Line 45:
 ==== Parameters ==== ==== Parameters ====
  
 +^ Name ^  ^ Description ^ 
 | ''name'' | **Required** | This text will be displayed on the flag. Up to 32 characters. | | ''name'' | **Required** | This text will be displayed on the flag. Up to 32 characters. |