-
Notifications
You must be signed in to change notification settings - Fork 2
41 Object Endpoints
Generic CRUD endpoints for working with objects.
POST /api/v1/object/<action>Where <action> is one of:
-
count(Count) -
set(Set -- Add or Edit) -
get(Get) -
list(List)
POST /api/v1/object/countReturns the number of objects, with optional data filtering.
Request parameters: Common list request parameters
POST /api/v1/object/setCreate or update an object.
Request parameters:
| Name | Type | Value | Description |
|---|---|---|---|
| id | UUID | Required for Edit action. Object identifier. | |
| parent | UUID | Optional. Parent object identifier. | |
| type | STRING | Recommended. Object type code. | |
| label | STRING | Recommended. Object label. | |
| data | STRING | Optional. Object data. |
NOTE: If the id key is not specified or is null, the action is treated as Add; otherwise it is treated as Edit.
NOTE: Omitted keys are treated as null.
NOTE: For the Edit action, you do not need to send all keys -- only those that need to be changed.
NOTE: The response will contain the data returned by the Get action.
POST /api/v1/object/getRetrieve object data.
Request parameters:
| Name | Type | Value | Description |
|---|---|---|---|
| id | UUID | Required. Object identifier. |
Response format:
| Field | Type | Description |
|---|---|---|
| id | UUID | Object identifier. |
| parent | UUID | Parent object identifier. |
| entity | UUID | Entity identifier. |
| entitycode | STRING | Entity code. |
| class | UUID | Class identifier. |
| classcode | STRING | Class code. |
| classlabel | STRING | Class label. |
| type | UUID | Type identifier. |
| typecode | STRING | Type code. |
| typename | STRING | Type name. |
| typedescription | STRING | Type description. |
| label | STRING | Label. |
| data | STRING | Data. |
| statetype | UUID | State type. |
| statetypecode | STRING | State type code. |
| statetypename | STRING | State type name. |
| state | UUID | State. |
| statecode | STRING | State code. |
| statelabel | STRING | State label. |
| lastupdate | TIMESTAMP | Last modification date. |
| owner | UUID | Owner account identifier. |
| ownercode | STRING | Owner account code (login). |
| ownername | STRING | Owner account name. |
| created | TIMESTAMP | Physical date (creation date). |
| oper | UUID | Operator account identifier. |
| opercode | STRING | Operator account code (login). |
| opername | STRING | Operator account name. |
| operdate | TIMESTAMP | Logical date (operation date). |
POST /api/v1/object/listRetrieve object data as a list, with optional data filtering.
Request parameters: Common list request parameters
POST /api/v1/object/classReturns the class of an object.
Request parameters:
| Name | Type | Value | Description |
|---|---|---|---|
| id | UUID | Required. Object identifier. |
POST /api/v1/object/typeReturns the type of an object.
Request parameters:
| Name | Type | Value | Description |
|---|---|---|---|
| id | UUID | Required. Object identifier. | |
| fields | JSON array | Optional. JSON array of field names to return. If omitted, the request returns all fields. |
POST /api/v1/object/stateReturns the state of an object.
Request parameters:
| Name | Type | Value | Description |
|---|---|---|---|
| id | UUID | Required. Object identifier. | |
| fields | JSON array | Optional. JSON array of field names to return. If omitted, the request returns all fields. |
POST /api/v1/object/methodReturns the methods available for an object.
Request parameters:
| Name | Type | Value | Description |
|---|---|---|---|
| id | UUID | Required. Object identifier. |
POST /api/v1/object/method/executeExecute a dynamic method on an object.
Request parameters:
| Name | Type | Value | Description |
|---|---|---|---|
| id | UUID | Required. Object identifier. | |
| method | UUID |
Variant. Method identifier (takes priority over code). |
|
| code | STRING | Variant. Action code. Can be specified instead of the method identifier. | |
| params | JSON | Optional. HTML form parameters in JSON format. |
- Note that the
codeparameter accepts an action code, not a method code.
POST /api/v1/object/action/executeExecute an action on an object.
Request parameters:
| Name | Type | Value | Description |
|---|---|---|---|
| id | UUID | Required. Object identifier. | |
| action | UUID |
Variant. Action identifier (takes priority over code). |
|
| code | STRING | Variant. Action code. Can be specified instead of the action identifier. | |
| params | JSON | Optional. HTML form parameters in JSON format. |
POST /api/v1/object/delete/forceForcibly "deletes" a document (bypassing workflow events).
Request parameters:
| Name | Type | Value | Description |
|---|---|---|---|
| id | UUID | Required. Object identifier. |
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