---
search:
  tags:
    - tasks
    - POST
seo:
  description: >-
    Creates a new form instance from a workspace template. Pass… Reference for
    the POST /tasks/{identifier}/form-instances endpoint in the Leadtime Public
    API API.
sidebar:
  badge: POST
  label: Attach a form template to a task
title: Attach a form template to a task
type: openapi-operation
---
Creates a new form instance from a workspace template. Pass `templateId` from GET `/workspace/form-templates` (each item includes `id`) or the legacy GET `/administration/form-templates-available`. To review fields, labels, and validation constraints before attaching, call GET `/workspace/form-templates/{id}` with that template id. After attach, fill values with PATCH `/tasks/{identifier}/form-instances/{formInstanceId}` (get `formInstanceId` from GET this resource list).

<Operation source="api-reference" id="taskforminstancescontroller-attach" />
