Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added restful location/201 stuff

...

Successful Response

HTTP StatusHTTP HeadersBodyDescription
201200LocationJSON hash with success and id propertiesThe success property is set to 1 and only if the request was successful.
The id property is the new event's ID (but see the Limitations section below)
The Location header contains the complete URL for retrieving the newly created event.

Unsuccessful Response

HTTP StatusBodyDescription
401N/AYou are not authenticated.
404N/AYou are authenticated but not authorised to create events in opEvents.
400JSON hash with  success being 0  and an error property.The error property contains an explanation
of what went wrong with your request, e.g. why the parameters were considered invalid.

...