> ## Documentation Index
> Fetch the complete documentation index at: https://help.scribe-mail.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a teammate's smart fields



## OpenAPI

````yaml /api-reference/openapi.json patch /v1/teammates/{id}
openapi: 3.0.1
info:
  title: Scribe Public API
  version: v1
  description: >-
    REST API to manage email signatures, teammates, smart fields, and marketing
    campaigns in your Scribe workspace. Every request uses JSON and is
    authenticated with a workspace API key. Endpoints are versioned under `/v1`,
    for example `https://api.scribe-mail.com/v1/signatures`.
  contact:
    name: Scribe Support
    url: https://help.scribe-mail.com/en
servers:
  - url: https://api.scribe-mail.com
    description: Production
security: []
tags:
  - name: Signatures
    description: >-
      Create, update, publish, and install email signature templates, and
      control which teammates each signature is assigned to.
  - name: Teammates
    description: >-
      Manage the people whose signatures Scribe deploys, and set their smart
      field values.
  - name: Emails
    description: >-
      Manage teammate email addresses, including the aliases that receive a
      signature.
  - name: Smart fields
    description: >-
      Define the dynamic fields, such as job title, phone number, or calendar
      link, that populate signatures.
  - name: Folders
    description: Organize signature templates into folders.
  - name: Assets
    description: >-
      Upload and manage the images and files used across signatures and
      campaigns.
  - name: Marketing campaigns
    description: >-
      Schedule, pause, and resume the promotional banners shown in your team's
      signatures.
  - name: Integrations
    description: >-
      List the directory, HRIS, and email integrations connected to your
      workspace.
  - name: Integration entities
    description: >-
      List the org units and groups from your connected integrations, used to
      target signatures.
  - name: Financial documents
    description: List the invoices and financial documents for your workspace.
paths:
  /v1/teammates/{id}:
    parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
    patch:
      tags:
        - Teammates
      summary: Update a teammate's smart fields
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/teammate_update_params'
      responses:
        '200':
          description: Updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/teammate_response'
        '422':
          description: Unknown smart field
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/validation_error_response'
      security:
        - ApiKey: []
components:
  schemas:
    teammate_update_params:
      type: object
      properties:
        teammate:
          type: object
          properties:
            smart_fields:
              type: array
              items:
                type: object
                properties:
                  smart_field_id:
                    type: string
                  value:
                    type: string
                    nullable: true
                required:
                  - smart_field_id
                  - value
                additionalProperties: false
          required:
            - smart_fields
          additionalProperties: false
      required:
        - teammate
      additionalProperties: false
    teammate_response:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/teammate'
      required:
        - data
      additionalProperties: false
    validation_error_response:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
            code:
              type: string
            message:
              type: string
          required:
            - type
            - code
            - message
          additionalProperties: false
        details:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
              code:
                type: string
              message:
                type: string
              allowed:
                type: array
                description: >-
                  For an enum/const violation: the permitted values for this
                  field. Present only when the list is small enough to inline;
                  for large enums (e.g. icon) see the content schema.
                items: {}
              missing:
                type: array
                description: 'For a missing-required violation: the absent property names.'
                items:
                  type: string
            required:
              - field
              - code
              - message
            additionalProperties: false
      required:
        - error
        - details
      additionalProperties: false
    teammate:
      type: object
      properties:
        id:
          type: string
        emails:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              address:
                type: string
              primary:
                type: boolean
            required:
              - id
              - address
              - primary
            additionalProperties: false
        smart_field_values:
          type: array
          items:
            type: object
            properties:
              value:
                type: string
                nullable: true
              smart_field_id:
                type: string
              integration_id:
                type: string
                nullable: true
            required:
              - value
              - smart_field_id
              - integration_id
            additionalProperties: false
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - id
        - emails
        - smart_field_values
        - created_at
        - updated_at
      additionalProperties: false
  securitySchemes:
    ApiKey:
      type: http
      scheme: bearer

````