Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Aspire's API will return both an HTTP response code and a Json body indicating success or failure of all calls. The following status codes are used

Status

Response codeDescription
200

Success

Success with errors (batch mode)*

201Created
400Bad request
404Not found
406Not acceptable

* batch requests (those calls capable of creating, updating, deleting or controlling more than a single item/object at a time - update multiple connectors for example) will return a status of 200 for the call itself and other status inside the Json body.


Anchor
ResponseBody
ResponseBody
Response Body

Where an API call causes a single item to be successful created or updated, the body of the response will contain the item itself. The response shown below is an example of the body returned if a single connector was created or updated (response status 200 or 201)

...