Sage HR Terminations reasons API

The Terminations reasons API from Sage HR — 1 operation(s) for terminations reasons.

OpenAPI Specification

sage-hr-terminations-reasons-api-openapi.yml Raw ↑
openapi: 3.0.0
info:
  description: All requests are required to be sent to your subdomain. To learn how to enable API in your Sage HR account, please visit https://support.sage.hr/en/articles/3246469-how-does-cakehr-api-work
  title: Sage HR Documents Terminations reasons API
  version: '1.0'
  x-konfig-ignore:
    potential-incorrect-type: true
  x-konfig-uses-multipart-form-data: true
servers:
- url: https://subdomain.sage.hr/api
tags:
- name: Terminations reasons
paths:
  /termination-reasons:
    summary: Termination reasons
    get:
      operationId: TerminationsReasons_listInCompany
      parameters:
      - example: 2
        explode: true
        in: query
        name: page
        required: false
        schema:
          type: integer
        style: form
        x-konfig-original-example: 2
      responses:
        '200':
          content:
            application/json:
              examples:
                response:
                  value:
                    data:
                    - id: 19
                      name: New job
                      code: NJ
                      type: voluntary
                    - id: 20
                      name: End of Internship
                      code: null
                      type: involuntary
                    meta:
                      current_page: 1
                      next_page: 2
                      previous_page: null
                      total_pages: 2
                      per_page: 50
                      total_entries: 75
              schema:
                $ref: '#/components/schemas/TerminationsReasonsListInCompanyResponse'
          description: Successful Response
      security:
      - api_key: []
      summary: List termination reasons in company
      tags:
      - Terminations reasons
      x-konfig-operation-can-have-single-parameter: true
      x-konfig-single-parameter-schema: konfig-generated-schema-single-parameter-schema-get--termination-reasons
      x-accepts: application/json
components:
  schemas:
    TerminationsReasonsListInCompanyResponse:
      example:
        data:
        - id: 19
          name: New job
          code: NJ
          type: voluntary
        - id: 20
          name: End of Internship
          code: null
          type: involuntary
        meta:
          current_page: 1
          next_page: 2
          previous_page: null
          total_pages: 2
          per_page: 50
          total_entries: 75
      properties:
        data:
          items:
            $ref: '#/components/schemas/TerminationsReasonsListInCompanyResponse_data_inner'
          type: array
        meta:
          $ref: '#/components/schemas/TerminationsReasonsListInCompanyResponse_meta'
      type: object
      x-konfig-original-example:
        data:
        - id: 19
          name: New job
          code: NJ
          type: voluntary
        - id: 20
          name: End of Internship
          type: involuntary
        meta:
          current_page: 1
          next_page: 2
          total_pages: 2
          per_page: 50
          total_entries: 75
      x-konfig-generated-schema: konfig-generated-schema-components-schemas-TerminationsReasonsListInCompanyResponse
      x-konfig-is-used-in-successful-response: true
    TerminationsReasonsListInCompanyResponse_data_inner:
      properties:
        id:
          example: 19
          type: number
          x-konfig-original-example: 19
          x-konfig-generated-schema: konfig-generated-schema-components-schemas-TerminationsReasonsListInCompanyResponse-properties-data-items-properties-id
        name:
          example: New job
          type: string
          x-konfig-original-example: New job
          x-konfig-generated-schema: konfig-generated-schema-components-schemas-TerminationsReasonsListInCompanyResponse-properties-data-items-properties-name
        code:
          example: NJ
          nullable: true
          type: string
          x-konfig-original-example: NJ
          x-konfig-generated-schema: konfig-generated-schema-components-schemas-TerminationsReasonsListInCompanyResponse-properties-data-items-properties-code
        type:
          example: voluntary
          type: string
          x-konfig-original-example: voluntary
          x-konfig-generated-schema: konfig-generated-schema-components-schemas-TerminationsReasonsListInCompanyResponse-properties-data-items-properties-type
      type: object
    TerminationsReasonsListInCompanyResponse_meta:
      properties:
        current_page:
          example: 1
          type: number
          x-konfig-original-example: 1
          x-konfig-generated-schema: konfig-generated-schema-components-schemas-TerminationsReasonsListInCompanyResponse-properties-meta-properties-current_page
        next_page:
          example: 2
          type: number
          x-konfig-original-example: 2
          x-konfig-generated-schema: konfig-generated-schema-components-schemas-TerminationsReasonsListInCompanyResponse-properties-meta-properties-next_page
        previous_page:
          nullable: true
          type: string
          x-konfig-null-placeholder: true
          x-konfig-generated-schema: konfig-generated-schema-components-schemas-TerminationsReasonsListInCompanyResponse-properties-meta-properties-previous_page
          example: null
        total_pages:
          example: 2
          type: number
          x-konfig-original-example: 2
          x-konfig-generated-schema: konfig-generated-schema-components-schemas-TerminationsReasonsListInCompanyResponse-properties-meta-properties-total_pages
        per_page:
          example: 50
          type: number
          x-konfig-original-example: 50
          x-konfig-generated-schema: konfig-generated-schema-components-schemas-TerminationsReasonsListInCompanyResponse-properties-meta-properties-per_page
        total_entries:
          example: 75
          type: number
          x-konfig-original-example: 75
          x-konfig-generated-schema: konfig-generated-schema-components-schemas-TerminationsReasonsListInCompanyResponse-properties-meta-properties-total_entries
      type: object
  securitySchemes:
    api_key:
      description: All request are required to pass a `X-Auth-Token` header.
      in: header
      name: X-Auth-Token
      type: apiKey
      x-konfig-globally-required-security: false