Atlassian · Capability

Atlassian wiki/rest/api/content/ — Content States

Atlassian wiki/rest/api/content/ — Content States. 4 operations. Lead operation: Atlassian Get Content State. Self-contained Naftiko capability covering one Atlassian business surface.

Run with Naftiko AtlassianContent States

What You Can Do

GET
Atlassiangetcontentstate — Atlassian Get Content State
/v1/wiki/rest/api/content/{id}/state
PUT
Atlassiansetcontentstate — Atlassian Set The Content State Of A Content And Publishes A New Version Of The Content
/v1/wiki/rest/api/content/{id}/state
DELETE
Atlassianremovecontentstate — Atlassian Removes The Content State Of A Content And Publishes A New Version
/v1/wiki/rest/api/content/{id}/state
GET
Atlassiangetavailablecontentstates — Atlassian Gets Available Content States For Content
/v1/wiki/rest/api/content/{id}/state/available

MCP Tools

atlassian-get-content-state

Atlassian Get Content State

read-only idempotent
atlassian-set-content-state-content

Atlassian Set The Content State Of A Content And Publishes A New Version Of The Content

idempotent
atlassian-removes-content-state-content

Atlassian Removes The Content State Of A Content And Publishes A New Version

idempotent
atlassian-gets-available-content-states

Atlassian Gets Available Content States For Content

read-only idempotent

Capability Spec

wiki-rest-api-content--content-states.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Atlassian wiki/rest/api/content/ — Content States
  description: 'Atlassian wiki/rest/api/content/ — Content States. 4 operations. Lead operation: Atlassian Get Content State.
    Self-contained Naftiko capability covering one Atlassian business surface.'
  tags:
  - Atlassian
  - Content States
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ATLASSIAN_API_KEY: ATLASSIAN_API_KEY
capability:
  consumes:
  - type: http
    namespace: wiki-rest-api-content--content-states
    baseUri: ''
    description: Atlassian wiki/rest/api/content/ — Content States business capability. Self-contained, no shared references.
    resources:
    - name: wiki-rest-api-content-id-state
      path: /wiki/rest/api/content/{id}/state
      operations:
      - name: atlassiangetcontentstate
        method: GET
        description: Atlassian Get Content State
        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 of interest.
          required: true
        - name: status
          in: query
          type: string
          description: Set status to one of [current,draft,archived]. Default value is current.
      - name: atlassiansetcontentstate
        method: PUT
        description: Atlassian Set The Content State Of A Content And Publishes A 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: atlassianremovecontentstate
        method: DELETE
        description: Atlassian Removes The Content State Of A Content And Publishes A 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-state-available
      path: /wiki/rest/api/content/{id}/state/available
      operations:
      - name: atlassiangetavailablecontentstates
        method: GET
        description: Atlassian Gets Available Content States For Content
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: id of content to get available states for
          required: true
  exposes:
  - type: rest
    namespace: wiki-rest-api-content--content-states-rest
    port: 8080
    description: REST adapter for Atlassian wiki/rest/api/content/ — Content States. 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: GET
        name: atlassiangetcontentstate
        description: Atlassian Get Content State
        call: wiki-rest-api-content--content-states.atlassiangetcontentstate
        with:
          id: rest.id
          status: rest.status
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: atlassiansetcontentstate
        description: Atlassian Set The Content State Of A Content And Publishes A New Version Of The Content
        call: wiki-rest-api-content--content-states.atlassiansetcontentstate
        with:
          id: rest.id
          status: rest.status
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: atlassianremovecontentstate
        description: Atlassian Removes The Content State Of A Content And Publishes A New Version
        call: wiki-rest-api-content--content-states.atlassianremovecontentstate
        with:
          id: rest.id
          status: rest.status
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/wiki/rest/api/content/{id}/state/available
      name: wiki-rest-api-content-id-state-available
      description: REST surface for wiki-rest-api-content-id-state-available.
      operations:
      - method: GET
        name: atlassiangetavailablecontentstates
        description: Atlassian Gets Available Content States For Content
        call: wiki-rest-api-content--content-states.atlassiangetavailablecontentstates
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: wiki-rest-api-content--content-states-mcp
    port: 9090
    transport: http
    description: MCP adapter for Atlassian wiki/rest/api/content/ — Content States. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: atlassian-get-content-state
      description: Atlassian Get Content State
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: wiki-rest-api-content--content-states.atlassiangetcontentstate
      with:
        id: tools.id
        status: tools.status
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-set-content-state-content
      description: Atlassian Set The Content State Of A Content And Publishes A New Version Of The Content
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: wiki-rest-api-content--content-states.atlassiansetcontentstate
      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 A Content And Publishes A New Version
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: wiki-rest-api-content--content-states.atlassianremovecontentstate
      with:
        id: tools.id
        status: tools.status
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-gets-available-content-states
      description: Atlassian Gets Available Content States For Content
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: wiki-rest-api-content--content-states.atlassiangetavailablecontentstates
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.