Depending on the request type, OData 3 protocol can return different data. Learn more about the request and response structure below.
Request string
Creatio supports the following request methods:
- GET – retrieve data
- POST – add data
- PATCH – modify data
- DELETE – delete data
Creatio application URL.
OData 3 protocol’s web service URL. Unmodifiable part of the request.
OData 3 protocol’s web service URL. Unmodifiable part of the request.
Name of the database table (name of the object collection). When using the OData 3 protocol, add Collection to the first name of the object collection in the request string (e.g., ContactCollection). Run a query to receive the list of database tables.
The identifier of the database table record string (identifier of the collection object instance). For example, guid'00000000-0000-0000-0000-000000000000').
The database table record field (field of the collection object instance).
Optional OData 3 parameters you can use in the GET Creatio request string. Use the ? operator to specify the parameters. Add the parameter name after the $ operator. Use the & operator to use two or more parameters.
$value | The field value. | |
$count | $count=true | The number of elements in the selection. |
$skip | $skip=n | The first n elements that must be excluded from the selection. |
$top | $top=n | The first n elements that must be included in the selection. |
$select | $select=field1,field2,... | The set of fields that must be included in the selection. |
$orderby | $orderby=field asc or $orderby=field desc | How to sort the field values in the selection. |
$expand | $expand=field1,field2,... | Extension of the connected fields. |
$filter | $filter=field template 'field_value' | How to filter the fields in the selection. |
Request headers
Data type to expect in the server response. The server returns the response in XML. Optional for GET requests.
Ecoding and type of the resource passed in the request body. Optional for GET requests.
The ForceUseSession header forces the use of an existing session. You do not need to use AuthService.svc in your request to the authentication service.
Authentication cookie.
Request body
The names of the fields passed in the request body.
The values of the field1, field2, … fields passed in the request body.
HTTP status code
Response status code.
200 OK | GET, PUT, MERGE, or PATCH request was completed successfully. The response body should contain the value of the object or properly specified in the request URL. |
---|---|
201 Created | POST request created an object or a link successfully. The response body should contain the updated object. |
202 Accepted | Processing of the data update request has started but has not finished yet. The response body should contain the Location header and the Retry-After header. The response body should be empty. The server should return the 303 response code with the Location header that contains the final URL that can be used to retrieve the result. The body and the header of the final URL should be formatted similar to the initial data update request. |
204 No content | Data update request. The value of the requested resource is 0. The response body should be empty. |
3xx Redirection | Data update request. The redirection means the client must take further actions to execute the request. The response should contain the Location header with the URL that can be used to retrieve the result. |
4xx Client Error | Incorrect requests. The server returns this code in response to client errors and requests to non-existent resources, such as entities, entity collections, or properties. If the response body is defined for the error code, the error body will be as defined for the corresponding format. |
404 Not Found | The object or collection specified in the URL does not exist. The response body should be empty. |