> ## Documentation Index
> Fetch the complete documentation index at: https://kaneo.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Set custom field value

> Create or update a custom field value for a task.



## OpenAPI

````yaml /openapi.json put /custom-field/value
openapi: 3.1.0
info:
  title: Kaneo API
  version: 1.0.0
  description: Kaneo Project Management API - Manage projects, tasks, labels, and more
servers:
  - url: https://cloud.kaneo.app/api
    description: Kaneo API Server
security:
  - bearerAuth: []
paths:
  /custom-field/value:
    put:
      tags:
        - Custom Fields
      summary: Set custom field value
      description: Create or update a custom field value for a task.
      operationId: setCustomFieldValue
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                taskId:
                  type: string
                fieldId:
                  type: string
                value:
                  type: string
              required:
                - taskId
                - fieldId
                - value
      responses:
        '200':
          description: The saved custom field value
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SetCustomFieldValueResponse'
        '400':
          description: Invalid body, unknown task, or unknown custom field
          content:
            text/plain:
              schema:
                type: string
        '401':
          description: Missing or invalid credentials
        '403':
          description: No workspace access, or missing task:update permission
          content:
            text/plain:
              schema:
                type: string
components:
  schemas:
    SetCustomFieldValueResponse:
      type: object
      properties:
        id:
          type: string
        taskId:
          type: string
        fieldId:
          type: string
        value:
          type:
            - string
            - 'null'
      required:
        - id
        - taskId
        - fieldId
        - value
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or session token (Bearer)

````