naftiko: 1.0.0-alpha2 info: label: API Endpoints — subpackage_customFieldsOpportunity description: 'API Endpoints — subpackage_customFieldsOpportunity. 5 operations. Lead operation: List Opportunity Custom Fields. Self-contained Naftiko capability covering one Close business surface.' tags: - Close - subpackage_customFieldsOpportunity created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: CLOSE_API_KEY: CLOSE_API_KEY capability: consumes: - type: http namespace: close-subpackage-customfieldsopportunity baseUri: https://api.close.com/api/v1 description: API Endpoints — subpackage_customFieldsOpportunity business capability. Self-contained, no shared references. resources: - name: custom_field-opportunity path: /custom_field/opportunity/ operations: - name: list method: GET description: List Opportunity Custom Fields outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: _limit in: query type: integer description: Number of results to return. - name: _skip in: query type: integer description: Number of results to skip before returning, for pagination. - name: _fields in: query type: string description: Comma-separated list of fields to include in the response. - name: Authorization in: header type: string description: Use your API key as the username and leave the password empty. required: true - name: create method: POST description: Create a new Opportunity Custom Field outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string description: Use your API key as the username and leave the password empty. required: true - name: body in: body type: object description: Request body (JSON). required: false - name: custom_field-opportunity-id path: /custom_field/opportunity/{id}/ operations: - name: get method: GET description: Fetch Opportunity Custom Field's details outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string required: true - name: _fields in: query type: string description: Comma-separated list of fields to include in the response. - name: Authorization in: header type: string description: Use your API key as the username and leave the password empty. required: true - name: update method: PUT description: Update an Opportunity Custom Field outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string required: true - name: Authorization in: header type: string description: Use your API key as the username and leave the password empty. required: true - name: body in: body type: object description: Request body (JSON). required: false - name: delete method: DELETE description: Delete an Opportunity Custom Field outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string required: true - name: Authorization in: header type: string description: Use your API key as the username and leave the password empty. required: true authentication: type: bearer token: '{{env.CLOSE_API_KEY}}' exposes: - type: rest namespace: close-subpackage-customfieldsopportunity-rest port: 8080 description: REST adapter for API Endpoints — subpackage_customFieldsOpportunity. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/custom-field/opportunity name: custom-field-opportunity description: REST surface for custom_field-opportunity. operations: - method: GET name: list description: List Opportunity Custom Fields call: close-subpackage-customfieldsopportunity.list with: _limit: rest._limit _skip: rest._skip _fields: rest._fields Authorization: rest.Authorization outputParameters: - type: object mapping: $. - method: POST name: create description: Create a new Opportunity Custom Field call: close-subpackage-customfieldsopportunity.create with: Authorization: rest.Authorization body: rest.body outputParameters: - type: object mapping: $. - path: /v1/custom-field/opportunity/{id} name: custom-field-opportunity-id description: REST surface for custom_field-opportunity-id. operations: - method: GET name: get description: Fetch Opportunity Custom Field's details call: close-subpackage-customfieldsopportunity.get with: id: rest.id _fields: rest._fields Authorization: rest.Authorization outputParameters: - type: object mapping: $. - method: PUT name: update description: Update an Opportunity Custom Field call: close-subpackage-customfieldsopportunity.update with: id: rest.id Authorization: rest.Authorization body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: delete description: Delete an Opportunity Custom Field call: close-subpackage-customfieldsopportunity.delete with: id: rest.id Authorization: rest.Authorization outputParameters: - type: object mapping: $. - type: mcp namespace: close-subpackage-customfieldsopportunity-mcp port: 9090 transport: http description: MCP adapter for API Endpoints — subpackage_customFieldsOpportunity. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-opportunity-custom-fields description: List Opportunity Custom Fields hints: readOnly: true destructive: false idempotent: true call: close-subpackage-customfieldsopportunity.list with: _limit: tools._limit _skip: tools._skip _fields: tools._fields Authorization: tools.Authorization outputParameters: - type: object mapping: $. - name: create-new-opportunity-custom-field description: Create a new Opportunity Custom Field hints: readOnly: false destructive: false idempotent: false call: close-subpackage-customfieldsopportunity.create with: Authorization: tools.Authorization body: tools.body outputParameters: - type: object mapping: $. - name: fetch-opportunity-custom-field-s-details description: Fetch Opportunity Custom Field's details hints: readOnly: true destructive: false idempotent: true call: close-subpackage-customfieldsopportunity.get with: id: tools.id _fields: tools._fields Authorization: tools.Authorization outputParameters: - type: object mapping: $. - name: update-opportunity-custom-field description: Update an Opportunity Custom Field hints: readOnly: false destructive: false idempotent: true call: close-subpackage-customfieldsopportunity.update with: id: tools.id Authorization: tools.Authorization body: tools.body outputParameters: - type: object mapping: $. - name: delete-opportunity-custom-field description: Delete an Opportunity Custom Field hints: readOnly: false destructive: true idempotent: true call: close-subpackage-customfieldsopportunity.delete with: id: tools.id Authorization: tools.Authorization outputParameters: - type: object mapping: $.