Leaf Agriculture · Capability

Leaf Agriculture Leaf API — API Reference > Configurations > Leaf User

Leaf Agriculture Leaf API — API Reference > Configurations > Leaf User. 4 operations. Lead operation: Leaf Agriculture Get leaf user config. Self-contained Naftiko capability covering one Leaf Agriculture business surface.

Run with Naftiko Leaf AgricultureAPI Reference > Configurations > Leaf User

What You Can Do

GET
Get — Leaf Agriculture Get leaf user config
/v1/services/config/api/configs/{leaf-user-id}
POST
Post — Leaf Agriculture Create leaf user config
/v1/services/config/api/configs/{leaf-user-id}
PATCH
Patch — Leaf Agriculture Update leaf user config
/v1/services/config/api/configs/{leaf-user-id}
DELETE
Delete — Leaf Agriculture Delete leaf user config
/v1/services/config/api/configs/{leaf-user-id}

MCP Tools

leaf-agriculture-get-leaf-user

Leaf Agriculture Get leaf user config

read-only idempotent
leaf-agriculture-create-leaf-user

Leaf Agriculture Create leaf user config

leaf-agriculture-update-leaf-user

Leaf Agriculture Update leaf user config

idempotent
leaf-agriculture-delete-leaf-user

Leaf Agriculture Delete leaf user config

idempotent

Capability Spec

leaf-agriculture-api-reference-configurations-leaf-user.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Leaf Agriculture Leaf API — API Reference > Configurations > Leaf User
  description: 'Leaf Agriculture Leaf API — API Reference > Configurations > Leaf User. 4 operations. Lead operation: Leaf
    Agriculture Get leaf user config. Self-contained Naftiko capability covering one Leaf Agriculture business surface.'
  tags:
  - Leaf Agriculture
  - API Reference > Configurations > Leaf User
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    LEAF_AGRICULTURE_API_KEY: LEAF_AGRICULTURE_API_KEY
capability:
  consumes:
  - type: http
    namespace: leaf-agriculture-api-reference-configurations-leaf-user
    baseUri: ''
    description: Leaf Agriculture Leaf API — API Reference > Configurations > Leaf User business capability. Self-contained,
      no shared references.
    resources:
    - name: services-config-api-configs-leaf_user_id
      path: /services/config/api/configs/{leaf_user_id}
      operations:
      - name: get
        method: GET
        description: Leaf Agriculture Get leaf user config
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
        - name: Authorization
          in: header
          type: string
        - name: leaf_user_id
          in: path
          type: string
          required: true
      - name: post
        method: POST
        description: Leaf Agriculture Create leaf user config
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
        - name: Authorization
          in: header
          type: string
        - name: leaf_user_id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: patch
        method: PATCH
        description: Leaf Agriculture Update leaf user config
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
        - name: Authorization
          in: header
          type: string
        - name: leaf_user_id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: delete
        method: DELETE
        description: Leaf Agriculture Delete leaf user config
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
        - name: Authorization
          in: header
          type: string
        - name: leaf_user_id
          in: path
          type: string
          required: true
  exposes:
  - type: rest
    namespace: leaf-agriculture-api-reference-configurations-leaf-user-rest
    port: 8080
    description: REST adapter for Leaf Agriculture Leaf API — API Reference > Configurations > Leaf User. One Spectral-compliant
      resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/services/config/api/configs/{leaf-user-id}
      name: services-config-api-configs-leaf-user-id
      description: REST surface for services-config-api-configs-leaf_user_id.
      operations:
      - method: GET
        name: get
        description: Leaf Agriculture Get leaf user config
        call: leaf-agriculture-api-reference-configurations-leaf-user.get
        with:
          Content-Type: rest.Content-Type
          Authorization: rest.Authorization
          leaf_user_id: rest.leaf_user_id
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: post
        description: Leaf Agriculture Create leaf user config
        call: leaf-agriculture-api-reference-configurations-leaf-user.post
        with:
          Content-Type: rest.Content-Type
          Authorization: rest.Authorization
          leaf_user_id: rest.leaf_user_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patch
        description: Leaf Agriculture Update leaf user config
        call: leaf-agriculture-api-reference-configurations-leaf-user.patch
        with:
          Content-Type: rest.Content-Type
          Authorization: rest.Authorization
          leaf_user_id: rest.leaf_user_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: delete
        description: Leaf Agriculture Delete leaf user config
        call: leaf-agriculture-api-reference-configurations-leaf-user.delete
        with:
          Content-Type: rest.Content-Type
          Authorization: rest.Authorization
          leaf_user_id: rest.leaf_user_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: leaf-agriculture-api-reference-configurations-leaf-user-mcp
    port: 9090
    transport: http
    description: MCP adapter for Leaf Agriculture Leaf API — API Reference > Configurations > Leaf User. One tool per consumed
      operation, routed inline through this capability's consumes block.
    tools:
    - name: leaf-agriculture-get-leaf-user
      description: Leaf Agriculture Get leaf user config
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: leaf-agriculture-api-reference-configurations-leaf-user.get
      with:
        Content-Type: tools.Content-Type
        Authorization: tools.Authorization
        leaf_user_id: tools.leaf_user_id
      outputParameters:
      - type: object
        mapping: $.
    - name: leaf-agriculture-create-leaf-user
      description: Leaf Agriculture Create leaf user config
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: leaf-agriculture-api-reference-configurations-leaf-user.post
      with:
        Content-Type: tools.Content-Type
        Authorization: tools.Authorization
        leaf_user_id: tools.leaf_user_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: leaf-agriculture-update-leaf-user
      description: Leaf Agriculture Update leaf user config
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: leaf-agriculture-api-reference-configurations-leaf-user.patch
      with:
        Content-Type: tools.Content-Type
        Authorization: tools.Authorization
        leaf_user_id: tools.leaf_user_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: leaf-agriculture-delete-leaf-user
      description: Leaf Agriculture Delete leaf user config
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: leaf-agriculture-api-reference-configurations-leaf-user.delete
      with:
        Content-Type: tools.Content-Type
        Authorization: tools.Authorization
        leaf_user_id: tools.leaf_user_id
      outputParameters:
      - type: object
        mapping: $.