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

# Remove Vault Item Field



## OpenAPI

````yaml https://odyssey.asteroid.ai/agents/v2/openapi.yaml delete /vault/items/{itemId}/fields/{fieldKey}
openapi: 3.1.0
info:
  title: Agent Service
  version: v1
servers:
  - description: V2 API
    url: https://odyssey.asteroid.ai/agents/v2
security:
  - ApiKeyAuth: []
tags:
  - name: Agents
  - name: Environments
  - name: Schedules
  - name: Execution
  - name: Files
  - name: Agent Profiles
  - name: Agent Profile Pools
  - name: Workflows
  - name: Execution Batches
  - name: Scheduled Executions
  - name: Schema
  - name: Documentation
  - name: Context
  - name: Admin Customer Activity
  - name: Reference
  - name: Workflow Tags
  - name: Vault
paths:
  /vault/items/{itemId}/fields/{fieldKey}:
    delete:
      tags:
        - Vault
      summary: Remove Vault Item Field
      operationId: VaultItemFieldDelete
      parameters:
        - in: path
          name: itemId
          required: true
          schema:
            $ref: '#/components/schemas/Common.uuid'
        - in: path
          name: fieldKey
          required: true
          schema:
            $ref: '#/components/schemas/Agents.Vault.FieldKey'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Agents.Vault.VaultItem'
          description: The request has succeeded.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Common.BadRequestErrorBody'
          description: The server could not understand the request due to invalid syntax.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Common.UnauthorizedErrorBody'
          description: Access is unauthorized.
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Common.ForbiddenErrorBody'
          description: Access is forbidden.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Common.NotFoundErrorBody'
          description: The server cannot find the requested resource.
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Common.ConflictErrorBody'
          description: The request conflicts with the current state of the server.
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Common.InternalServerErrorBody'
          description: Server error
components:
  schemas:
    Common.uuid:
      format: uuid
      type: string
    Agents.Vault.FieldKey:
      description: UPPER_SNAKE field key, unique within a template or item.
      maxLength: 64
      minLength: 1
      pattern: ^[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)*$
      type: string
    Agents.Vault.VaultItem:
      description: A vault item. Secret values live in WorkOS and never appear here.
      properties:
        createdAt:
          format: date-time
          type: string
        createdBy:
          $ref: '#/components/schemas/Common.uuid'
        fields:
          items:
            $ref: '#/components/schemas/Agents.Vault.ItemField'
          type: array
        id:
          $ref: '#/components/schemas/Common.uuid'
        itemKey:
          allOf:
            - $ref: '#/components/schemas/Agents.Vault.ItemKey'
          description: >-
            Derived from name: kebab-case. Unique per organisation. Changes when
            the item is renamed.
        kind:
          $ref: '#/components/schemas/Agents.Vault.ItemKind'
        lastRotatedAt:
          format: date-time
          type: string
        lastRotatedBy:
          $ref: '#/components/schemas/Common.uuid'
        lastUsedAt:
          format: date-time
          type: string
        name:
          maxLength: 200
          minLength: 1
          type: string
        organizationId:
          $ref: '#/components/schemas/Common.uuid'
        sourceAgentProfileId:
          allOf:
            - $ref: '#/components/schemas/Common.uuid'
          description: >-
            Set when this item was mirrored from a legacy agent-profile
            credentials set. Provenance only; the item is editable in the vault
            UI.
        templateId:
          allOf:
            - $ref: '#/components/schemas/Common.uuid'
          description: Template snapshotted at create. Provenance only.
        updatedAt:
          format: date-time
          type: string
      required:
        - id
        - organizationId
        - itemKey
        - name
        - kind
        - fields
        - createdAt
        - updatedAt
      type: object
    Common.BadRequestErrorBody:
      properties:
        code:
          enum:
            - 400
          type: number
          x-enum-varnames:
            - BadRequest
        message:
          type: string
      required:
        - code
        - message
      type: object
    Common.UnauthorizedErrorBody:
      properties:
        code:
          enum:
            - 401
          type: number
          x-enum-varnames:
            - Unauthorized
        message:
          type: string
      required:
        - code
        - message
      type: object
    Common.ForbiddenErrorBody:
      properties:
        code:
          enum:
            - 403
          type: number
          x-enum-varnames:
            - Forbidden
        message:
          type: string
      required:
        - code
        - message
      type: object
    Common.NotFoundErrorBody:
      properties:
        code:
          enum:
            - 404
          type: number
          x-enum-varnames:
            - NotFound
        message:
          type: string
      required:
        - code
        - message
      type: object
    Common.ConflictErrorBody:
      properties:
        code:
          enum:
            - 409
          type: number
          x-enum-varnames:
            - Conflict
        message:
          type: string
      required:
        - code
        - message
      type: object
    Common.InternalServerErrorBody:
      properties:
        code:
          enum:
            - 500
          type: number
          x-enum-varnames:
            - InternalServerError
        message:
          type: string
      required:
        - code
        - message
      type: object
    Agents.Vault.ItemField:
      description: >-
        A field on a vault item: the frozen spec plus per-field freshness.
        readableValue is omitted for write-only types.
      properties:
        hint:
          description: >-
            Optional guidance shown next to the field, copied from catalog
            credentials when generating masters.
          maxLength: 500
          type: string
        key:
          allOf:
            - $ref: '#/components/schemas/Agents.Vault.FieldKey'
          description: 'Derived from label: UPPER_SNAKE. Read-only.'
        label:
          description: >-
            Human label shown in forms. The field key is UPPER_SNAKE of this
            label.
          maxLength: 200
          minLength: 1
          type: string
        legacyName:
          description: >-
            Original profile-credential name this field mirrors. Set when a
            profile credential is synced into vault; ##NAME## still resolves via
            this alias.
          type: string
        readableValue:
          description: Present only for readable field types. Write-only types omit this.
          type: string
        required:
          type: boolean
        type:
          $ref: '#/components/schemas/Agents.Vault.FieldType'
        valueUpdatedAt:
          format: date-time
          type: string
      required:
        - type
        - label
        - required
        - key
        - valueUpdatedAt
      type: object
    Agents.Vault.ItemKey:
      description: >-
        Kebab-case vault item key, unique per organisation. Derived from name on
        write.
      maxLength: 64
      minLength: 1
      pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
      type: string
    Agents.Vault.ItemKind:
      description: >-
        Kind of vault item. Templates and items need at least one field.
        Completeness is per-field required.
      enum:
        - login
        - api_key
        - card
        - custom
      type: string
      x-enum-varnames:
        - VaultItemKindLogin
        - VaultItemKindApiKey
        - VaultItemKindCard
        - VaultItemKindCustom
    Agents.Vault.FieldType:
      description: >-
        Type of a vault field. Sensitivity is derived from the type: username,
        email, url, phone, text, card_expiry, and cardholder_name are readable;
        password, hidden, totp_seed, api_key, card_number, and card_cvv are
        write-only. There is no separate hidden flag.
      enum:
        - username
        - email
        - url
        - phone
        - text
        - password
        - hidden
        - totp_seed
        - api_key
        - card_number
        - card_expiry
        - card_cvv
        - cardholder_name
      type: string
      x-enum-varnames:
        - VaultFieldTypeUsername
        - VaultFieldTypeEmail
        - VaultFieldTypeUrl
        - VaultFieldTypePhone
        - VaultFieldTypeText
        - VaultFieldTypePassword
        - VaultFieldTypeHidden
        - VaultFieldTypeTotpSeed
        - VaultFieldTypeApiKey
        - VaultFieldTypeCardNumber
        - VaultFieldTypeCardExpiry
        - VaultFieldTypeCardCvv
        - VaultFieldTypeCardholderName
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: X-Api-Key
      type: apiKey

````