Absentify · Capability

Absentify API — Departments

Absentify API — Departments. 5 operations. Lead operation: Absentify Get All Departments. Self-contained Naftiko capability covering one Absentify business surface.

Run with Naftiko AbsentifyDepartments

What You Can Do

GET
Departmentgetdepartments — Absentify Get All Departments
/v1/departments
POST
Departmentcreatedepartment — Absentify Create a Department
/v1/departments
GET
Departmentgetdepartmentbyid — Absentify Read a Department by Id
/v1/departments/{id}
PUT
Departmentupdatedepartment — Absentify Update a Department
/v1/departments/{id}
DELETE
Departmentdeletedepartmentbyid — Absentify Delete a Department
/v1/departments/{id}

MCP Tools

absentify-get-all-departments

Absentify Get All Departments

read-only idempotent
absentify-create-department

Absentify Create a Department

absentify-read-department-id

Absentify Read a Department by Id

read-only idempotent
absentify-update-department

Absentify Update a Department

idempotent
absentify-delete-department

Absentify Delete a Department

idempotent

Capability Spec

absentify-departments.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Absentify API — Departments
  description: 'Absentify API — Departments. 5 operations. Lead operation: Absentify Get All Departments. Self-contained Naftiko
    capability covering one Absentify business surface.'
  tags:
  - Absentify
  - Departments
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ABSENTIFY_API_KEY: ABSENTIFY_API_KEY
capability:
  consumes:
  - type: http
    namespace: absentify-departments
    baseUri: https://api.absentify.com/api/v1
    description: Absentify API — Departments business capability. Self-contained, no shared references.
    resources:
    - name: departments
      path: /departments
      operations:
      - name: departmentgetdepartments
        method: GET
        description: Absentify Get All Departments
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: departmentcreatedepartment
        method: POST
        description: Absentify Create a Department
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: departments-id
      path: /departments/{id}
      operations:
      - name: departmentgetdepartmentbyid
        method: GET
        description: Absentify Read a Department by Id
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
      - name: departmentupdatedepartment
        method: PUT
        description: Absentify Update a Department
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: departmentdeletedepartmentbyid
        method: DELETE
        description: Absentify Delete a Department
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
    authentication:
      type: apikey
      key: X-API-KEY
      value: '{{env.ABSENTIFY_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: absentify-departments-rest
    port: 8080
    description: REST adapter for Absentify API — Departments. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/departments
      name: departments
      description: REST surface for departments.
      operations:
      - method: GET
        name: departmentgetdepartments
        description: Absentify Get All Departments
        call: absentify-departments.departmentgetdepartments
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: departmentcreatedepartment
        description: Absentify Create a Department
        call: absentify-departments.departmentcreatedepartment
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/departments/{id}
      name: departments-id
      description: REST surface for departments-id.
      operations:
      - method: GET
        name: departmentgetdepartmentbyid
        description: Absentify Read a Department by Id
        call: absentify-departments.departmentgetdepartmentbyid
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: departmentupdatedepartment
        description: Absentify Update a Department
        call: absentify-departments.departmentupdatedepartment
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: departmentdeletedepartmentbyid
        description: Absentify Delete a Department
        call: absentify-departments.departmentdeletedepartmentbyid
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: absentify-departments-mcp
    port: 9090
    transport: http
    description: MCP adapter for Absentify API — Departments. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: absentify-get-all-departments
      description: Absentify Get All Departments
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: absentify-departments.departmentgetdepartments
      outputParameters:
      - type: object
        mapping: $.
    - name: absentify-create-department
      description: Absentify Create a Department
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: absentify-departments.departmentcreatedepartment
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: absentify-read-department-id
      description: Absentify Read a Department by Id
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: absentify-departments.departmentgetdepartmentbyid
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: absentify-update-department
      description: Absentify Update a Department
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: absentify-departments.departmentupdatedepartment
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: absentify-delete-department
      description: Absentify Delete a Department
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: absentify-departments.departmentdeletedepartmentbyid
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.