# Destroy Job Posting

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/content/management/job_postings/{id}:
    delete:
      summary: Destroy Job Posting
      deprecated: false
      description: ''
      tags:
        - API Reference/Management API/CMS/Job Postings
      parameters:
        - name: id
          in: path
          description: ''
          required: true
          example: 1
          schema:
            type: integer
        - name: Content-Type
          in: header
          description: '[Details](doc-341635)'
          required: true
          example: application/json
          schema:
            type: string
            default: application/json
            const: application/json
        - name: X-User-Agent
          in: header
          description: Arbitrary identifier of your client. [Details](doc-341635)
          required: true
          example: '{{X_USER_AGENT}}'
          schema:
            type: string
            default: '{{X_USER_AGENT}}'
        - name: X-Product-Name
          in: header
          description: API Product for API context. [Details](doc-341635)
          required: true
          example: '{{PRODUCT_NAME}}'
          schema:
            type: string
            default: '{{PRODUCT_NAME}}'
        - name: X-Loyalty-Club-Slug
          in: header
          description: LoyaltyClub for API context. [Details](doc-342138)
          required: false
          example: '{{LOYALTY_CLUB_SLUG}}'
          schema:
            type: string
            default: '{{LOYALTY_CLUB_SLUG}}'
        - name: X-Customer
          in: header
          description: Customer for API context.  [Details](doc-342139)
          required: false
          example: '{{CUSTOMER_ID}}'
          schema:
            type: string
            default: '{{CUSTOMER_ID}}'
        - name: Authorization
          in: header
          description: '[Member](doc-342129) or [User](doc-342130) Authorization.'
          required: false
          example: Bearer {{_OAUTH_TOKEN}}
          schema:
            type: string
            default: Bearer {{_OAUTH_TOKEN}}
        - name: X-Client-Authorization
          in: header
          description: '[Token](doc-342128) Authorization.'
          example: '{{API_TOKEN}}'
          schema:
            type: string
            default: '{{API_TOKEN}}'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  job_posting:
                    $ref: '#/components/schemas/Job%20Posting'
                x-apidog-orders:
                  - job_posting
                required:
                  - job_posting
                x-apidog-ignore-properties: []
              example:
                job_posting:
                  id: 416
                  customer_id: 447
                  locales: []
                  products: []
                  status: published
                  visible_since: '2024-03-21T09:00:00.000000Z'
                  visible_until: '2024-03-31T10:01:00.000000Z'
                  sorting_priority: 0
                  title:
                    en: Barista 2
                    'no': null
                    pl: null
                    sv: null
                  slug:
                    en: barista2
                    'no': null
                    pl: null
                    sv: null
                  body:
                    en: <p>ff</p>
                    'no': null
                    pl: null
                    sv: null
                  starts_at: null
                  ends_at: null
                  starts_at_text: {}
                  ends_at_text: {}
                  store_id: 36
                  number_of_openings: 1
                  contract_type: full_time
                  apply_link:
                    type: null
                    value: null
                    title: null
                  apply_description: {}
                  url: jobs/416-barista2
                  publication_status: expired
                  external_master: null
                  us_legacy_data: null
                  visible_in_list: true
                  created_at: '2024-03-19T13:07:23.044165Z'
                  updated_at: '2024-05-28T11:33:33.133985Z'
                  archived_at: null
          headers: {}
          x-apidog-name: Success
      security: []
      x-apidog-folder: API Reference/Management API/CMS/Job Postings
      x-apidog-status: released
      x-run-in-apidog: https://app.eu.apidog.com/web/project/346351/apis/api-3511163-run
components:
  schemas:
    Job Posting:
      type: object
      properties:
        id: &ref_2
          $ref: '#/components/schemas/id'
        customer_id:
          $ref: '#/components/schemas/id.customer_id'
        locales:
          anyOf:
            - $ref: '#/components/schemas/cms.locales'
            - type: 'null'
        products:
          anyOf:
            - $ref: '#/components/schemas/cms.products'
            - type: 'null'
        status:
          $ref: '#/components/schemas/cms.status'
        visible_since:
          anyOf:
            - $ref: '#/components/schemas/cms.visible_since'
            - type: 'null'
        visible_until:
          anyOf:
            - $ref: '#/components/schemas/cms.visible_until'
            - type: 'null'
        sorting_priority:
          $ref: '#/components/schemas/cms.sorting_priority'
        title:
          anyOf:
            - &ref_0
              $ref: '#/components/schemas/LocalizedContent'
            - type: 'null'
        slug:
          anyOf:
            - *ref_0
            - type: 'null'
        body:
          anyOf:
            - *ref_0
            - type: 'null'
        starts_at:
          anyOf:
            - &ref_1
              $ref: '#/components/schemas/date_time'
            - type: 'null'
          description: Date to display in [CMS Public API](doc-341653) as start date
        ends_at:
          anyOf:
            - *ref_1
            - type: 'null'
          description: Date to display in [CMS Public API](doc-341653) as end date
        starts_at_text:
          anyOf:
            - *ref_0
            - type: 'null'
          description: String to display as start date
        ends_at_text:
          anyOf:
            - *ref_0
            - type: 'null'
          description: String to display as end date
        store_id:
          anyOf:
            - *ref_2
            - type: 'null'
          description: ID of Store the posting is for
        number_of_openings:
          type: integer
        contract_type:
          type: string
          enum:
            - full_time
            - part_time
            - seasonal
            - freelance
          x-apidog-enum:
            - value: full_time
              name: ''
              description: ''
            - value: part_time
              name: ''
              description: ''
            - value: seasonal
              name: ''
              description: ''
            - value: freelance
              name: ''
              description: ''
        apply_link:
          type: object
          properties:
            type:
              type: string
              enum:
                - url
                - msisdn
                - email
              x-apidog-enum:
                - value: url
                  name: ''
                  description: ''
                - value: msisdn
                  name: ''
                  description: ''
                - value: email
                  name: ''
                  description: ''
              nullable: true
            value:
              type: string
              nullable: true
            title:
              anyOf:
                - *ref_0
                - type: 'null'
          required:
            - type
            - value
            - title
          x-apidog-orders:
            - type
            - value
            - title
          x-apidog-ignore-properties: []
          nullable: true
        apply_description:
          anyOf:
            - *ref_0
            - type: 'null'
        url:
          $ref: '#/components/schemas/cms.url'
        created_at:
          $ref: '#/components/schemas/date_time.created_at'
        updated_at:
          $ref: '#/components/schemas/date_time.updated_at'
        archived_at:
          $ref: '#/components/schemas/date_time.archived_at'
        publication_status:
          $ref: '#/components/schemas/cms.publication_status'
        external_master:
          anyOf:
            - $ref: '#/components/schemas/cms.external_master'
            - type: 'null'
        us_legacy_data:
          $ref: '#/components/schemas/cms.us_legacy_data'
        visible_in_list:
          $ref: '#/components/schemas/cms.visible_in_list'
      required:
        - id
        - customer_id
        - locales
        - products
        - status
        - visible_since
        - visible_until
        - sorting_priority
        - title
        - slug
        - body
        - starts_at
        - ends_at
        - starts_at_text
        - ends_at_text
        - store_id
        - number_of_openings
        - contract_type
        - apply_link
        - apply_description
        - url
        - created_at
        - updated_at
        - archived_at
        - publication_status
        - external_master
        - us_legacy_data
        - visible_in_list
      x-apidog-orders:
        - id
        - customer_id
        - locales
        - products
        - status
        - visible_since
        - visible_until
        - sorting_priority
        - title
        - slug
        - body
        - starts_at
        - ends_at
        - starts_at_text
        - ends_at_text
        - store_id
        - number_of_openings
        - contract_type
        - apply_link
        - apply_description
        - url
        - created_at
        - updated_at
        - archived_at
        - publication_status
        - external_master
        - us_legacy_data
        - visible_in_list
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    cms.visible_in_list:
      type: boolean
      description: Should record be returned on lists of [CMS Public API](doc-341653)
      default: true
      examples:
        - true
      x-apidog-folder: ''
    cms.us_legacy_data:
      type: object
      properties: {}
      x-apidog-orders: []
      description: Extra content for migrated content from legacy system
      additionalProperties: true
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    cms.external_master:
      type: string
      description: 'When present, the record is being synced from given external source '
      examples:
        - scraper
      x-apidog-folder: ''
    cms.publication_status:
      type: string
      description: >-
        Visibility status of the record in [CMS Public API](doc-341653) that
        takes into the consideration `status`, `visible_since`  and
        `visible_until` dates
      enum:
        - published
        - draft
        - expired
        - scheduled
      examples:
        - published
      readOnly: true
      x-apidog-enum:
        - value: published
          name: ''
          description: ''
        - value: draft
          name: ''
          description: ''
        - value: expired
          name: ''
          description: ''
        - value: scheduled
          name: ''
          description: ''
      x-apidog-folder: ''
    date_time.archived_at:
      type: string
      description: Time of the record archivization
      format: date-time
      examples:
        - '2022-11-15T16:25:58.099512Z'
      readOnly: true
      nullable: true
      x-apidog-folder: ''
    date_time.updated_at:
      type: string
      description: Time of the last record update
      format: date-time
      examples:
        - '2022-11-15T16:25:58.099512Z'
      readOnly: true
      x-apidog-folder: ''
    date_time.created_at:
      type: string
      description: Time of record creation
      format: date-time
      examples:
        - '2022-11-05T16:25:58.099512Z'
      readOnly: true
      x-apidog-folder: ''
    cms.url:
      type: string
      description: Address of the entity page on website
      examples:
        - path/to/:id
      readOnly: true
      x-apidog-folder: ''
    date_time:
      type: string
      format: date-time
      examples:
        - '2022-11-09T16:25:58.099512Z'
      x-apidog-folder: ''
    LocalizedContent:
      type: object
      properties: {}
      x-apidog-orders: []
      title: ''
      examples:
        - en: Text
      additionalProperties:
        type: string
        description: >-
          The actual set of languages depends on LC configuration. See:
          [Localization](doc-341959)
        examples:
          - Tekst
        nullable: true
      x-apidog-ignore-properties: []
      nullable: true
      x-apidog-folder: ''
    cms.sorting_priority:
      type: integer
      description: >-
        Priority of the record during sorting in [CMS Public API](doc-341653).
        Currently read-only.
      examples:
        - 0
      x-apidog-folder: ''
    cms.visible_until:
      type: string
      description: Date until the record is visible in [CMS Public API](doc-341653)
      format: date-time
      examples:
        - '2022-11-15T16:25:58.099512Z'
      x-apidog-folder: ''
    cms.visible_since:
      type: string
      description: Date since the record is visible in [CMS Public API](doc-341653)
      format: date-time
      examples:
        - '2022-11-09T16:25:58.099512Z'
      x-apidog-folder: ''
    cms.status:
      type: string
      enum:
        - draft
        - published
        - unpublished
      examples:
        - published
      description: Determines visibility in [Public API](doc-341643)
      x-apidog-enum:
        - name: ''
          value: draft
          description: ''
        - name: ''
          value: published
          description: ''
        - name: ''
          value: unpublished
          description: ''
      x-apidog-folder: ''
    cms.products:
      type: array
      items:
        type: string
        examples:
          - test
      description: >-
        API products the record should be available to - see [X-Product-Name
        Header](doc-341635#x-locale-header)
      examples:
        - - website
      x-apidog-orders: []
      x-apidog-folder: ''
    cms.locales:
      type: array
      items:
        type: string
        examples:
          - test
      description: >-
        Locales the record should be available to - see:
        [Localization](doc-341959)
      examples:
        - - en
      x-apidog-orders: []
      x-apidog-folder: ''
    id.customer_id:
      type: integer
      format: uint64
      readOnly: true
      examples:
        - 447
      description: Customer the record is assigned to
      x-apidog-folder: ''
    id:
      type: integer
      description: Primary identifier of the record
      format: uint64
      readOnly: true
      examples:
        - 1
      x-apidog-folder: ''
  securitySchemes: {}
servers:
  - url: https://api.mpc.dev.placewise.com
    description: Staging
security: []

```