Humanitec · Capability

Humanitec API — ResourceType

Humanitec API — ResourceType. 5 operations. Lead operation: List Resource Types.. Self-contained Naftiko capability covering one Humanitec business surface.

Run with Naftiko HumanitecResourceType

What You Can Do

GET
Listresourcetypes — List Resource Types.
/v1/orgs/{orgid}/resources/types
POST
Createresourcetype — Creates a new Resources Type.
/v1/orgs/{orgid}/resources/types
DELETE
Deleteresourcetype — Delete a Resource Type.
/v1/orgs/{orgid}/resources/types/{typeid}
PATCH
Patchresourcetype — Update a Resource Type.
/v1/orgs/{orgid}/resources/types/{typeid}
PUT
Updateresourcetype — Update a Resource Type.
/v1/orgs/{orgid}/resources/types/{typeid}

MCP Tools

list-resource-types

List Resource Types.

read-only idempotent
creates-new-resources-type

Creates a new Resources Type.

delete-resource-type

Delete a Resource Type.

idempotent
update-resource-type

Update a Resource Type.

idempotent
update-resource-type-2

Update a Resource Type.

idempotent

Capability Spec

humanitec-resourcetype.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Humanitec API — ResourceType
  description: 'Humanitec API — ResourceType. 5 operations. Lead operation: List Resource Types.. Self-contained Naftiko capability
    covering one Humanitec business surface.'
  tags:
  - Humanitec
  - ResourceType
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    HUMANITEC_API_KEY: HUMANITEC_API_KEY
capability:
  consumes:
  - type: http
    namespace: humanitec-resourcetype
    baseUri: https://api.humanitec.io
    description: Humanitec API — ResourceType business capability. Self-contained, no shared references.
    resources:
    - name: orgs-orgId-resources-types
      path: /orgs/{orgId}/resources/types
      operations:
      - name: listresourcetypes
        method: GET
        description: List Resource Types.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          description: The Organization ID.
          required: true
      - name: createresourcetype
        method: POST
        description: Creates a new Resources Type.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          description: The Organization ID.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: orgs-orgId-resources-types-typeId
      path: /orgs/{orgId}/resources/types/{typeId}
      operations:
      - name: deleteresourcetype
        method: DELETE
        description: Delete a Resource Type.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          description: The Organization ID.
          required: true
        - name: typeId
          in: path
          type: string
          description: The Resource Type id. The type id should be provided as url encoded string.
          required: true
      - name: patchresourcetype
        method: PATCH
        description: Update a Resource Type.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          description: The Organization ID.
          required: true
        - name: typeId
          in: path
          type: string
          description: The Resource Type id. The type id should be provided as url encoded string.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: updateresourcetype
        method: PUT
        description: Update a Resource Type.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: orgId
          in: path
          type: string
          description: The Organization ID.
          required: true
        - name: typeId
          in: path
          type: string
          description: The Resource Type id. The type id should be provided as url encoded string.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
  exposes:
  - type: rest
    namespace: humanitec-resourcetype-rest
    port: 8080
    description: REST adapter for Humanitec API — ResourceType. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/orgs/{orgid}/resources/types
      name: orgs-orgid-resources-types
      description: REST surface for orgs-orgId-resources-types.
      operations:
      - method: GET
        name: listresourcetypes
        description: List Resource Types.
        call: humanitec-resourcetype.listresourcetypes
        with:
          orgId: rest.orgId
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createresourcetype
        description: Creates a new Resources Type.
        call: humanitec-resourcetype.createresourcetype
        with:
          orgId: rest.orgId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{orgid}/resources/types/{typeid}
      name: orgs-orgid-resources-types-typeid
      description: REST surface for orgs-orgId-resources-types-typeId.
      operations:
      - method: DELETE
        name: deleteresourcetype
        description: Delete a Resource Type.
        call: humanitec-resourcetype.deleteresourcetype
        with:
          orgId: rest.orgId
          typeId: rest.typeId
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patchresourcetype
        description: Update a Resource Type.
        call: humanitec-resourcetype.patchresourcetype
        with:
          orgId: rest.orgId
          typeId: rest.typeId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateresourcetype
        description: Update a Resource Type.
        call: humanitec-resourcetype.updateresourcetype
        with:
          orgId: rest.orgId
          typeId: rest.typeId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: humanitec-resourcetype-mcp
    port: 9090
    transport: http
    description: MCP adapter for Humanitec API — ResourceType. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-resource-types
      description: List Resource Types.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: humanitec-resourcetype.listresourcetypes
      with:
        orgId: tools.orgId
      outputParameters:
      - type: object
        mapping: $.
    - name: creates-new-resources-type
      description: Creates a new Resources Type.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: humanitec-resourcetype.createresourcetype
      with:
        orgId: tools.orgId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-resource-type
      description: Delete a Resource Type.
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: humanitec-resourcetype.deleteresourcetype
      with:
        orgId: tools.orgId
        typeId: tools.typeId
      outputParameters:
      - type: object
        mapping: $.
    - name: update-resource-type
      description: Update a Resource Type.
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: humanitec-resourcetype.patchresourcetype
      with:
        orgId: tools.orgId
        typeId: tools.typeId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: update-resource-type-2
      description: Update a Resource Type.
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: humanitec-resourcetype.updateresourcetype
      with:
        orgId: tools.orgId
        typeId: tools.typeId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.