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

# Update candidate

> Update existing candidate from CV and form details.



## OpenAPI

````yaml /api-reference/openapi-public.json post /{publicTenantSlug}/candidate-portal/{candidateId}
openapi: 3.0.0
info:
  title: Spott API
  description: ''
  version: '1.0'
  contact: {}
servers:
  - url: https://api.gospott.com
security: []
tags:
  - name: public
    description: ''
paths:
  /{publicTenantSlug}/candidate-portal/{candidateId}:
    post:
      tags:
        - public
      summary: Update candidate
      description: Update existing candidate from CV and form details.
      operationId: handleCandidatePortalSubmission
      parameters:
        - name: publicTenantSlug
          required: true
          in: path
          schema:
            type: string
        - name: candidateId
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CandidatePortalSubmissionDto'
      responses:
        '204':
          description: ''
components:
  schemas:
    CandidatePortalSubmissionDto:
      type: object
      properties:
        firstName:
          type: string
          minLength: 1
          maxLength: 100
          pattern: /^[\p{L}\s\-’']+$/u
        lastName:
          type: string
          minLength: 1
          maxLength: 100
          pattern: /^[\p{L}\s\-’']+$/u
        latestCvAttachmentId:
          type: string
          minLength: 1
          maxLength: 100
        emails:
          type: array
          items:
            $ref: '#/components/schemas/CandidateEmailDto'
        phoneNumbers:
          type: array
          items:
            $ref: '#/components/schemas/CandidatePhoneNumberDto'
        socialMedia:
          type: array
          items:
            $ref: '#/components/schemas/CandidateSocialMediaDto'
      required:
        - firstName
        - lastName
    CandidateEmailDto:
      type: object
      properties:
        purpose:
          type: string
          nullable: true
          enum:
            - personal
            - work
        email:
          type: string
          format: email
      required:
        - purpose
        - email
    CandidatePhoneNumberDto:
      type: object
      properties:
        purpose:
          type: string
          nullable: true
          enum:
            - personal
            - work
        phoneNumber:
          type: string
      required:
        - purpose
        - phoneNumber
    CandidateSocialMediaDto:
      type: object
      properties:
        url:
          type: string
          format: uri
        type:
          enum:
            - LINKEDIN
            - TWITTER
            - FACEBOOK
            - INSTAGRAM
          type: string
      required:
        - url
        - type

````