---
title: "Set a custom field's value on a task"
method: POST
path: "/setTaskFieldValue"
tags: ["Task"]
---

# Set a custom field's value on a task

`POST /setTaskFieldValue`

## Request

- Base URL: `https://www.taskade.com/api/v2`
- URL: `https://www.taskade.com/api/v2/setTaskFieldValue`
- Auth: OAuth 2 and HTTP bearer
  - Authorization code: `https://www.taskade.com/oauth2/authorize`
  - Token URL: `https://www.taskade.com/oauth2/token`

Select fields take the option ID (not its label) - read them from `listFields`.

## Request body

- object
  - `projectId` string, required: The project the task lives in
  - `taskId` string, required: The task ID (from `listTasks`)
  - `fieldId` string, required: Custom field ID (from `listFields`)
  - `value` union, required: Number for number fields; option ID for Select fields; text for string fields
    - number
    - string

## Response `200`

Default response

- object
  - `ok` true, required

---

[API](https://skmtc.dev/taskade/apis/taskade-public-api-v2.md) - [All operations](https://skmtc.dev/taskade/apis/taskade-public-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/taskade/apis/taskade-public-api-v2/revisions/45f0e74ec083?raw)
