On February 28th, 2021 we released the version 2.3 of the Batch API. the previous version's documentation is still available here.
Parameter name | Value | Description |
---|---|---|
requests[] |
list |
Batch operations. |
requests[].path |
string |
Path request of the API operation (e.g: "/api/2.1/scheduling/companies"). |
requests[].method |
string |
Method of the API operation. Values: "POST", "GET", "DELETE", "PUT" |
requests[].body |
string |
Body object of the operation. |
requests[].name |
string |
Name of the operation. Uses it to rrequest ressult properties in an other request. |
requests[].headers |
string |
Http headers of the operation. For example to define different api credentials than the batch request. |
Authentication is required to execute this request. Please refer to Authentication for more.
In the request body, supply a list of operations with the following properties:
Parameter name | Value | Description |
---|---|---|
Required Properties | ||
requests[] |
list |
Batch operations. |
requests[].path |
string |
Path request of the API operation (e.g: "/api/2.1/scheduling/companies"). |
requests[].method |
boolean |
Method of the API operation. Values: "POST", "GET", "DELETE", "PUT" |
requests[].body |
string |
Body object of the operation. |
requests[].name |
string |
Name of the operation. Uses it to rrequest ressult properties in an other request. |
requests[].headers |
string |
Http headers of the operation. For example to define different api credentials than the batch request. |
If successful, this method returns a response content in the response body:
With the following properties:
Parameter name | Value | Description |
---|---|---|
Required Properties | ||
responses[] |
list |
Batch operations responses. |
responses[].path |
object |
Path request of the API operation (e.g: "/api/2.1/scheduling/companies"). |
responses[].method |
object |
Method of the API operation. Values: "POST", "GET", "DELETE", "PUT" |
responses[].responses[] |
string |
Child responses. |
responses[].status |
integer |
Status code of the response. |
responses[].name |
string |
Name of the operation. |
responses[].duration |
string |
Duration of the operation, in milliseconds |