naftiko: 1.0.0-alpha2 info: label: Pipedrive API v1 — OrganizationFields description: 'Pipedrive API v1 — OrganizationFields. 6 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: v1-organizationfields baseUri: https://api.pipedrive.com/v1 description: Pipedrive API v1 — 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: start in: query type: integer description: Pagination start - name: limit in: query type: integer description: Items shown per page - name: addorganizationfield method: POST description: Add a new organization field outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: deleteorganizationfields method: DELETE description: Delete multiple organization fields in bulk outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: ids in: query type: string description: The comma-separated field IDs to delete required: true - name: organizationFields-id path: /organizationFields/{id} operations: - name: getorganizationfield method: GET description: Get one organization field outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer description: The ID of the field required: true - name: deleteorganizationfield method: DELETE description: Delete an organization field outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer description: The ID of the field required: true - name: updateorganizationfield method: PUT description: Update an organization field outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer description: The ID of the field required: true - name: body in: body type: object description: Request body (JSON). required: false authentication: type: bearer token: '{{env.PIPEDRIVE_API_KEY}}' exposes: - type: rest namespace: v1-organizationfields-rest port: 8080 description: REST adapter for Pipedrive API v1 — 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: v1-organizationfields.getorganizationfields with: start: rest.start limit: rest.limit outputParameters: - type: object mapping: $. - method: POST name: addorganizationfield description: Add a new organization field call: v1-organizationfields.addorganizationfield with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteorganizationfields description: Delete multiple organization fields in bulk call: v1-organizationfields.deleteorganizationfields with: ids: rest.ids outputParameters: - type: object mapping: $. - path: /v1/organizationfields/{id} name: organizationfields-id description: REST surface for organizationFields-id. operations: - method: GET name: getorganizationfield description: Get one organization field call: v1-organizationfields.getorganizationfield with: id: rest.id outputParameters: - type: object mapping: $. - method: DELETE name: deleteorganizationfield description: Delete an organization field call: v1-organizationfields.deleteorganizationfield with: id: rest.id outputParameters: - type: object mapping: $. - method: PUT name: updateorganizationfield description: Update an organization field call: v1-organizationfields.updateorganizationfield with: id: rest.id body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: v1-organizationfields-mcp port: 9090 transport: http description: MCP adapter for Pipedrive API v1 — 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: v1-organizationfields.getorganizationfields with: start: tools.start limit: tools.limit outputParameters: - type: object mapping: $. - name: add-new-organization-field description: Add a new organization field hints: readOnly: false destructive: false idempotent: false call: v1-organizationfields.addorganizationfield with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-multiple-organization-fields-bulk description: Delete multiple organization fields in bulk hints: readOnly: false destructive: true idempotent: true call: v1-organizationfields.deleteorganizationfields with: ids: tools.ids outputParameters: - type: object mapping: $. - name: get-one-organization-field description: Get one organization field hints: readOnly: true destructive: false idempotent: true call: v1-organizationfields.getorganizationfield with: id: tools.id outputParameters: - type: object mapping: $. - name: delete-organization-field description: Delete an organization field hints: readOnly: false destructive: true idempotent: true call: v1-organizationfields.deleteorganizationfield with: id: tools.id outputParameters: - type: object mapping: $. - name: update-organization-field description: Update an organization field hints: readOnly: false destructive: false idempotent: true call: v1-organizationfields.updateorganizationfield with: id: tools.id body: tools.body outputParameters: - type: object mapping: $.