> ## Documentation index
> Fetch the complete documentation index at: https://docs.rxresu.me/llms.txt
> Ask it with GET https://docs.rxresu.me/ask?q=<keywords or question>. Short keywords rank best.
> Use these to discover all available pages before exploring further.

# Name a resume version

> Saves the resume as it is now as a named version, kept until deleted. Only the resume owner can name versions. Requires authentication.

`POST /resumes/{resumeId}/versions`

## OpenAPI

````yaml spec.json post /resumes/{resumeId}/versions
openapi: 3.1.1
info:
  title: Reactive Resume
  version: 6.0.7
  description: "Reactive Resume API. Mutations do not support Idempotency-Key. Do
    not automatically retry POST, PUT, PATCH or DELETE requests after a timeout:
    first read the resource to determine whether the operation succeeded.
    Existing enum values and response shapes are retained for compatibility."
  license:
    name: MIT
    url: https://github.com/reactive-resume/reactive-resume/blob/main/LICENSE
  contact:
    name: Amruth Pillai
    email: amruth@rxresu.me
    url: https://amruthpillai.com
servers:
  - url: https://rxresu.me/api/openapi
security:
  - apiKey: []
  - bearerAuth: []
  - cookieAuth: []
paths:
  /resumes/{resumeId}/versions:
    post:
      operationId: createResumeVersion
      summary: Name a resume version
      description: Saves the resume as it is now as a named version, kept until
        deleted. Only the resume owner can name versions. Requires
        authentication.
      tags:
        - Resumes
      parameters:
        - name: resumeId
          in: path
          required: true
          schema:
            type: string
            description: The ID of the resume to name a version of.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 80
                  description: The version's name, e.g. 'Sent to Lumen'.
              required:
                - name
      responses:
        "200":
          description: The new named version.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: The ID of the version.
                  kind:
                    enum:
                      - created
                      - import
                      - auto
                      - named
                      - before-restore
                      - restored
                      - ai
                      - sent
                    type: string
                    description: "What made the version: created, import, auto (an editing session's
                      autosave), named, before-restore, restored, ai (an AI or
                      API edit) or sent."
                  name:
                    anyOf:
                      - type: string
                      - type: "null"
                    description: The user's name for a named version.
                  createdAt:
                    type: string
                    format: date-time
                    x-native-type: date
                    description: When this state was saved.
                required:
                  - id
                  - kind
                  - name
                  - createdAt
        default:
          description: Structured API error. See status and code; do not branch on message
            text.
          content:
            application/json:
              schema:
                type: object
                required:
                  - defined
                  - code
                  - status
                  - message
                properties:
                  defined:
                    type: boolean
                  code:
                    type: string
                  status:
                    type: integer
                  message:
                    type: string
                  data: {}
      security:
        - apiKey: []
        - bearerAuth: []
        - cookieAuth: []
      x-codeSamples:
        - lang: bash
          label: cURL
          source: >-
            curl --request POST
            "https://rxresu.me/api/openapi/resumes/<resumeId>/versions" --header
            "x-api-key: <api-key>" --header "Content-Type: application/json"
            --data '{
              "name": "<string>"
            }'
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: An OAuth access token issued by this instance for its API/MCP resource.
    cookieAuth:
      type: apiKey
      in: cookie
      name: better-auth.session_token
      description: Browser session (secure deployments use the __Secure- prefix).
        Cookie requests must originate from this instance.
    apiKey:
      type: apiKey
      name: x-api-key
      in: header
      description: The API key to authenticate requests.
````
