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

# Update Candidate

Update one or more fields on an existing candidate. Only the fields you include in the request body will be modified.

All fields are optional. Only include the fields you want to update.

The response carries only the candidate's id. To read the updated candidate, call [Get Candidate](/docs/api-reference/candidates/get-candidate.md).

```bash cURL theme={null}
curl -X PATCH "https://api.classet.ai/v2/candidates/Xk3pQ9vT2mLr8bNc4Hd1s" \
  -H "X-API-KEY: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "phone": "+15559876543",
    "location": { "city": "Dallas", "region": "TX", "location_str": "Dallas, TX" },
    "skills": ["conduit bending", "NEC code", "blueprint reading", "panel wiring"]
  }'
```

```json 200 theme={null}
{
  "data": {
    "id": "Xk3pQ9vT2mLr8bNc4Hd1s"
  }
}
```


## OpenAPI

````yaml PATCH /v2/candidates/{candidateId}
openapi: 3.1.0
info:
  title: Classet API
  version: 2.0.3
  description: >-
    AI-powered recruiting and phone screening API.


    **API key scopes.** `read` covers every GET; any other method needs `write`
    (403 `insufficient_scope`); starting or stopping an interview also needs
    `interviews:send`. A branch-limited key sees and writes only jobs in its
    branches (not jobs with no branch) and their candidates, applications and
    calls; anything outside is a 404. An organization-group key is read-only
    across every organization in its group. Branch-limited and group keys cannot
    use organization configuration (scripts, knowledge, webhooks, message
    automations, agent settings, AI generation, organization): 403
    `restricted_key_unsupported`. `GET /v2/me` reports what the calling key can
    do.
servers:
  - url: https://api.classet.ai
    description: Production
  - url: http://localhost:8081
    description: Local development
security:
  - ApiKeyAuth: []
paths:
  /v2/candidates/{candidateId}:
    patch:
      tags:
        - Candidates
      summary: Update a candidate
      parameters:
        - schema:
            type: string
          required: true
          name: candidateId
          in: path
          description: The unique identifier of the candidate.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                first_name:
                  type: string
                  minLength: 1
                  description: Candidate's first name.
                last_name:
                  type: string
                  minLength: 1
                  description: Candidate's last name.
                phone:
                  type: string
                  pattern: ^\+[1-9]\d{1,14}$
                  description: Phone number in E.164 format (e.g. `+15551234567`).
                email:
                  type: string
                  format: email
                  description: Email address.
                job_id:
                  type: string
                  description: >-
                    Reassign the candidate to another job owned by your
                    organization.
                location:
                  type: object
                  properties:
                    city:
                      type: string
                    region:
                      type: string
                    country:
                      type: string
                    zip_code:
                      type: string
                    region_code:
                      type: string
                      nullable: true
                    country_code:
                      type: string
                      nullable: true
                    location_str:
                      type: string
                  description: >-
                    Candidate location fields such as `city`, `region`,
                    `country`, `zip_code`, and `location_str`.
                resume_url:
                  type: string
                  format: uri
                  example: https://storage.example.com/resumes/ada.pdf
                  description: >-
                    HTTPS URL we can fetch the resume from. Internal and private
                    addresses are rejected.
                experience_entries:
                  type: array
                  items:
                    type: object
                    properties:
                      title:
                        type: string
                      company:
                        type: string
                      current:
                        type: boolean
                      summary:
                        type: string
                      start_date:
                        type: string
                      end_date:
                        type: string
                        nullable: true
                      industry:
                        type: string
                        nullable: true
                    required:
                      - title
                  description: Structured work history entries.
                education_entries:
                  type: array
                  items:
                    type: object
                    properties:
                      school:
                        type: string
                      degree:
                        type: string
                      field_of_study:
                        type: string
                      start_date:
                        type: string
                      end_date:
                        type: string
                  description: Structured education history entries.
                skills:
                  type: array
                  items:
                    type: string
                  description: List of skills.
                summary:
                  type: string
                  description: Brief candidate summary or bio.
                candidate_summary:
                  type: string
                  description: Alias for summary (v1 compatibility)
                answers:
                  type: array
                  items:
                    type: object
                    properties:
                      question:
                        type: object
                        properties:
                          body:
                            type: string
                        required:
                          - body
                      answer:
                        type: object
                        properties:
                          body:
                            type: string
                        required:
                          - body
                    required:
                      - question
                      - answer
                  description: Application question answers
                custom_data:
                  type: object
                  nullable: true
                  additionalProperties:
                    nullable: true
                  description: >-
                    Merge metadata at the top level. Set a key to `null` to
                    delete it, or pass `null` for the whole field to clear all
                    metadata.
      responses:
        '200':
          description: Updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                    required:
                      - id
                required:
                  - data
        '404':
          description: Not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Resource not found
                  code:
                    type: string
                    enum:
                      - not_found
                      - validation_error
                      - unauthorized
                      - forbidden
                      - insufficient_scope
                      - restricted_key_unsupported
                      - branch_out_of_scope
                      - key_misconfigured
                      - quota_exceeded
                      - rate_limited
                      - rate_limit_unavailable
                      - conflict
                      - idempotency_key_reuse
                      - candidate_opted_out
                      - recently_contacted
                      - request_in_progress
                      - unprocessable
                      - bad_request
                      - payload_too_large
                      - internal_error
                      - service_unavailable
                    example: not_found
                    description: Stable machine-readable error code.
                  request_id:
                    type: string
                    example: 9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f
                    description: >-
                      Request ID, also echoed in the X-Request-Id response
                      header. Include it when reporting issues.
                required:
                  - error
        '500':
          description: Server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Resource not found
                  code:
                    type: string
                    enum:
                      - not_found
                      - validation_error
                      - unauthorized
                      - forbidden
                      - insufficient_scope
                      - restricted_key_unsupported
                      - branch_out_of_scope
                      - key_misconfigured
                      - quota_exceeded
                      - rate_limited
                      - rate_limit_unavailable
                      - conflict
                      - idempotency_key_reuse
                      - candidate_opted_out
                      - recently_contacted
                      - request_in_progress
                      - unprocessable
                      - bad_request
                      - payload_too_large
                      - internal_error
                      - service_unavailable
                    example: not_found
                    description: Stable machine-readable error code.
                  request_id:
                    type: string
                    example: 9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f
                    description: >-
                      Request ID, also echoed in the X-Request-Id response
                      header. Include it when reporting issues.
                required:
                  - error
        '503':
          description: External mutations are not enabled
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Resource not found
                  code:
                    type: string
                    enum:
                      - not_found
                      - validation_error
                      - unauthorized
                      - forbidden
                      - insufficient_scope
                      - restricted_key_unsupported
                      - branch_out_of_scope
                      - key_misconfigured
                      - quota_exceeded
                      - rate_limited
                      - rate_limit_unavailable
                      - conflict
                      - idempotency_key_reuse
                      - candidate_opted_out
                      - recently_contacted
                      - request_in_progress
                      - unprocessable
                      - bad_request
                      - payload_too_large
                      - internal_error
                      - service_unavailable
                    example: not_found
                    description: Stable machine-readable error code.
                  request_id:
                    type: string
                    example: 9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f
                    description: >-
                      Request ID, also echoed in the X-Request-Id response
                      header. Include it when reporting issues.
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
      description: Your Classet API key. Create and rotate keys in Settings → API.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.