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

# Update job

> Update a job's details. When changing status to `published`, plan-based publish limits are enforced.



## OpenAPI

````yaml /docs/openapi.yaml patch /jobs/{jobId}
openapi: 3.1.0
info:
  title: Loam API
  description: >
    The Loam API allows you to programmatically manage your applicant tracking
    system.


    ## Authentication


    All API requests require a Bearer token in the Authorization header:


    ```

    Authorization: Bearer lk_your_api_key_here

    ```


    You can create API keys in your [Settings > API
    Keys](https://hireloam.com/settings/api-keys) page.


    ## Rate Limits


    API requests are rate limited to 1000 requests per hour per API key.

    Rate limit headers are included in all responses:


    - `X-RateLimit-Limit`: Maximum requests per hour

    - `X-RateLimit-Remaining`: Requests remaining in current window

    - `X-RateLimit-Reset`: Unix timestamp when the limit resets
  version: 1.0.0
  contact:
    name: Loam Support
    email: support@hireloam.com
servers:
  - url: https://hireloam.com/api/v1
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Jobs
    description: Manage job postings
  - name: Applications
    description: Manage applications and candidates
  - name: Notes
    description: Add notes to applications
  - name: Feedback
    description: Add interview feedback
  - name: Candidates
    description: Manage candidate profiles
  - name: Search
    description: Search candidates
  - name: Sourcing
    description: Sourcing searches, prospects, and shortlists
paths:
  /jobs/{jobId}:
    patch:
      tags:
        - Jobs
      summary: Update job
      description: >-
        Update a job's details. When changing status to `published`, plan-based
        publish limits are enforced.
      operationId: updateJob
      parameters:
        - name: jobId
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                description_md:
                  type: string
                status:
                  type: string
                  enum:
                    - draft
                    - published
                    - closed
                department:
                  type: string
                  nullable: true
                location:
                  type: string
                  nullable: true
                employment_type:
                  type: string
                  nullable: true
                show_salary:
                  type: boolean
                salary_currency:
                  type: string
                  nullable: true
                salary_timeframe:
                  type: string
                  nullable: true
                salary_min:
                  type: number
                  nullable: true
                salary_max:
                  type: number
                  nullable: true
                equity_min:
                  type: number
                  nullable: true
                equity_max:
                  type: number
                  nullable: true
            example:
              status: published
              department: Engineering
      responses:
        '200':
          description: Job updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  job:
                    $ref: '#/components/schemas/JobDetail'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  schemas:
    JobDetail:
      allOf:
        - $ref: '#/components/schemas/Job'
        - type: object
          properties:
            description_md:
              type: string
              nullable: true
            show_salary:
              type: boolean
            salary_currency:
              type: string
              nullable: true
            salary_timeframe:
              type: string
              nullable: true
            salary_min:
              type: number
              nullable: true
            salary_max:
              type: number
              nullable: true
            stages:
              type: array
              items:
                allOf:
                  - $ref: '#/components/schemas/Stage'
                  - type: object
                    properties:
                      application_count:
                        type: integer
    Job:
      type: object
      properties:
        id:
          type: string
          format: uuid
        title:
          type: string
        status:
          type: string
          enum:
            - published
            - draft
            - closed
        department:
          type: string
          nullable: true
        location:
          type: string
          nullable: true
        employment_type:
          type: string
          nullable: true
        public_slug:
          type: string
          nullable: true
        created_at:
          type: string
          format: date-time
        stages:
          type: array
          items:
            $ref: '#/components/schemas/Stage'
    Stage:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        order_index:
          type: integer
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - invalid_request
                - unauthorized
                - forbidden
                - not_found
                - rate_limit_exceeded
                - internal_error
            message:
              type: string
            details:
              type: object
  responses:
    BadRequest:
      description: Bad request - invalid or missing parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: invalid_request
              message: job_id is required
    Unauthorized:
      description: Unauthorized - missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: unauthorized
              message: Invalid or missing API key
    Forbidden:
      description: Forbidden - insufficient permissions
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: forbidden
              message: 'Missing required scope: write'
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: not_found
              message: Application not found
    InternalError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: internal_error
              message: An internal error occurred
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key from Settings > API Keys

````