> ## 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.

# Create Job

> Create a job. A job needs no assessment: link a problem to show candidates’ results on its Client Portal. Send integrationSource and externalId to tie the job to its ID in your system; creating the same pair again returns 409 with the existing job, so retries never duplicate it.

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



## OpenAPI

````yaml https://api.ropes.ai/api/docs/openapi.json post /api/public/jobs
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:
    post:
      tags:
        - Jobs
      summary: Create Job
      description: >-
        Create a job. A job needs no assessment: link a problem to show
        candidates’ results on its Client Portal. Send integrationSource and
        externalId to tie the job to its ID in your system; creating the same
        pair again returns 409 with the existing job, so retries never duplicate
        it.


        **Required scope:** `jobs:write`
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateJobRequest'
      responses:
        '201':
          description: Job created
          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: Forbidden - API key is missing the required scope
        '409':
          description: >-
            A job with this integrationSource and externalId already exists, or
            the problem is already linked to a job. existing holds that job when
            known.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  existing:
                    allOf:
                      - $ref: '#/components/schemas/Job'
                      - description: The job that already exists
                required:
                  - error
        '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:
    CreateJobRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 300
          description: Job title
        description:
          type: string
          nullable: true
          maxLength: 50000
        problemId:
          type: string
          nullable: true
          minLength: 1
          description: >-
            Link an existing problem so the portal can show candidates’ results
            for it. A problem links to one job.
        integrationSource:
          type: string
          pattern: ^[a-z0-9_]{1,64}$
          description: >-
            The system this job comes from: an ATS name such as bullhorn,
            jobdiva or greenhouse, or your own system name. Must be provided
            with externalId.
        externalId:
          type: string
          minLength: 1
          maxLength: 255
          description: The job ID in that system. Must be provided with integrationSource.
      required:
        - name
      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.