All URIs are relative to https://CHANGEME.api.processmaker.io/api/v1
Method | HTTP request | Description |
---|---|---|
AddInstance | Post /processes/{process_id}/instances | |
DeleteInstance | Delete /processes/{process_id}/instances/{instance_id} | |
FindByFieldInsideDataModel | Get /processes/{process_id}/datamodels/search/{search_param} | |
FindDataModel | Get /processes/{process_id}/instances/{instance_id}/datamodel | |
FindInstanceById | Get /processes/{process_id}/instances/{instance_id} | |
FindInstances | Get /processes/{process_id}/instances | |
FindTaskInstancesByInstanceAndTaskId | Get /instances/{instance_id}/tasks/{task_id}/task_instances | |
FindTaskInstancesByInstanceAndTaskIdDelegated | Get /instances/{instance_id}/tasks/{task_id}/task_instances/delegated | |
FindTaskInstancesByInstanceAndTaskIdStarted | Get /instances/{instance_id}/tasks/{task_id}/task_instances/started | |
FindTokens | Get /processes/{process_id}/instances/{instance_id}/tokens | |
UpdateInstance | Put /processes/{process_id}/instances/{instance_id} |
InstanceItem AddInstance($processId, $instanceCreateItem)
This method creates a new instance.
Name | Type | Description | Notes |
---|---|---|---|
processId | string | Process ID related to the instance | |
instanceCreateItem | InstanceCreateItem | JSON API response with the instance object to add |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResultSuccess DeleteInstance($processId, $instanceId)
This method deletes an instance using the instance ID and the process ID.
Name | Type | Description | Notes |
---|---|---|---|
processId | string | Process ID | |
instanceId | string | ID of the instance to delete |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DataModelCollection FindByFieldInsideDataModel($processId, $searchParam, $page, $perPage)
This method returns the data model by field passed in get argument.
Name | Type | Description | Notes |
---|---|---|---|
processId | string | ID of the process to return | |
searchParam | string | Key and value of searched field in DataModel | |
page | int32 | Page number to fetch | [optional] [default to 1] |
perPage | int32 | Amount of items per page | [optional] [default to 15] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DataModelItem1 FindDataModel($processId, $instanceId, $page, $perPage)
This method returns the instance data model and lets the user work with it directly.
Name | Type | Description | Notes |
---|---|---|---|
processId | string | ID of the process to return | |
instanceId | string | ID of the instance to return | |
page | int32 | Page number to fetch | [optional] [default to 1] |
perPage | int32 | Amount of items per page | [optional] [default to 15] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InstanceItem FindInstanceById($processId, $instanceId)
This method retrieves an instance using its ID.
Name | Type | Description | Notes |
---|---|---|---|
processId | string | ID of the process to return | |
instanceId | string | ID of the instance to return |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InstanceCollection FindInstances($processId, $page, $perPage)
This method retrieves instances related to the process using the process ID
Name | Type | Description | Notes |
---|---|---|---|
processId | string | Process ID related to the instances | |
page | int32 | Page number to fetch | [optional] [default to 1] |
perPage | int32 | Amount of items per page | [optional] [default to 15] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TaskInstanceCollection FindTaskInstancesByInstanceAndTaskId($instanceId, $taskId)
This method retrieves task instances using the instance ID and the task ID.
Name | Type | Description | Notes |
---|---|---|---|
instanceId | string | ID of the instance | |
taskId | string | ID of the task |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TaskInstanceCollection FindTaskInstancesByInstanceAndTaskIdDelegated($instanceId, $taskId)
This method retrieves delegated task instances using the instance ID and the task ID.
Name | Type | Description | Notes |
---|---|---|---|
instanceId | string | ID of the instance | |
taskId | string | ID of the task |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TaskInstanceCollection FindTaskInstancesByInstanceAndTaskIdStarted($instanceId, $taskId)
This method retrieves started task instances using the instance ID and the task ID.
Name | Type | Description | Notes |
---|---|---|---|
instanceId | string | ID of the instance | |
taskId | string | ID of the task |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TokenCollection FindTokens($processId, $instanceId, $page, $perPage)
This method retrieves tokens related to the process and instance using the process and instance IDs
Name | Type | Description | Notes |
---|---|---|---|
processId | string | Process ID | |
instanceId | string | Instance ID related to the process | |
page | int32 | Page number to fetch | [optional] [default to 1] |
perPage | int32 | Amount of items per page | [optional] [default to 15] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InstanceItem UpdateInstance($processId, $instanceId, $instanceUpdateItem)
This method updates an existing instance.
Name | Type | Description | Notes |
---|---|---|---|
processId | string | ID of the process to retrieve | |
instanceId | string | ID of the instance to retrieve | |
instanceUpdateItem | InstanceUpdateItem | Instance object to edit |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]