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

# Update Job

> Update a job created in Ropes or through this API. Omitted fields keep their current value. Jobs synced from an ATS or VMS cannot be updated here. Changing or removing problemId moves the job's Client Portals to the new problem, keeping their candidates, submittals and reviewers; it returns 409 while any candidate on those portals is showing a result for the current problem (hide it with includeResult: false, or revoke the portal, first).

**Required scope:** `jobs:write`



## OpenAPI

````yaml https://api.ropes.ai/api/docs/openapi.json patch /api/public/jobs/{jobId}
openapi: 3.0.0
info:
  title: Ropes Public API
  version: 1.0.0
  description: >-
    Public API for Ropes. Authenticate using your API key in the x-api-key
    header.
servers:
  - url: https://api.ropes.ai
    description: Production server
  - url: http://localhost:3001
    description: Local development server
security: []
paths:
  /api/public/jobs/{jobId}:
    patch:
      tags:
        - Jobs
      summary: Update Job
      description: >-
        Update a job created in Ropes or through this API. Omitted fields keep
        their current value. Jobs synced from an ATS or VMS cannot be updated
        here. Changing or removing problemId moves the job's Client Portals to
        the new problem, keeping their candidates, submittals and reviewers; it
        returns 409 while any candidate on those portals is showing a result for
        the current problem (hide it with includeResult: false, or revoke the
        portal, first).


        **Required scope:** `jobs:write`
      parameters:
        - schema:
            type: string
            description: The job identifier
          required: true
          description: The job identifier
          name: jobId
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateJobRequest'
      responses:
        '200':
          description: Job updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobResponse'
        '400':
          description: Invalid body, or the problem was not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized - Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: >-
            The job is synced from an ATS or VMS. Also returned when the API key
            is missing the required scope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Job not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: >-
            The problem is already linked to another job, or a Client Portal for
            this job is showing results for the current problem
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: >-
            Rate limit exceeded - contact support@ropes.ai for further
            assistance.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    UpdateJobRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 300
        description:
          type: string
          nullable: true
          maxLength: 50000
        status:
          type: string
          enum:
            - open
            - closed
        problemId:
          type: string
          nullable: true
          minLength: 1
          description: null unlinks the problem
      additionalProperties: false
    JobResponse:
      type: object
      properties:
        job:
          $ref: '#/components/schemas/Job'
      required:
        - job
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Error message
        message:
          type: string
          description: Error message (alternative field)
    Job:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier for the job
        name:
          type: string
          nullable: true
          description: Job title
        description:
          type: string
          nullable: true
          description: Job description
        status:
          type: string
          description: open or closed for jobs created in Ropes or through the API
        problemId:
          type: string
          nullable: true
          description: >-
            The problem (technical assessment or video screening) linked to the
            job, if any
        source:
          type: string
          enum:
            - manual
            - ats
            - vms
          description: >-
            manual: created in Ropes or through this API. ats/vms: synced from
            your ATS or VMS; read-only here.
        integrationSource:
          type: string
          nullable: true
          description: The system the job came from, e.g. bullhorn or your own system name
        externalId:
          type: string
          nullable: true
          description: The job's ID in that system
        createdAt:
          type: string
          nullable: true
          format: date-time
        updatedAt:
          type: string
          nullable: true
          format: date-time
      required:
        - id
        - name
        - description
        - status
        - problemId
        - source
        - integrationSource
        - externalId
        - createdAt
        - updatedAt
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Each key carries scopes chosen when it is created: `candidates:read`,
        `candidates:write`, `assessments:read`, `assessments:write`,
        `problems:read`, `problems:write`, `results:read`, `id_checks:read`,
        `id_checks:write`, `jobs:read`, `jobs:write`, `client_portals:read`,
        `client_portals:write`. Keys created before scopes existed have full
        access. A request with a key that lacks an operation's scope returns 403
        naming the missing scope.

````

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