naftiko: 1.0.0-alpha2 info: label: HubSpot CRM Feature Flags API — Batch Portal Operations description: 'HubSpot CRM Feature Flags API — Batch Portal Operations. 2 operations. Lead operation: Hubspot Batch Delete Portal Flag States. Self-contained Naftiko capability covering one Hubspot business surface.' tags: - Hubspot - Batch Portal Operations created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: HUBSPOT_API_KEY: HUBSPOT_API_KEY capability: consumes: - type: http namespace: crm-feature-flags-batch-portal-operations baseUri: https://api.hubapi.com description: HubSpot CRM Feature Flags API — Batch Portal Operations business capability. Self-contained, no shared references. resources: - name: feature-flags-v3-appId-flags-flagName-portals-batch-delete path: /feature-flags/v3/{appId}/flags/{flagName}/portals/batch/delete operations: - name: batchdeleteportalflagstates method: POST description: Hubspot Batch Delete Portal Flag States outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: feature-flags-v3-appId-flags-flagName-portals-batch-upsert path: /feature-flags/v3/{appId}/flags/{flagName}/portals/batch/upsert operations: - name: batchupsertportalflagstates method: POST description: Hubspot Batch Create or Update Portal Flag States outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: apikey key: hapikey value: '{{env.HUBSPOT_API_KEY}}' placement: query exposes: - type: rest namespace: crm-feature-flags-batch-portal-operations-rest port: 8080 description: REST adapter for HubSpot CRM Feature Flags API — Batch Portal Operations. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/feature-flags/v3/{appid}/flags/{flagname}/portals/batch/delete name: feature-flags-v3-appid-flags-flagname-portals-batch-delete description: REST surface for feature-flags-v3-appId-flags-flagName-portals-batch-delete. operations: - method: POST name: batchdeleteportalflagstates description: Hubspot Batch Delete Portal Flag States call: crm-feature-flags-batch-portal-operations.batchdeleteportalflagstates with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/feature-flags/v3/{appid}/flags/{flagname}/portals/batch/upsert name: feature-flags-v3-appid-flags-flagname-portals-batch-upsert description: REST surface for feature-flags-v3-appId-flags-flagName-portals-batch-upsert. operations: - method: POST name: batchupsertportalflagstates description: Hubspot Batch Create or Update Portal Flag States call: crm-feature-flags-batch-portal-operations.batchupsertportalflagstates with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: crm-feature-flags-batch-portal-operations-mcp port: 9090 transport: http description: MCP adapter for HubSpot CRM Feature Flags API — Batch Portal Operations. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: hubspot-batch-delete-portal-flag description: Hubspot Batch Delete Portal Flag States hints: readOnly: false destructive: false idempotent: false call: crm-feature-flags-batch-portal-operations.batchdeleteportalflagstates with: body: tools.body outputParameters: - type: object mapping: $. - name: hubspot-batch-create-update-portal description: Hubspot Batch Create or Update Portal Flag States hints: readOnly: false destructive: false idempotent: false call: crm-feature-flags-batch-portal-operations.batchupsertportalflagstates with: body: tools.body outputParameters: - type: object mapping: $.