Submit a single task for update
Submit a single task from the close task detail for APPROVE or REOPEN.
Body
Required
-
The submit action. One of 'APPROVE' or 'REOPEN'.
Values are
APPROVE
,CANCEL
,SUBMIT
,REJECT
,RESUBMIT
,REOPEN
,TRANSFER
,INVALIDATE
,CC
, orNOTIFY
. -
The identifier of the task being submitted. One of actionPlanId or taskNumber and period is required.
-
The number of the task being submitted. One of actionPlanId or taskNumber and period is required. Deprecated, use actionPlanId
Minimum length is
0
, maximum length is128
. -
The identifier of period. Required when using the taskNumber as the identifier, otherwise ignored. Deprecated, use actionPlanId
-
The name of the fiscal year for the task. Required when using the taskNumber as the identifier and periodId is not provided. Deprecated, use actionPlanId
Minimum length is
0
, maximum length is20
. -
The name of the fiscal period for the task. Required when using the taskNumber as the identifier and periodId is not provided. Deprecated, use actionPlanId
Minimum length is
0
, maximum length is20
. -
If true, sumbit comment is required and will be saved along with the task.
-
The additional comment made by the submitter. Optional. If provided it will be included in the email to the receiver.
Minimum length is
0
, maximum length is2048
. -
The comment made by the performer on the close task detail.
Minimum length is
0
, maximum length is2048
. -
The comment made by the reviewer on the close task detail.
Minimum length is
0
, maximum length is2048
. -
The comment made by the approver on the close task detail.
Minimum length is
0
, maximum length is2048
.
curl \
--request PATCH 'https://customer.trintech.com/cs-close-api/tasks/{id}' \
--header "Content-Type: application/json" \
--data '{"action":"APPROVE","actionPlanId":42,"taskNumber":"string","periodId":42,"fiscalYearName":"string","fiscalPeriodName":"string","saveSubmitComment":true,"submitComment":"string","performerComment":"string","reviewerComment":"string","approverComment":"string"}'
{
"action": "APPROVE",
"actionPlanId": 42,
"taskNumber": "string",
"periodId": 42,
"fiscalYearName": "string",
"fiscalPeriodName": "string",
"saveSubmitComment": true,
"submitComment": "string",
"performerComment": "string",
"reviewerComment": "string",
"approverComment": "string"
}
{
"success": true,
"id": "string",
"message": "string"
}