StackOne · Capability

Marketing — Time Off

Marketing — Time Off. 4 operations. Lead operation: List time off requests. Self-contained Naftiko capability covering one Stackone business surface.

Run with Naftiko StackoneTime Off

What You Can Do

GET
Hrislisttimeoffrequests — List time off requests
/v1/unified/hris/time-off
POST
Hriscreatetimeoffrequest — Creates a time off request
/v1/unified/hris/time-off
GET
Hrisgettimeoffrequest — Get time off request
/v1/unified/hris/time-off/{id}
PATCH
Hrisupdatetimeoffrequest — Update time off request
/v1/unified/hris/time-off/{id}

MCP Tools

list-time-off-requests

List time off requests

read-only idempotent
creates-time-off-request

Creates a time off request

get-time-off-request

Get time off request

read-only idempotent
update-time-off-request

Update time off request

idempotent

Capability Spec

stackone-time-off.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Marketing — Time Off
  description: 'Marketing — Time Off. 4 operations. Lead operation: List time off requests. Self-contained Naftiko capability
    covering one Stackone business surface.'
  tags:
  - Stackone
  - Time Off
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    STACKONE_API_KEY: STACKONE_API_KEY
capability:
  consumes:
  - type: http
    namespace: stackone-time-off
    baseUri: https://api.stackone.com
    description: Marketing — Time Off business capability. Self-contained, no shared references.
    resources:
    - name: unified-hris-time_off
      path: /unified/hris/time_off
      operations:
      - name: hrislisttimeoffrequests
        method: GET
        description: List time off requests
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: page
          in: query
          type: string
          description: The page number of the results to fetch
        - name: page_size
          in: query
          type: string
          description: The number of results per page
        - name: raw
          in: query
          type: boolean
          description: Indicates that the raw request result is returned
        - name: fields
          in: query
          type: string
          description: The comma separated list of fields to return in the response (if empty, all fields are returned)
        - name: sync_token
          in: query
          type: string
          description: The sync token to select the only updated results
        - name: updated_after
          in: query
          type: string
          description: Use a string with a date to only select results updated after that given date
        - name: proxy
          in: query
          type: object
          description: Query parameters that can be used to pass through parameters to the underlying provider request by
            surrounding them with "proxy" key
        - name: x-account-id
          in: header
          type: string
          description: The account identifier
          required: true
      - name: hriscreatetimeoffrequest
        method: POST
        description: Creates a time off request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: x-account-id
          in: header
          type: string
          description: The account identifier
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: unified-hris-time_off-id
      path: /unified/hris/time_off/{id}
      operations:
      - name: hrisgettimeoffrequest
        method: GET
        description: Get time off request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: page
          in: query
          type: string
          description: The page number of the results to fetch
        - name: page_size
          in: query
          type: string
          description: The number of results per page
        - name: raw
          in: query
          type: boolean
          description: Indicates that the raw request result is returned
        - name: fields
          in: query
          type: string
          description: The comma separated list of fields to return in the response (if empty, all fields are returned)
        - name: sync_token
          in: query
          type: string
          description: The sync token to select the only updated results
        - name: updated_after
          in: query
          type: string
          description: Use a string with a date to only select results updated after that given date
        - name: proxy
          in: query
          type: object
          description: Query parameters that can be used to pass through parameters to the underlying provider request by
            surrounding them with "proxy" key
        - name: x-account-id
          in: header
          type: string
          description: The account identifier
          required: true
      - name: hrisupdatetimeoffrequest
        method: PATCH
        description: Update time off request
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: x-account-id
          in: header
          type: string
          description: The account identifier
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: basic
      username: '{{env.STACKONE_USER}}'
      password: '{{env.STACKONE_PASS}}'
  exposes:
  - type: rest
    namespace: stackone-time-off-rest
    port: 8080
    description: REST adapter for Marketing — Time Off. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/unified/hris/time-off
      name: unified-hris-time-off
      description: REST surface for unified-hris-time_off.
      operations:
      - method: GET
        name: hrislisttimeoffrequests
        description: List time off requests
        call: stackone-time-off.hrislisttimeoffrequests
        with:
          page: rest.page
          page_size: rest.page_size
          raw: rest.raw
          fields: rest.fields
          sync_token: rest.sync_token
          updated_after: rest.updated_after
          proxy: rest.proxy
          x-account-id: rest.x-account-id
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: hriscreatetimeoffrequest
        description: Creates a time off request
        call: stackone-time-off.hriscreatetimeoffrequest
        with:
          x-account-id: rest.x-account-id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/unified/hris/time-off/{id}
      name: unified-hris-time-off-id
      description: REST surface for unified-hris-time_off-id.
      operations:
      - method: GET
        name: hrisgettimeoffrequest
        description: Get time off request
        call: stackone-time-off.hrisgettimeoffrequest
        with:
          id: rest.id
          page: rest.page
          page_size: rest.page_size
          raw: rest.raw
          fields: rest.fields
          sync_token: rest.sync_token
          updated_after: rest.updated_after
          proxy: rest.proxy
          x-account-id: rest.x-account-id
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: hrisupdatetimeoffrequest
        description: Update time off request
        call: stackone-time-off.hrisupdatetimeoffrequest
        with:
          id: rest.id
          x-account-id: rest.x-account-id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: stackone-time-off-mcp
    port: 9090
    transport: http
    description: MCP adapter for Marketing — Time Off. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: list-time-off-requests
      description: List time off requests
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: stackone-time-off.hrislisttimeoffrequests
      with:
        page: tools.page
        page_size: tools.page_size
        raw: tools.raw
        fields: tools.fields
        sync_token: tools.sync_token
        updated_after: tools.updated_after
        proxy: tools.proxy
        x-account-id: tools.x-account-id
      outputParameters:
      - type: object
        mapping: $.
    - name: creates-time-off-request
      description: Creates a time off request
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: stackone-time-off.hriscreatetimeoffrequest
      with:
        x-account-id: tools.x-account-id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-time-off-request
      description: Get time off request
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: stackone-time-off.hrisgettimeoffrequest
      with:
        id: tools.id
        page: tools.page
        page_size: tools.page_size
        raw: tools.raw
        fields: tools.fields
        sync_token: tools.sync_token
        updated_after: tools.updated_after
        proxy: tools.proxy
        x-account-id: tools.x-account-id
      outputParameters:
      - type: object
        mapping: $.
    - name: update-time-off-request
      description: Update time off request
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: stackone-time-off.hrisupdatetimeoffrequest
      with:
        id: tools.id
        x-account-id: tools.x-account-id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.