naftiko: 1.0.0-alpha2 info: label: 'Akamai: EdgeWorkers API — Versions' description: 'Akamai: EdgeWorkers API — Versions. 5 operations. Lead operation: Akamai Create a New Version. Self-contained Naftiko capability covering one Akamai business surface.' tags: - Akamai - Versions created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: AKAMAI_API_KEY: AKAMAI_API_KEY capability: consumes: - type: http namespace: edgeworkers-versions baseUri: https://{hostname}/edgeworkers/v1 description: 'Akamai: EdgeWorkers API — Versions business capability. Self-contained, no shared references.' resources: - name: ids-edgeWorkerId-versions path: /ids/{edgeWorkerId}/versions operations: - name: postversions method: POST description: Akamai Create a New Version outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: accountSwitchKey in: query type: string description: For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-w - name: body in: body type: object description: Request body (JSON). required: true - name: getversions method: GET description: Akamai List Versions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: accountSwitchKey in: query type: string description: For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-w - name: ids-edgeWorkerId-versions-version path: /ids/{edgeWorkerId}/versions/{version} operations: - name: getversion method: GET description: Akamai Get Version Details outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: accountSwitchKey in: query type: string description: For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-w - name: deleteversion method: DELETE description: Akamai Delete Version outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: accountSwitchKey in: query type: string description: For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-w - name: ids-edgeWorkerId-versions-version-content path: /ids/{edgeWorkerId}/versions/{version}/content operations: - name: getversioncontent method: GET description: Akamai Download an EdgeWorkers Code Bundle outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: accountSwitchKey in: query type: string description: For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-w exposes: - type: rest namespace: edgeworkers-versions-rest port: 8080 description: 'REST adapter for Akamai: EdgeWorkers API — Versions. One Spectral-compliant resource per consumed operation, prefixed with /v1.' resources: - path: /v1/ids/{edgeworkerid}/versions name: ids-edgeworkerid-versions description: REST surface for ids-edgeWorkerId-versions. operations: - method: POST name: postversions description: Akamai Create a New Version call: edgeworkers-versions.postversions with: accountSwitchKey: rest.accountSwitchKey body: rest.body outputParameters: - type: object mapping: $. - method: GET name: getversions description: Akamai List Versions call: edgeworkers-versions.getversions with: accountSwitchKey: rest.accountSwitchKey outputParameters: - type: object mapping: $. - path: /v1/ids/{edgeworkerid}/versions/{version} name: ids-edgeworkerid-versions-version description: REST surface for ids-edgeWorkerId-versions-version. operations: - method: GET name: getversion description: Akamai Get Version Details call: edgeworkers-versions.getversion with: accountSwitchKey: rest.accountSwitchKey outputParameters: - type: object mapping: $. - method: DELETE name: deleteversion description: Akamai Delete Version call: edgeworkers-versions.deleteversion with: accountSwitchKey: rest.accountSwitchKey outputParameters: - type: object mapping: $. - path: /v1/ids/{edgeworkerid}/versions/{version}/content name: ids-edgeworkerid-versions-version-content description: REST surface for ids-edgeWorkerId-versions-version-content. operations: - method: GET name: getversioncontent description: Akamai Download an EdgeWorkers Code Bundle call: edgeworkers-versions.getversioncontent with: accountSwitchKey: rest.accountSwitchKey outputParameters: - type: object mapping: $. - type: mcp namespace: edgeworkers-versions-mcp port: 9090 transport: http description: 'MCP adapter for Akamai: EdgeWorkers API — Versions. One tool per consumed operation, routed inline through this capability''s consumes block.' tools: - name: akamai-create-new-version description: Akamai Create a New Version hints: readOnly: false destructive: false idempotent: false call: edgeworkers-versions.postversions with: accountSwitchKey: tools.accountSwitchKey body: tools.body outputParameters: - type: object mapping: $. - name: akamai-list-versions description: Akamai List Versions hints: readOnly: true destructive: false idempotent: true call: edgeworkers-versions.getversions with: accountSwitchKey: tools.accountSwitchKey outputParameters: - type: object mapping: $. - name: akamai-get-version-details description: Akamai Get Version Details hints: readOnly: true destructive: false idempotent: true call: edgeworkers-versions.getversion with: accountSwitchKey: tools.accountSwitchKey outputParameters: - type: object mapping: $. - name: akamai-delete-version description: Akamai Delete Version hints: readOnly: false destructive: true idempotent: true call: edgeworkers-versions.deleteversion with: accountSwitchKey: tools.accountSwitchKey outputParameters: - type: object mapping: $. - name: akamai-download-edgeworkers-code-bundle description: Akamai Download an EdgeWorkers Code Bundle hints: readOnly: true destructive: false idempotent: true call: edgeworkers-versions.getversioncontent with: accountSwitchKey: tools.accountSwitchKey outputParameters: - type: object mapping: $.