---
title: "Update a form token"
method: PATCH
path: "/v1/workspaces/{workspaceId}/forms/{formId}"
tags: ["forms"]
---

# Update a form token

`PATCH /v1/workspaces/{workspaceId}/forms/{formId}`

## Request

- Base URL: `https://api.dispatchtickets.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dispatchtickets.com/v1/workspaces/{workspaceId}/forms/{formId}`
- Auth: HTTP bearer

## Path parameters

- `formId` string, required

## Request body

- UpdateFormTokenDto
  - `name` string
  - `successUrl` string
  - `errorUrl` string
  - `thankYouMessage` string
  - `fieldMapping` object
  - `honeypotField` string
  - `allowedOrigins` string[]
  - `enabled` boolean

## Response `200`

---

[API](https://skmtc.dev/dispatchtickets/apis/dispatch-tickets-api.md) · [All operations](https://skmtc.dev/dispatchtickets/apis/dispatch-tickets-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dispatchtickets/apis/dispatch-tickets-api/revisions/82fc25ab859b?raw)
