---
title: "opening.removeJob"
method: POST
path: "/opening.removeJob"
tags: ["Openings"]
---

# opening.removeJob

`POST /opening.removeJob`

Removes a job from an opening.

**Requires the [`jobsWrite`](authentication#permissions-openingremovejob) permission.**

## Request body

- OpeningRemoveJobRequest
  - `openingId` string, uuid, required — The id of the opening
  - `jobId` string, uuid, required — The id of the job to remove from the opening

## Response `200`

Responses from the opening.removeJob endpoint

- union
  - OpeningRemoveJobSuccessResponse
    - `success` true, required
    - `results` Opening, required
      - `id` string, uuid, required — The unique identifier for the opening
      - `openedAt` string, date-time, nullable, required — The timestamp when the opening was opened
      - `closedAt` string, date-time, nullable, required — The timestamp when the opening was closed
      - `isArchived` boolean, required — Whether the opening is archived
      - `closeReasonId` string, uuid, nullable, required — The unique identifier for the close reason
      - `archivedAt` string, date-time, nullable, required — The timestamp when the opening was archived
      - `openingState` 'Draft' | 'Approved' | 'Open' | 'Closed' | 'Filled', required — The current state of the opening
      - `latestVersion` OpeningVersion, required
        - `id` string, uuid, required — The unique identifier for the opening version
        - `identifier` string, required — The human-readable opening identifier
        - `description` string, nullable, required — The opening description
        - `authorId` string, uuid, nullable, required — The unique identifier for the author
        - `createdAt` string, date-time, required — The timestamp when the opening version was created
        - `targetHireDate` string, nullable, required — The target hire date for the opening
        - `targetStartDate` string, nullable, required — The target start date for the opening
        - `isBackfill` boolean, required — Whether the opening is a backfill
        - `employmentType` 'FullTime' | 'PartTime' | 'Intern' | 'Contract' | 'Temporary', required — The employment type for the opening
        - `teamId` string, uuid, nullable, required — The unique identifier for the team
        - `jobIds` string[], required — The unique identifiers for jobs linked to the opening
        - `locationIds` string[], required — The unique identifiers for locations linked to the opening
        - `hiringTeam` OpeningHiringTeamRole[], required — The hiring team roles assigned to the opening
          - `userId` string, uuid, required — The unique identifier for the user
          - `firstName` string, required — The user's first name
          - `lastName` string, required — The user's last name
          - `email` string, email, required — The user's email address
          - `role` string, required — The user's role on the opening hiring team
        - `customFields` OpeningCustomField[], required — Custom fields associated with the opening
          - `id` string, uuid, required — The unique identifier for the custom field definition
          - `isPrivate` boolean — Whether the custom field is private and requires additional permissions
          - `title` string, required — The title of the custom field
          - `valueLabel` union — The label of the custom field value for select fields
            - string
            - string[]
          - `value` union, required — The value of the custom field
            - boolean
            - number
            - string
            - string[]
            - object
              - …
            - object
              - …
            - object
              - …
  - ErrorResponse
    - `success` false, required
    - `errors` ErrorDetail[], required
      - `message` string, required
      - `parameter` string

---

[API](https://skmtc.net/ashbyhq/apis/ashby-api.md) · [All operations](https://skmtc.net/ashbyhq/apis/ashby-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ashbyhq/ashby-api/revisions/778b919dc743/schema)
