naftiko: 1.0.0-alpha2 info: label: Atlassian Confluence Content API — Versions description: 'Atlassian Confluence Content API — Versions. 6 operations. Lead operation: Atlassian Set the Content State of Content and Publishes New Version of the Content. Self-contained Naftiko capability covering one Atlassian business surface.' tags: - Atlassian - Versions created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: ATLASSIAN_API_KEY: ATLASSIAN_API_KEY capability: consumes: - type: http namespace: confluence-content-versions baseUri: '' description: Atlassian Confluence Content API — Versions business capability. Self-contained, no shared references. resources: - name: wiki-rest-api-content-id-state path: /wiki/rest/api/content/{id}/state operations: - name: setthecontentstateofcontentandpublishesnewversionofthecontent method: PUT description: Atlassian Set the Content State of Content and Publishes New Version of the Content outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: The Id of the content whose content state is to be set. required: true - name: status in: query type: string description: Status of content onto which state will be placed. If draft, then draft state will change. - name: body in: body type: object description: Request body (JSON). required: true - name: removesthecontentstateofcontentandpublishesnewversion method: DELETE description: Atlassian Removes the Content State of Content and Publishes New Version outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: The Id of the content whose content state is to be set. required: true - name: status in: query type: string description: status of content state from which to delete state. Can be draft or archived - name: wiki-rest-api-content-id-version path: /wiki/rest/api/content/{id}/version operations: - name: getcontentversions method: GET description: Atlassian Get Content Versions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: The ID of the content to be queried for its versions. required: true - name: start in: query type: integer description: The starting index of the returned versions. - name: limit in: query type: integer description: The maximum number of versions to return per page. - name: expand in: query type: array description: A multi-value parameter indicating which properties of the content to expand. By default, the `content` - name: restorecontentversion method: POST description: Atlassian Restore Content Version outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: The ID of the content for which the history will be restored. required: true - name: expand in: query type: array description: A multi-value parameter indicating which properties of the content to expand. By default, the `content` - name: body in: body type: object description: Request body (JSON). required: true - name: wiki-rest-api-content-id-version-versionNumber path: /wiki/rest/api/content/{id}/version/{versionNumber} operations: - name: getcontentversion method: GET description: Atlassian Get Content Version outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: The ID of the content to be queried for its version. required: true - name: versionNumber in: path type: integer description: The number of the version to be retrieved. required: true - name: expand in: query type: array description: A multi-value parameter indicating which properties of the content to expand. By default, the `content` - name: deletecontentversion method: DELETE description: Atlassian Delete Content Version outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: The ID of the content that the version will be deleted from. required: true - name: versionNumber in: path type: integer description: The number of the version to be deleted. The version number starts required: true authentication: type: bearer token: '{{env.ATLASSIAN_API_KEY}}' exposes: - type: rest namespace: confluence-content-versions-rest port: 8080 description: REST adapter for Atlassian Confluence Content API — Versions. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/wiki/rest/api/content/{id}/state name: wiki-rest-api-content-id-state description: REST surface for wiki-rest-api-content-id-state. operations: - method: PUT name: setthecontentstateofcontentandpublishesnewversionofthecontent description: Atlassian Set the Content State of Content and Publishes New Version of the Content call: confluence-content-versions.setthecontentstateofcontentandpublishesnewversionofthecontent with: id: rest.id status: rest.status body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: removesthecontentstateofcontentandpublishesnewversion description: Atlassian Removes the Content State of Content and Publishes New Version call: confluence-content-versions.removesthecontentstateofcontentandpublishesnewversion with: id: rest.id status: rest.status outputParameters: - type: object mapping: $. - path: /v1/wiki/rest/api/content/{id}/version name: wiki-rest-api-content-id-version description: REST surface for wiki-rest-api-content-id-version. operations: - method: GET name: getcontentversions description: Atlassian Get Content Versions call: confluence-content-versions.getcontentversions with: id: rest.id start: rest.start limit: rest.limit expand: rest.expand outputParameters: - type: object mapping: $. - method: POST name: restorecontentversion description: Atlassian Restore Content Version call: confluence-content-versions.restorecontentversion with: id: rest.id expand: rest.expand body: rest.body outputParameters: - type: object mapping: $. - path: /v1/wiki/rest/api/content/{id}/version/{versionnumber} name: wiki-rest-api-content-id-version-versionnumber description: REST surface for wiki-rest-api-content-id-version-versionNumber. operations: - method: GET name: getcontentversion description: Atlassian Get Content Version call: confluence-content-versions.getcontentversion with: id: rest.id versionNumber: rest.versionNumber expand: rest.expand outputParameters: - type: object mapping: $. - method: DELETE name: deletecontentversion description: Atlassian Delete Content Version call: confluence-content-versions.deletecontentversion with: id: rest.id versionNumber: rest.versionNumber outputParameters: - type: object mapping: $. - type: mcp namespace: confluence-content-versions-mcp port: 9090 transport: http description: MCP adapter for Atlassian Confluence Content API — Versions. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: atlassian-set-content-state-content description: Atlassian Set the Content State of Content and Publishes New Version of the Content hints: readOnly: false destructive: false idempotent: true call: confluence-content-versions.setthecontentstateofcontentandpublishesnewversionofthecontent with: id: tools.id status: tools.status body: tools.body outputParameters: - type: object mapping: $. - name: atlassian-removes-content-state-content description: Atlassian Removes the Content State of Content and Publishes New Version hints: readOnly: false destructive: true idempotent: true call: confluence-content-versions.removesthecontentstateofcontentandpublishesnewversion with: id: tools.id status: tools.status outputParameters: - type: object mapping: $. - name: atlassian-get-content-versions description: Atlassian Get Content Versions hints: readOnly: true destructive: false idempotent: true call: confluence-content-versions.getcontentversions with: id: tools.id start: tools.start limit: tools.limit expand: tools.expand outputParameters: - type: object mapping: $. - name: atlassian-restore-content-version description: Atlassian Restore Content Version hints: readOnly: false destructive: false idempotent: false call: confluence-content-versions.restorecontentversion with: id: tools.id expand: tools.expand body: tools.body outputParameters: - type: object mapping: $. - name: atlassian-get-content-version description: Atlassian Get Content Version hints: readOnly: true destructive: false idempotent: true call: confluence-content-versions.getcontentversion with: id: tools.id versionNumber: tools.versionNumber expand: tools.expand outputParameters: - type: object mapping: $. - name: atlassian-delete-content-version description: Atlassian Delete Content Version hints: readOnly: false destructive: true idempotent: true call: confluence-content-versions.deletecontentversion with: id: tools.id versionNumber: tools.versionNumber outputParameters: - type: object mapping: $.