---
title: "Complete Subtask"
method: PUT
path: "/api/datasubject/v2/subtasks/{subtaskID}/complete"
tags: ["Subtasks"]
---

# Complete Subtask

`PUT /api/datasubject/v2/subtasks/{subtaskID}/complete`

Use this API to resolve an existing subtask, marking it as Complete.

## Path parameters

- `subtaskID` string, uuid, required — Sub-Task UUID

## Request body

- PrivacyAutomationDataSubjectRequestDSRAutomationSubTaskCompleteV2Dto
  - `comment` string, required — Comment for the subtask completion. Longer comments may impact system performance.
  - `markAsComplete` boolean — Whether to mark the subtask as complete
  - `resolutionId` string, uuid — Resolution ID for the subtask
  - `attachments` PrivacyAutomationDataSubjectRequestDSRAutomationAttachmentV2Dto[] — List of attachments for the subtask
    - `fileName` string, required — Attached file name
    - `fileId` string, uuid, required — ID of attached file
    - `statusId` integer — Status ID of the attachment
    - `resourcePath` string — Resource path of the attachment

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `429` — Too Many Requests. For more information, see [API Rate Limits](https://developer.onetrust.com/onetrust/reference/rate-limits-overview).
- `500` — Internal Server Error

---

[API](https://skmtc.net/onetrust/apis/platform-access-management.md) · [All operations](https://skmtc.net/onetrust/apis/platform-access-management/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/onetrust/platform-access-management/versions/21de3aa0b170/schema)
