changeComponentObjectStatus function
POST /api/{api_version}/components/{component_uuid}/objects/{component_object_id}/change_status
Move an instance through its workflow, under custom_component_object with
workflow_status; runs the transition at once.
Implementation
Future<ApiResponse<ComponentObjectRecord>> changeComponentObjectStatus(
ExsitedClient client,
Object componentUuid,
Object componentObjectId,
Object payload, {
bool? raiseOnError,
String? responseFormat,
}) =>
client.sendPostRequest(CustomComponentsUrls.componentObjectChangeStatus,
pathParams: {
'component_uuid': componentUuid,
'component_object_id': componentObjectId
},
jsonBody: payload,
raiseOnError: raiseOnError,
responseFormat: responseFormat,
dtoDecoder: ComponentObjectRecord.fromMap);