Atlassian · Capability

Atlassian Confluence Audit API — Period

Atlassian Confluence Audit API — Period. 3 operations. Lead operation: Atlassian Get Retention Period. Self-contained Naftiko capability covering one Atlassian business surface.

Run with Naftiko AtlassianPeriod

What You Can Do

GET
Getretentionperiod — Atlassian Get Retention Period
/v1/wiki/rest/api/audit/retention
PUT
Setretentionperiod — Atlassian Set Retention Period
/v1/wiki/rest/api/audit/retention
GET
Getauditrecordsfortimeperiod — Atlassian Get Audit Records for Time Period
/v1/wiki/rest/api/audit/since

MCP Tools

atlassian-get-retention-period

Atlassian Get Retention Period

read-only idempotent
atlassian-set-retention-period

Atlassian Set Retention Period

idempotent
atlassian-get-audit-records-time

Atlassian Get Audit Records for Time Period

read-only idempotent

Capability Spec

confluence-audit-period.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Atlassian Confluence Audit API — Period
  description: 'Atlassian Confluence Audit API — Period. 3 operations. Lead operation: Atlassian Get Retention Period. Self-contained
    Naftiko capability covering one Atlassian business surface.'
  tags:
  - Atlassian
  - Period
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ATLASSIAN_API_KEY: ATLASSIAN_API_KEY
capability:
  consumes:
  - type: http
    namespace: confluence-audit-period
    baseUri: ''
    description: Atlassian Confluence Audit API — Period business capability. Self-contained, no shared references.
    resources:
    - name: wiki-rest-api-audit-retention
      path: /wiki/rest/api/audit/retention
      operations:
      - name: getretentionperiod
        method: GET
        description: Atlassian Get Retention Period
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: setretentionperiod
        method: PUT
        description: Atlassian Set Retention Period
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: wiki-rest-api-audit-since
      path: /wiki/rest/api/audit/since
      operations:
      - name: getauditrecordsfortimeperiod
        method: GET
        description: Atlassian Get Audit Records for Time Period
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: number
          in: query
          type: integer
          description: The number of units for the time period.
        - name: units
          in: query
          type: string
          description: The unit of time that the time period is measured in.
        - name: searchString
          in: query
          type: string
          description: Filters the results to records that have string property values
        - name: start
          in: query
          type: integer
          description: The starting index of the returned records.
        - name: limit
          in: query
          type: integer
          description: The maximum number of records to return per page.
    authentication:
      type: bearer
      token: '{{env.ATLASSIAN_API_KEY}}'
  exposes:
  - type: rest
    namespace: confluence-audit-period-rest
    port: 8080
    description: REST adapter for Atlassian Confluence Audit API — Period. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/wiki/rest/api/audit/retention
      name: wiki-rest-api-audit-retention
      description: REST surface for wiki-rest-api-audit-retention.
      operations:
      - method: GET
        name: getretentionperiod
        description: Atlassian Get Retention Period
        call: confluence-audit-period.getretentionperiod
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setretentionperiod
        description: Atlassian Set Retention Period
        call: confluence-audit-period.setretentionperiod
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/wiki/rest/api/audit/since
      name: wiki-rest-api-audit-since
      description: REST surface for wiki-rest-api-audit-since.
      operations:
      - method: GET
        name: getauditrecordsfortimeperiod
        description: Atlassian Get Audit Records for Time Period
        call: confluence-audit-period.getauditrecordsfortimeperiod
        with:
          number: rest.number
          units: rest.units
          searchString: rest.searchString
          start: rest.start
          limit: rest.limit
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: confluence-audit-period-mcp
    port: 9090
    transport: http
    description: MCP adapter for Atlassian Confluence Audit API — Period. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: atlassian-get-retention-period
      description: Atlassian Get Retention Period
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: confluence-audit-period.getretentionperiod
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-set-retention-period
      description: Atlassian Set Retention Period
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: confluence-audit-period.setretentionperiod
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-get-audit-records-time
      description: Atlassian Get Audit Records for Time Period
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: confluence-audit-period.getauditrecordsfortimeperiod
      with:
        number: tools.number
        units: tools.units
        searchString: tools.searchString
        start: tools.start
        limit: tools.limit
      outputParameters:
      - type: object
        mapping: $.