...
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 code | Description |
---|---|
200 | Success Success with errors (batch mode)* |
201 | Created |
400 | Bad request |
404 | Not found |
406 | Not 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.
Response Body Anchor ResponseBody ResponseBody
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)
...