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

# Create job board posting

> Create and publish a job board posting for a job. The job must have non-empty job description content before it can be published. Optionally provide `jobDescriptionId` to select which job description the posting uses; when omitted the oldest job description of the vacancy is selected.



## OpenAPI

````yaml /openapi-private.json post /job-boards
openapi: 3.1.0
info:
  title: Spott API Reference
  version: '0.1'
servers:
  - url: https://api.gospott.com
security: []
tags: []
paths:
  /job-boards:
    post:
      tags:
        - Job Boards
      summary: Create job board posting
      description: >-
        Create and publish a job board posting for a job. The job must have
        non-empty job description content before it can be published. Optionally
        provide `jobDescriptionId` to select which job description the posting
        uses; when omitted the oldest job description of the vacancy is
        selected.
      operationId: createJobBoardPosting
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateJobBoardPostingDto'
      responses:
        '201':
          description: Job board posting created successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateRecordResponseDto'
        '400':
          description: >-
            Bad request - invalid job board provider, missing job description
            content, or a jobDescriptionId that does not belong to the vacancy
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionBaseDto'
        '401':
          description: Unauthorized - invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionBaseDto'
        '500':
          description: Error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionBaseDto'
      security:
        - x-api-key: []
components:
  schemas:
    CreateJobBoardPostingDto:
      type: object
      properties:
        vacancyId:
          type: string
          minLength: 1
        jobBoardProvider:
          type: string
          enum:
            - SPOTT
        targetStageId:
          type: string
          minLength: 1
        jobDescriptionId:
          type: string
          minLength: 1
        linkedInProjectUrl:
          format: uri
          type: string
        applyUrl:
          format: uri
          type: string
      required:
        - vacancyId
        - jobBoardProvider
        - targetStageId
      id: PrivateCreateJobBoardPostingDto
    CreateRecordResponseDto:
      type: object
      properties:
        id:
          type: string
          minLength: 1
      required:
        - id
      id: CreateRecordResponseDto
    ExceptionBaseDto:
      type: object
      properties:
        status:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        message:
          type: string
        requestId:
          type: string
      required:
        - status
        - message
        - requestId
      id: ExceptionBaseDto
  securitySchemes:
    x-api-key:
      type: apiKey
      name: x-api-key
      in: header
      description: >-
        API key for authentication. Get your API key from Settings → API Keys in
        your Spott dashboard.

````