Working with Stream data
Glossary Item Box
Introduction
Creatio 7.16.0 and up supports OData 4 integrations that use data of the Stream type.
The Stream data includes the following elements:
- Images
- Files
- BLOB
Working with data of the Stream type enables:
- Reading data
- Modifying data
- Deleting data
OData 4 use cases and examples of different types of requests are available in the “Creatio integration via the OData 4 protocol” article.
Working with Stream data
You need to authenticate your requests to Creatio.
Reading data
// Get instance of an object with Id 44C083FC-2060-4B33-823D-F3D749396217 of the SysImage collection. GET http://mycreatio.com/0/odata/SysImage(44C083FC-2060-4B33-823D-F3D749396217)/Data ForceUseSession: true BPMCSRF: OpK/NuJJ1w/SQxmPvwNvfO
Status: 200 OK
Modifying data
// Modify instance of an object with Id 44C083FC-2060-4B33-823D-F3D749396217 of the SysImage collection. PUT http://mycreatio.com/0/odata/SysImage(44C083FC-2060-4B33-823D-F3D749396217)/Data Accept: application/json; odata=verbose Content-Type: application/json; odata=verbose ForceUseSession: true BPMCSRF: OpK/NuJJ1w/SQxmPvwNvfO
The request body is of the BLOB type an contains the following image.
Status: 200 OK
Deleting data
// Delete object instance with Id 44C083FC-2060-4B33-823D-F3D749396217 of the SysImage collection. DELETE http://mycreatio.com/0/odata/SysImage(44C083FC-2060-4B33-823D-F3D749396217)/Data ForceUseSession: true BPMCSRF: OpK/NuJJ1w/SQxmPvwNvfO
Status: 204 No Content