-
Notifications
You must be signed in to change notification settings - Fork 2
45 Object Data
Arbitrary data in any format can be associated with an object in the system.
POST /api/v1/object/dataGet or set arbitrary data for an object.
Request parameters:
| Name | Type | Value | Description |
|---|---|---|---|
| id | NUMERIC | Required. Object identifier. | |
| data | JSON array | null OR json | Variant. JSON array of objects containing arbitrary data. |
data format:
| Name | Type | Value | Description |
|---|---|---|---|
| type | STRING | text, json, xml | Required. Data type code. |
| code | STRING | Required. Data code (a unique key for this data entry). | |
| data | STRING | Variant. The arbitrary data payload. |
NOTE: If the data value is not specified or is null, the method works as Get; otherwise it works as Set.
POST /api/v1/object/data/setSet arbitrary data for an object.
Request parameters:
| Name | Type | Value | Description |
|---|---|---|---|
| id | NUMERIC | Required. Object identifier. | |
| data | JSON array | Required. JSON array of objects containing arbitrary data. |
NOTE: Omitted keys are treated as null.
NOTE: If the data key value is not specified or is null, the action is treated as Delete.
Example (set):
Request:
POST /api/v1/object/data/set HTTP/1.1
Host: localhost:8080
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.[truncated for brevity].NorYsi-Ht826HUFCEArVZ60_dEUmYiJYXubnTyweIMg
{"id": 2, "data": [{"type": "json", "code": "unique.code", "data": "{\"search\": [{\"field\": \"validfromdate\", \"value\": \"24.03.2020 00:31:23\", \"compare\": \"LEQ\"}, {\"field\": \"validtodate\", \"value\": \"24.03.2020 00:31:23\", \"compare\": \"GTR\"}]}"}]}Example (delete):
Request:
POST /api/v1/object/data/set HTTP/1.1
Host: localhost:8080
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.[truncated for brevity].NorYsi-Ht826HUFCEArVZ60_dEUmYiJYXubnTyweIMg
{"id": 2, "data": [{"type": "json", "code": "unique.code", "data": null}]}POST /api/v1/object/data/getRetrieve arbitrary data for an object.
Request parameters:
| Name | Type | Value | Description |
|---|---|---|---|
| id | NUMERIC | Required. Object identifier. | |
| type | NUMERIC | Variant. Data type identifier (takes priority over type code). | |
| typecode | STRING | text, json, xml | Variant. Data type code. |
| code | STRING | Required. Data code. | |
| fields | JSON array | Optional. JSON array of field names to return. If omitted, the request returns all fields. |
Example:
Request:
POST /api/v1/object/data/get HTTP/1.1
Host: localhost:8080
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.[truncated for brevity].NorYsi-Ht826HUFCEArVZ60_dEUmYiJYXubnTyweIMg
{"id": 2, "typecode": "json", "code": "unique.code"}POST /api/v1/object/data/listRetrieve arbitrary data for an object as a list.
Request parameters: Common list request parameters
Example:
Request:
POST /api/v1/object/data/list HTTP/1.1
Host: localhost:8080
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.[truncated for brevity].NorYsi-Ht826HUFCEArVZ60_dEUmYiJYXubnTyweIMg
{"filter": {"object": 2, "typecode": "json", "code": "unique.code"}}Concepts
API Guide
Authentication & Session
- Connection
- Registration
- Authorization (OAuth 2.0)
- Sign In
- Sign Out
- Password Recovery
- Verification Codes
- Authentication
- Authorization
- Who Am I?
Core Services
Object & Workflow Endpoints
Schema & Internals
Configuration Developer Guide
- Configuration Guide
- Creating an Entity
- Creating a Document
- Creating a Reference
- Workflow Customization
- REST Endpoint Guide
- Event Handler Guide
Operations