# Submit a single task for update **PATCH /tasks/{id}** Submit a single task from the close task detail for APPROVE or REOPEN. ## Servers - https://usaapi02.cadencyservices.trintech.com/test/api: https://usaapi02.cadencyservices.trintech.com/test/api () ## Authentication methods - Oauth2 ## Parameters ### Path parameters - **id** (integer) The identifier of task for update. ### Body: application/json (object) - **action** (string) The submit action. One of 'APPROVE' or 'REOPEN'. - **actionPlanId** (integer) The identifier of the task being submitted. One of actionPlanId or taskNumber and period is required. - **taskNumber** (string) The number of the task being submitted. One of actionPlanId or taskNumber and period is required. Deprecated, use actionPlanId - **periodId** (integer) The identifier of period. Required when using the taskNumber as the identifier, otherwise ignored. Deprecated, use actionPlanId - **fiscalYearName** (string) 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 - **fiscalPeriodName** (string) 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 - **saveSubmitComment** (boolean) If true, sumbit comment is required and will be saved along with the task. - **submitComment** (string) The additional comment made by the submitter. Optional. If provided it will be included in the email to the receiver. - **performerComment** (string) The comment made by the performer on the close task detail. - **reviewerComment** (string) The comment made by the reviewer on the close task detail. - **approverComment** (string) The comment made by the approver on the close task detail. ## Responses ### 200 OK #### Body: application/json (object) - **success** (boolean) - **id** (string) - **message** (string) [Powered by Bump.sh](https://bump.sh)