---
updatedAt: 2026-06-03T14:46:37.000Z
agentTools:
  projectIndex: https://developers.fieldwire.com/llms.txt
---

# Create a task attribute in task

Create a task_attribute associated with a Task

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Fieldwire Regional API",
    "version": "v3"
  },
  "servers": [
    {
      "url": "https://client-api.{region}.fieldwire.com",
      "variables": {
        "region": {
          "default": "us",
          "enum": [
            "ca",
            "eu",
            "us"
          ]
        }
      }
    }
  ],
  "components": {
    "headers": {
      "current_user_id": {
        "description": "Current user's id",
        "schema": {
          "type": "integer"
        }
      },
      "ratelimit-limit-minute": {
        "description": "Maximum number of requests allowed per minute for this endpoint",
        "schema": {
          "type": "integer"
        }
      },
      "ratelimit-remaining-minute": {
        "description": "Number of requests remaining in the current minute window",
        "schema": {
          "type": "integer"
        }
      },
      "ratelimit-limit-hour": {
        "description": "Maximum number of requests allowed per hour for this endpoint",
        "schema": {
          "type": "integer"
        }
      },
      "ratelimit-remaining-hour": {
        "description": "Number of requests remaining in the current hour window",
        "schema": {
          "type": "integer"
        }
      },
      "ratelimit-reset": {
        "description": "Unix timestamp indicating when the rate limit window resets",
        "schema": {
          "type": "integer"
        }
      },
      "retry-after": {
        "description": "Number of seconds to wait before retrying the request",
        "schema": {
          "type": "integer"
        }
      }
    },
    "parameters": {
      "api_version": {
        "name": "Fieldwire-Version",
        "in": "header",
        "description": "Specifies the version of the API to talk to",
        "required": true,
        "schema": {
          "type": "string",
          "format": "date"
        }
      },
      "entities_filter": {
        "name": "Fieldwire-Filter",
        "in": "header",
        "description": "Specifies if request should include active, deleted or all (default) entities",
        "required": false,
        "schema": {
          "type": "string",
          "enum": [
            "active",
            "deleted"
          ]
        }
      },
      "entities_per_page": {
        "name": "Fieldwire-Per-Page",
        "in": "header",
        "description": "Specifies the number of entities to include in the request",
        "required": false,
        "schema": {
          "type": "integer",
          "maximum": 1000
        }
      },
      "project_id": {
        "name": "project_id",
        "in": "path",
        "description": "ID of the project this entity belongs to",
        "required": true,
        "schema": {
          "type": "string",
          "format": "uuid"
        }
      },
      "last_synced_at": {
        "name": "last_synced_at",
        "in": "query",
        "description": "Timestamp since when further updates should be included",
        "required": false,
        "schema": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "schemas": {
      "sliding_window_rate_limit_error": {
        "description": "Rate limit exceeded error response from the sliding window rate limiter",
        "type": "object",
        "nullable": false,
        "required": [
          "errors"
        ],
        "properties": {
          "errors": {
            "type": "array",
            "nullable": false,
            "description": "List of rate limit errors",
            "items": {
              "type": "object",
              "required": [
                "type",
                "code",
                "message",
                "details"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "nullable": false,
                  "description": "Error type",
                  "example": "rate_limit_error"
                },
                "code": {
                  "type": "string",
                  "nullable": false,
                  "description": "Error code",
                  "example": "rate_limit_exceeded"
                },
                "message": {
                  "type": "string",
                  "nullable": false,
                  "description": "Human-readable message indicating when to retry",
                  "example": "Too many requests. Retry after 2026-04-16 10:00:00Z"
                },
                "details": {
                  "type": "object",
                  "nullable": false,
                  "required": [
                    "endpoint_hour_limit",
                    "endpoint_minute_limit",
                    "request_retry_after",
                    "throttled_by"
                  ],
                  "properties": {
                    "endpoint_hour_limit": {
                      "type": "integer",
                      "nullable": false,
                      "description": "Maximum number of requests allowed per hour for this endpoint"
                    },
                    "endpoint_minute_limit": {
                      "type": "integer",
                      "nullable": false,
                      "description": "Maximum number of requests allowed per minute for this endpoint"
                    },
                    "request_retry_after": {
                      "type": "string",
                      "nullable": false,
                      "description": "UTC timestamp after which the request can be retried",
                      "example": "2026-04-16 10:00:00Z"
                    },
                    "throttled_by": {
                      "type": "string",
                      "nullable": true,
                      "description": "Which limit window triggered the throttle (minute or hour)",
                      "example": "minute"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "additionalProperties": false
            }
          }
        },
        "additionalProperties": false
      },
      "task_attribute": {
        "type": "object",
        "description": "Entity that denotes a custom task attribute in a Fieldwire project",
        "required": [
          "id",
          "creator_user_id",
          "last_editor_user_id",
          "device_created_at",
          "device_updated_at",
          "project_id",
          "updated_at",
          "resolved_conflict",
          "task_id",
          "task_type_attribute_id"
        ],
        "nullable": false,
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": false,
            "description": "ID of the entity"
          },
          "creator_user_id": {
            "type": "integer",
            "format": "int32",
            "nullable": false,
            "description": "ID of the user who created this entity"
          },
          "last_editor_user_id": {
            "type": "integer",
            "format": "int32",
            "nullable": false,
            "description": "ID of the user who most recently edited this entity"
          },
          "project_id": {
            "type": "string",
            "format": "uuid",
            "nullable": false,
            "description": "ID of the project this entity belongs to"
          },
          "resolved_conflict": {
            "type": "boolean",
            "nullable": true,
            "description": "Specifies if PUT/PATCH request was rejected - do not store this field!"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "nullable": false,
            "description": "Time when the server created the entity"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "nullable": false,
            "description": "Time when the server last updated the entity"
          },
          "device_created_at": {
            "type": "string",
            "format": "date-time",
            "nullable": false,
            "description": "Time when the device created the entity"
          },
          "device_updated_at": {
            "type": "string",
            "format": "date-time",
            "nullable": false,
            "description": "Time when the device last updated the entity"
          },
          "deleted_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Time the server deleted the entity"
          },
          "task_id": {
            "type": "string",
            "format": "uuid",
            "nullable": false,
            "description": "ID of the task this entity belongs to"
          },
          "task_type_attribute_id": {
            "type": "string",
            "format": "uuid",
            "nullable": false,
            "description": "ID of the task type attribute this entity belongs to"
          },
          "number_value": {
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "description": "Numerical value of the task attribute"
          },
          "text_value": {
            "type": "string",
            "nullable": true,
            "description": "Text value of the task attribute"
          },
          "uuid_value": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "description": "UUID value of the task attribute"
          }
        },
        "additionalProperties": false
      },
      "task_attribute_create_input": {
        "type": "object",
        "nullable": false,
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": false,
            "description": "ID of the entity"
          },
          "creator_user_id": {
            "type": "integer",
            "format": "int32",
            "nullable": false,
            "description": "ID of the user who created this entity"
          },
          "last_editor_user_id": {
            "type": "integer",
            "format": "int32",
            "nullable": false,
            "description": "ID of the user who most recently edited this entity"
          },
          "project_id": {
            "type": "string",
            "format": "uuid",
            "nullable": false,
            "description": "ID of the project this entity belongs to"
          },
          "device_created_at": {
            "type": "string",
            "format": "date-time",
            "nullable": false,
            "description": "Time when the device created the entity"
          },
          "device_updated_at": {
            "type": "string",
            "format": "date-time",
            "nullable": false,
            "description": "Time when the device last updated the entity"
          },
          "deleted_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Time the server deleted the entity"
          },
          "task_id": {
            "type": "string",
            "format": "uuid",
            "nullable": false,
            "description": "ID of the task this entity belongs to"
          },
          "task_type_attribute_id": {
            "type": "string",
            "format": "uuid",
            "nullable": false,
            "description": "ID of the task type attribute this entity belongs to"
          },
          "number_value": {
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "description": "Numerical value of the task attribute"
          },
          "text_value": {
            "type": "string",
            "nullable": true,
            "description": "Text value of the task attribute"
          },
          "uuid_value": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "description": "UUID value of the task attribute"
          }
        },
        "description": "Schema for creating a tasks attribute",
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "jwt": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "Access token (JWT) generated using the acquired refresh token (API token). Our [authentication](https://developers.fieldwire.com/docs/authentication) guide covers the steps to generate a valid token"
      }
    }
  },
  "paths": {
    "/api/v3/projects/{project_id}/tasks/{task_id}/task_attributes": {
      "post": {
        "summary": "Create a task attribute in task",
        "description": "Create a task_attribute associated with a Task",
        "operationId": "create_task_attributes_in_task",
        "tags": [
          "task attributes"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/api_version"
          },
          {
            "$ref": "#/components/parameters/entities_filter"
          },
          {
            "$ref": "#/components/parameters/entities_per_page"
          },
          {
            "$ref": "#/components/parameters/last_synced_at"
          },
          {
            "$ref": "#/components/parameters/project_id"
          },
          {
            "name": "task_id",
            "description": "ID of the task to create a task attribute for",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "security": [
          {
            "jwt": []
          }
        ],
        "responses": {
          "201": {
            "description": "Successful response",
            "headers": {
              "X-Current-User-Id": {
                "$ref": "#/components/headers/current_user_id"
              },
              "ratelimit-limit-minute": {
                "$ref": "#/components/headers/ratelimit-limit-minute"
              },
              "ratelimit-remaining-minute": {
                "$ref": "#/components/headers/ratelimit-remaining-minute"
              },
              "ratelimit-limit-hour": {
                "$ref": "#/components/headers/ratelimit-limit-hour"
              },
              "ratelimit-remaining-hour": {
                "$ref": "#/components/headers/ratelimit-remaining-hour"
              },
              "ratelimit-reset": {
                "$ref": "#/components/headers/ratelimit-reset"
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "id": "15cfcf33-bd96-48c4-96fb-901bf0b3d93d",
                  "creator_user_id": 2435,
                  "last_editor_user_id": 2435,
                  "project_id": "c9422d06-4c9f-450f-abbf-4a523aeb5b3d",
                  "resolved_conflict": false,
                  "created_at": "2026-10-02T14:53:37.266Z",
                  "updated_at": "2026-10-02T14:53:37.266Z",
                  "device_created_at": "2026-10-02T14:53:37.266Z",
                  "device_updated_at": "2026-10-02T14:53:37.266Z",
                  "deleted_at": null,
                  "task_id": "e79692a4-0f62-46f2-ae1b-794219a950b2",
                  "task_type_attribute_id": "ca52e180-c541-47ba-b126-3cc3bee0e42d",
                  "number_value": null,
                  "text_value": "dummy value",
                  "uuid_value": null
                },
                "schema": {
                  "$ref": "#/components/schemas/task_attribute"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "headers": {
              "retry-after": {
                "$ref": "#/components/headers/retry-after"
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "errors": [
                    {
                      "type": "rate_limit_error",
                      "code": "rate_limit_exceeded",
                      "message": "Too many requests. Retry after 2026-10-02T14:54:37.692Z",
                      "details": {
                        "endpoint_hour_limit": 80000,
                        "endpoint_minute_limit": 1300,
                        "request_retry_after": "2026-10-02T14:54:37.692Z",
                        "throttled_by": "hour"
                      }
                    }
                  ]
                },
                "schema": {
                  "$ref": "#/components/schemas/sliding_window_rate_limit_error"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/task_attribute_create_input"
              }
            }
          },
          "required": true
        }
      }
    }
  }
}
```