naftiko: 1.0.0-alpha2 info: label: Pipedrive API v2 — ProductFields description: 'Pipedrive API v2 — ProductFields. 8 operations. Lead operation: Get all product fields. Self-contained Naftiko capability covering one Pipedrive business surface.' tags: - Pipedrive - ProductFields created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: PIPEDRIVE_API_KEY: PIPEDRIVE_API_KEY capability: consumes: - type: http namespace: v2-productfields baseUri: https://api.pipedrive.com/api/v2 description: Pipedrive API v2 — ProductFields business capability. Self-contained, no shared references. resources: - name: productFields path: /productFields operations: - name: getproductfields method: GET description: Get all product fields outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: include_fields in: query type: string description: Optional comma separated string array of additional data namespaces to include in response - name: limit in: query type: integer description: For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. - name: cursor in: query type: string description: For pagination, the marker (an opaque string value) representing the first item on the next page - name: addproductfield method: POST description: Create one product field outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: productFields-field_code path: /productFields/{field_code} operations: - name: getproductfield method: GET description: Get one product field outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: field_code in: path type: string description: The unique code identifying the field required: true - name: include_fields in: query type: string description: Optional comma separated string array of additional data namespaces to include in response - name: updateproductfield method: PATCH description: Update one product field outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: field_code in: path type: string description: The unique code identifying the field required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deleteproductfield method: DELETE description: Delete one product field outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: field_code in: path type: string description: The unique code identifying the field required: true - name: productFields-field_code-options path: /productFields/{field_code}/options operations: - name: addproductfieldoptions method: POST description: Add product field options in bulk outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: field_code in: path type: string description: The unique code identifying the field required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deleteproductfieldoptions method: DELETE description: Delete product field options in bulk outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: field_code in: path type: string description: The unique code identifying the field required: true - name: body in: body type: object description: Request body (JSON). required: true - name: updateproductfieldoptions method: PATCH description: Update product field options in bulk outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: field_code in: path type: string description: The unique code identifying the field required: true - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.PIPEDRIVE_API_KEY}}' exposes: - type: rest namespace: v2-productfields-rest port: 8080 description: REST adapter for Pipedrive API v2 — ProductFields. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/productfields name: productfields description: REST surface for productFields. operations: - method: GET name: getproductfields description: Get all product fields call: v2-productfields.getproductfields with: include_fields: rest.include_fields limit: rest.limit cursor: rest.cursor outputParameters: - type: object mapping: $. - method: POST name: addproductfield description: Create one product field call: v2-productfields.addproductfield with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/productfields/{field-code} name: productfields-field-code description: REST surface for productFields-field_code. operations: - method: GET name: getproductfield description: Get one product field call: v2-productfields.getproductfield with: field_code: rest.field_code include_fields: rest.include_fields outputParameters: - type: object mapping: $. - method: PATCH name: updateproductfield description: Update one product field call: v2-productfields.updateproductfield with: field_code: rest.field_code body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteproductfield description: Delete one product field call: v2-productfields.deleteproductfield with: field_code: rest.field_code outputParameters: - type: object mapping: $. - path: /v1/productfields/{field-code}/options name: productfields-field-code-options description: REST surface for productFields-field_code-options. operations: - method: POST name: addproductfieldoptions description: Add product field options in bulk call: v2-productfields.addproductfieldoptions with: field_code: rest.field_code body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteproductfieldoptions description: Delete product field options in bulk call: v2-productfields.deleteproductfieldoptions with: field_code: rest.field_code body: rest.body outputParameters: - type: object mapping: $. - method: PATCH name: updateproductfieldoptions description: Update product field options in bulk call: v2-productfields.updateproductfieldoptions with: field_code: rest.field_code body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: v2-productfields-mcp port: 9090 transport: http description: MCP adapter for Pipedrive API v2 — ProductFields. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-all-product-fields description: Get all product fields hints: readOnly: true destructive: false idempotent: true call: v2-productfields.getproductfields with: include_fields: tools.include_fields limit: tools.limit cursor: tools.cursor outputParameters: - type: object mapping: $. - name: create-one-product-field description: Create one product field hints: readOnly: false destructive: false idempotent: false call: v2-productfields.addproductfield with: body: tools.body outputParameters: - type: object mapping: $. - name: get-one-product-field description: Get one product field hints: readOnly: true destructive: false idempotent: true call: v2-productfields.getproductfield with: field_code: tools.field_code include_fields: tools.include_fields outputParameters: - type: object mapping: $. - name: update-one-product-field description: Update one product field hints: readOnly: false destructive: false idempotent: true call: v2-productfields.updateproductfield with: field_code: tools.field_code body: tools.body outputParameters: - type: object mapping: $. - name: delete-one-product-field description: Delete one product field hints: readOnly: false destructive: true idempotent: true call: v2-productfields.deleteproductfield with: field_code: tools.field_code outputParameters: - type: object mapping: $. - name: add-product-field-options-bulk description: Add product field options in bulk hints: readOnly: false destructive: false idempotent: false call: v2-productfields.addproductfieldoptions with: field_code: tools.field_code body: tools.body outputParameters: - type: object mapping: $. - name: delete-product-field-options-bulk description: Delete product field options in bulk hints: readOnly: false destructive: true idempotent: true call: v2-productfields.deleteproductfieldoptions with: field_code: tools.field_code body: tools.body outputParameters: - type: object mapping: $. - name: update-product-field-options-bulk description: Update product field options in bulk hints: readOnly: false destructive: false idempotent: true call: v2-productfields.updateproductfieldoptions with: field_code: tools.field_code body: tools.body outputParameters: - type: object mapping: $.