naftiko: 1.0.0-alpha2 info: label: Pipedrive API v2 — OrganizationFields description: 'Pipedrive API v2 — OrganizationFields. 8 operations. Lead operation: Get all organization fields. Self-contained Naftiko capability covering one Pipedrive business surface.' tags: - Pipedrive - OrganizationFields created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: PIPEDRIVE_API_KEY: PIPEDRIVE_API_KEY capability: consumes: - type: http namespace: v2-organizationfields baseUri: https://api.pipedrive.com/api/v2 description: Pipedrive API v2 — OrganizationFields business capability. Self-contained, no shared references. resources: - name: organizationFields path: /organizationFields operations: - name: getorganizationfields method: GET description: Get all organization 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: addorganizationfield method: POST description: Create one organization field outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: organizationFields-field_code path: /organizationFields/{field_code} operations: - name: getorganizationfield method: GET description: Get one organization 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: updateorganizationfield method: PATCH description: Update one organization 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: deleteorganizationfield method: DELETE description: Delete one organization 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: organizationFields-field_code-options path: /organizationFields/{field_code}/options operations: - name: addorganizationfieldoptions method: POST description: Add organization 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: deleteorganizationfieldoptions method: DELETE description: Delete organization 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: updateorganizationfieldoptions method: PATCH description: Update organization 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-organizationfields-rest port: 8080 description: REST adapter for Pipedrive API v2 — OrganizationFields. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/organizationfields name: organizationfields description: REST surface for organizationFields. operations: - method: GET name: getorganizationfields description: Get all organization fields call: v2-organizationfields.getorganizationfields with: include_fields: rest.include_fields limit: rest.limit cursor: rest.cursor outputParameters: - type: object mapping: $. - method: POST name: addorganizationfield description: Create one organization field call: v2-organizationfields.addorganizationfield with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/organizationfields/{field-code} name: organizationfields-field-code description: REST surface for organizationFields-field_code. operations: - method: GET name: getorganizationfield description: Get one organization field call: v2-organizationfields.getorganizationfield with: field_code: rest.field_code include_fields: rest.include_fields outputParameters: - type: object mapping: $. - method: PATCH name: updateorganizationfield description: Update one organization field call: v2-organizationfields.updateorganizationfield with: field_code: rest.field_code body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteorganizationfield description: Delete one organization field call: v2-organizationfields.deleteorganizationfield with: field_code: rest.field_code outputParameters: - type: object mapping: $. - path: /v1/organizationfields/{field-code}/options name: organizationfields-field-code-options description: REST surface for organizationFields-field_code-options. operations: - method: POST name: addorganizationfieldoptions description: Add organization field options in bulk call: v2-organizationfields.addorganizationfieldoptions with: field_code: rest.field_code body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteorganizationfieldoptions description: Delete organization field options in bulk call: v2-organizationfields.deleteorganizationfieldoptions with: field_code: rest.field_code body: rest.body outputParameters: - type: object mapping: $. - method: PATCH name: updateorganizationfieldoptions description: Update organization field options in bulk call: v2-organizationfields.updateorganizationfieldoptions with: field_code: rest.field_code body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: v2-organizationfields-mcp port: 9090 transport: http description: MCP adapter for Pipedrive API v2 — OrganizationFields. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-all-organization-fields description: Get all organization fields hints: readOnly: true destructive: false idempotent: true call: v2-organizationfields.getorganizationfields with: include_fields: tools.include_fields limit: tools.limit cursor: tools.cursor outputParameters: - type: object mapping: $. - name: create-one-organization-field description: Create one organization field hints: readOnly: false destructive: false idempotent: false call: v2-organizationfields.addorganizationfield with: body: tools.body outputParameters: - type: object mapping: $. - name: get-one-organization-field description: Get one organization field hints: readOnly: true destructive: false idempotent: true call: v2-organizationfields.getorganizationfield with: field_code: tools.field_code include_fields: tools.include_fields outputParameters: - type: object mapping: $. - name: update-one-organization-field description: Update one organization field hints: readOnly: false destructive: false idempotent: true call: v2-organizationfields.updateorganizationfield with: field_code: tools.field_code body: tools.body outputParameters: - type: object mapping: $. - name: delete-one-organization-field description: Delete one organization field hints: readOnly: false destructive: true idempotent: true call: v2-organizationfields.deleteorganizationfield with: field_code: tools.field_code outputParameters: - type: object mapping: $. - name: add-organization-field-options-bulk description: Add organization field options in bulk hints: readOnly: false destructive: false idempotent: false call: v2-organizationfields.addorganizationfieldoptions with: field_code: tools.field_code body: tools.body outputParameters: - type: object mapping: $. - name: delete-organization-field-options-bulk description: Delete organization field options in bulk hints: readOnly: false destructive: true idempotent: true call: v2-organizationfields.deleteorganizationfieldoptions with: field_code: tools.field_code body: tools.body outputParameters: - type: object mapping: $. - name: update-organization-field-options-bulk description: Update organization field options in bulk hints: readOnly: false destructive: false idempotent: true call: v2-organizationfields.updateorganizationfieldoptions with: field_code: tools.field_code body: tools.body outputParameters: - type: object mapping: $.