capability_id: project_v2.items.field.update
version: "1.0.0"
description: Update a field on a Projects v2 project item.
input_schema:
  type: object
  required: [projectId, itemId, fieldId]
  properties:
    projectId: { type: string, minLength: 1 }
    itemId: { type: string, minLength: 1 }
    fieldId: { type: string, minLength: 1 }
    valueText: { type: string, minLength: 1 }
    valueNumber: { type: number }
    valueDate: { type: string, minLength: 1 }
    valueSingleSelectOptionId: { type: string, minLength: 1 }
    valueIterationId: { type: string, minLength: 1 }
    clear: { type: boolean }
  additionalProperties: false
output_schema:
  type: object
  required: [itemId]
  properties:
    itemId: { type: string }
  additionalProperties: false
routing:
  preferred: graphql
  fallbacks: [cli]
graphql:
  operationName: UpdateProjectV2ItemField
  operationType: mutation
  documentPath: src/gql/operations/project-v2-item-field-update.graphql
  resolution:
    inject:
      - target: value
        source: project_v2_field_value
cli:
  command: project item-edit
