---
title: "Add Subtask to Request using Subtask Template"
method: POST
path: "/api/datasubject/v2/requestqueues/{requestQueueRefId}/subtasks/template"
tags: ["Subtasks"]
---

# Add Subtask to Request using Subtask Template

`POST /api/datasubject/v2/requestqueues/{requestQueueRefId}/subtasks/template`

Use this API to add a subtask to a request using a subtask template. The subtask template name must be provided to create the subtask with the template's configuration.

## Path parameters

- `requestQueueRefId` string, required — Request queue reference Id

## Request body

- PrivacyAutomationDataSubjectRequestDSRAutomationSubTaskFromTemplateV2Dto
  - `templateName` string — Name of the subtask template to use.
  - `workflowDetailId` string, uuid — Workflow detail ID

## Response `201`

Created

## 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/revisions/21de3aa0b170/schema)
