Deel · Capability

Endpoints — subpackage_customFieldsContracts

Endpoints — subpackage_customFieldsContracts. 4 operations. Lead operation: List all custom fields. Self-contained Naftiko capability covering one Deel business surface.

Run with Naftiko Deelsubpackage_customFieldsContracts

What You Can Do

GET
Getcontractcustomfields — List all custom fields
/v1/contracts/custom-fields
GET
Getcustomfield — Get custom fields from contracts
/v1/contracts/custom-fields/{id}
PUT
Putcontractcustomfield — Update custom field value
/v1/contracts/{contract-id}/custom-fields
DELETE
Deletecontractcustomfield — Delete Contract custom field by Id
/v1/contracts/{contract-id}/custom-fields/{id}

MCP Tools

list-all-custom-fields

List all custom fields

read-only idempotent
get-custom-fields-contracts

Get custom fields from contracts

read-only idempotent
update-custom-field-value

Update custom field value

idempotent
delete-contract-custom-field-id

Delete Contract custom field by Id

idempotent

Capability Spec

platform-endpoints-subpackage-customfieldscontracts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Endpoints — subpackage_customFieldsContracts
  description: 'Endpoints — subpackage_customFieldsContracts. 4 operations. Lead operation: List all custom fields. Self-contained
    Naftiko capability covering one Deel business surface.'
  tags:
  - Deel
  - subpackage_customFieldsContracts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    DEEL_API_KEY: DEEL_API_KEY
capability:
  consumes:
  - type: http
    namespace: platform-endpoints-subpackage-customfieldscontracts
    baseUri: https://api.letsdeel.com/rest/v2
    description: Endpoints — subpackage_customFieldsContracts business capability. Self-contained, no shared references.
    resources:
    - name: contracts-custom_fields
      path: /contracts/custom_fields
      operations:
      - name: getcontractcustomfields
        method: GET
        description: List all custom fields
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
          description: '## Authentication'
          required: true
    - name: contracts-custom_fields-id
      path: /contracts/custom_fields/{id}
      operations:
      - name: getcustomfield
        method: GET
        description: Get custom fields from contracts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: Custom field id.
          required: true
        - name: Authorization
          in: header
          type: string
          description: '## Authentication'
          required: true
    - name: contracts-contract_id-custom_fields
      path: /contracts/{contract_id}/custom_fields
      operations:
      - name: putcontractcustomfield
        method: PUT
        description: Update custom field value
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: contract_id
          in: path
          type: string
          description: Contract id.
          required: true
        - name: Authorization
          in: header
          type: string
          description: '## Authentication'
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: contracts-contract_id-custom_fields-id
      path: /contracts/{contract_id}/custom_fields/{id}
      operations:
      - name: deletecontractcustomfield
        method: DELETE
        description: Delete Contract custom field by Id
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: Custom field id.
          required: true
        - name: contract_id
          in: path
          type: string
          description: Contract id.
          required: true
        - name: Authorization
          in: header
          type: string
          description: '## Authentication'
          required: true
    authentication:
      type: bearer
      token: '{{env.DEEL_API_KEY}}'
  exposes:
  - type: rest
    namespace: platform-endpoints-subpackage-customfieldscontracts-rest
    port: 8080
    description: REST adapter for Endpoints — subpackage_customFieldsContracts. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/contracts/custom-fields
      name: contracts-custom-fields
      description: REST surface for contracts-custom_fields.
      operations:
      - method: GET
        name: getcontractcustomfields
        description: List all custom fields
        call: platform-endpoints-subpackage-customfieldscontracts.getcontractcustomfields
        with:
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/contracts/custom-fields/{id}
      name: contracts-custom-fields-id
      description: REST surface for contracts-custom_fields-id.
      operations:
      - method: GET
        name: getcustomfield
        description: Get custom fields from contracts
        call: platform-endpoints-subpackage-customfieldscontracts.getcustomfield
        with:
          id: rest.id
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/contracts/{contract-id}/custom-fields
      name: contracts-contract-id-custom-fields
      description: REST surface for contracts-contract_id-custom_fields.
      operations:
      - method: PUT
        name: putcontractcustomfield
        description: Update custom field value
        call: platform-endpoints-subpackage-customfieldscontracts.putcontractcustomfield
        with:
          contract_id: rest.contract_id
          Authorization: rest.Authorization
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/contracts/{contract-id}/custom-fields/{id}
      name: contracts-contract-id-custom-fields-id
      description: REST surface for contracts-contract_id-custom_fields-id.
      operations:
      - method: DELETE
        name: deletecontractcustomfield
        description: Delete Contract custom field by Id
        call: platform-endpoints-subpackage-customfieldscontracts.deletecontractcustomfield
        with:
          id: rest.id
          contract_id: rest.contract_id
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: platform-endpoints-subpackage-customfieldscontracts-mcp
    port: 9090
    transport: http
    description: MCP adapter for Endpoints — subpackage_customFieldsContracts. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: list-all-custom-fields
      description: List all custom fields
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: platform-endpoints-subpackage-customfieldscontracts.getcontractcustomfields
      with:
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.
    - name: get-custom-fields-contracts
      description: Get custom fields from contracts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: platform-endpoints-subpackage-customfieldscontracts.getcustomfield
      with:
        id: tools.id
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.
    - name: update-custom-field-value
      description: Update custom field value
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: platform-endpoints-subpackage-customfieldscontracts.putcontractcustomfield
      with:
        contract_id: tools.contract_id
        Authorization: tools.Authorization
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-contract-custom-field-id
      description: Delete Contract custom field by Id
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: platform-endpoints-subpackage-customfieldscontracts.deletecontractcustomfield
      with:
        id: tools.id
        contract_id: tools.contract_id
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.