Atlassian · Capability

Atlassian Confluence Content API — Content

Atlassian Confluence Content API — Content. 37 operations. Lead operation: Atlassian Search Content by Cql. Self-contained Naftiko capability covering one Atlassian business surface.

Run with Naftiko AtlassianContent

What You Can Do

GET
Searchcontentbycql — Atlassian Search Content by Cql
/v1/wiki/rest/api/content/search
GET
Getcontentbyid — Atlassian Get Content by Id
/v1/wiki/rest/api/content/{id}
PUT
Updatecontent — Atlassian Update Content
/v1/wiki/rest/api/content/{id}
DELETE
Deletecontent — Atlassian Delete Content
/v1/wiki/rest/api/content/{id}
GET
Getcontentchildren — Atlassian Get Content Children
/v1/wiki/rest/api/content/{id}/child
GET
Getcontentcomments — Atlassian Get Content Comments
/v1/wiki/rest/api/content/{id}/child/comment
GET
Getcontentchildrenbytype — Atlassian Get Content Children by Type
/v1/wiki/rest/api/content/{id}/child/{type}
GET
Getcontentdescendants — Atlassian Get Content Descendants
/v1/wiki/rest/api/content/{id}/descendant
GET
Getcontenthistory — Atlassian Get Content History
/v1/wiki/rest/api/content/{id}/history
GET
Getlabelsforcontent — Atlassian Get Labels for Content
/v1/wiki/rest/api/content/{id}/label
POST
Addlabelstocontent — Atlassian Add Labels to Content
/v1/wiki/rest/api/content/{id}/label
DELETE
Removelabelfromcontentusingqueryparameter — Atlassian Remove Label From Content Using Query Parameter
/v1/wiki/rest/api/content/{id}/label
DELETE
Removelabelfromcontent — Atlassian Remove Label From Content
/v1/wiki/rest/api/content/{id}/label/{label}
POST
Checkcontentpermissions — Atlassian Check Content Permissions
/v1/wiki/rest/api/content/{id}/permission/check
GET
Getcontentproperties — Atlassian Get Content Properties
/v1/wiki/rest/api/content/{id}/property
POST
Createcontentproperty — Atlassian Create Content Property
/v1/wiki/rest/api/content/{id}/property
GET
Getcontentproperty — Atlassian Get Content Property
/v1/wiki/rest/api/content/{id}/property/{key}
PUT
Updatecontentproperty — Atlassian Update Content Property
/v1/wiki/rest/api/content/{id}/property/{key}
POST
Createcontentpropertyforkey — Atlassian Create Content Property for Key
/v1/wiki/rest/api/content/{id}/property/{key}
DELETE
Deletecontentproperty — Atlassian Delete Content Property
/v1/wiki/rest/api/content/{id}/property/{key}
GET
Getcontentrestrictionstatusforgroup — Atlassian Get Content Restriction Status for Group
/v1/wiki/rest/api/content/{id}/restriction/byoperation/{operationkey}/bygroupid/{groupid}
PUT
Addgrouptocontentrestriction — Atlassian Add Group to Content Restriction
/v1/wiki/rest/api/content/{id}/restriction/byoperation/{operationkey}/bygroupid/{groupid}
DELETE
Removegroupfromcontentrestriction — Atlassian Remove Group From Content Restriction
/v1/wiki/rest/api/content/{id}/restriction/byoperation/{operationkey}/bygroupid/{groupid}
GET
Getcontentrestrictionstatusforgroup — Atlassian Get Content Restriction Status for Group
/v1/wiki/rest/api/content/{id}/restriction/byoperation/{operationkey}/group/{groupname}
PUT
Addgrouptocontentrestriction — Atlassian Add Group to Content Restriction
/v1/wiki/rest/api/content/{id}/restriction/byoperation/{operationkey}/group/{groupname}
DELETE
Removegroupfromcontentrestriction — Atlassian Remove Group From Content Restriction
/v1/wiki/rest/api/content/{id}/restriction/byoperation/{operationkey}/group/{groupname}
GET
Getcontentrestrictionstatusforuser — Atlassian Get Content Restriction Status for User
/v1/wiki/rest/api/content/{id}/restriction/byoperation/{operationkey}/user
PUT
Addusertocontentrestriction — Atlassian Add User to Content Restriction
/v1/wiki/rest/api/content/{id}/restriction/byoperation/{operationkey}/user
DELETE
Removeuserfromcontentrestriction — Atlassian Remove User From Content Restriction
/v1/wiki/rest/api/content/{id}/restriction/byoperation/{operationkey}/user
GET
Getcontentstate — Atlassian Get Content State
/v1/wiki/rest/api/content/{id}/state
PUT
Setthecontentstateofcontentandpublishesnewversionofthecontent — Atlassian Set the Content State of Content and Publishes New Version of the Content
/v1/wiki/rest/api/content/{id}/state
DELETE
Removesthecontentstateofcontentandpublishesnewversion — Atlassian Removes the Content State of Content and Publishes New Version
/v1/wiki/rest/api/content/{id}/state
GET
Getsavailablecontentstatesforcontent — Atlassian Gets Available Content States for Content
/v1/wiki/rest/api/content/{id}/state/available
GET
Getcontentversions — Atlassian Get Content Versions
/v1/wiki/rest/api/content/{id}/version
POST
Restorecontentversion — Atlassian Restore Content Version
/v1/wiki/rest/api/content/{id}/version
GET
Getcontentversion — Atlassian Get Content Version
/v1/wiki/rest/api/content/{id}/version/{versionnumber}
DELETE
Deletecontentversion — Atlassian Delete Content Version
/v1/wiki/rest/api/content/{id}/version/{versionnumber}

MCP Tools

atlassian-search-content-cql

Atlassian Search Content by Cql

read-only idempotent
atlassian-get-content-id

Atlassian Get Content by Id

read-only idempotent
atlassian-update-content

Atlassian Update Content

idempotent
atlassian-delete-content

Atlassian Delete Content

idempotent
atlassian-get-content-children

Atlassian Get Content Children

read-only idempotent
atlassian-get-content-comments

Atlassian Get Content Comments

read-only idempotent
atlassian-get-content-children-type

Atlassian Get Content Children by Type

read-only idempotent
atlassian-get-content-descendants

Atlassian Get Content Descendants

read-only idempotent
atlassian-get-content-history

Atlassian Get Content History

read-only idempotent
atlassian-get-labels-content

Atlassian Get Labels for Content

read-only idempotent
atlassian-add-labels-content

Atlassian Add Labels to Content

atlassian-remove-label-content-using

Atlassian Remove Label From Content Using Query Parameter

idempotent
atlassian-remove-label-content

Atlassian Remove Label From Content

idempotent
atlassian-check-content-permissions

Atlassian Check Content Permissions

read-only
atlassian-get-content-properties

Atlassian Get Content Properties

read-only idempotent
atlassian-create-content-property

Atlassian Create Content Property

atlassian-get-content-property

Atlassian Get Content Property

read-only idempotent
atlassian-update-content-property

Atlassian Update Content Property

idempotent
atlassian-create-content-property-key

Atlassian Create Content Property for Key

atlassian-delete-content-property

Atlassian Delete Content Property

idempotent
atlassian-get-content-restriction-status

Atlassian Get Content Restriction Status for Group

read-only idempotent
atlassian-add-group-content-restriction

Atlassian Add Group to Content Restriction

idempotent
atlassian-remove-group-content-restriction

Atlassian Remove Group From Content Restriction

idempotent
atlassian-get-content-restriction-status-2

Atlassian Get Content Restriction Status for Group

read-only idempotent
atlassian-add-group-content-restriction-2

Atlassian Add Group to Content Restriction

idempotent
atlassian-remove-group-content-restriction-2

Atlassian Remove Group From Content Restriction

idempotent
atlassian-get-content-restriction-status-3

Atlassian Get Content Restriction Status for User

read-only idempotent
atlassian-add-user-content-restriction

Atlassian Add User to Content Restriction

idempotent
atlassian-remove-user-content-restriction

Atlassian Remove User From Content Restriction

idempotent
atlassian-get-content-state

Atlassian Get Content State

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

Atlassian Set the Content State of Content and Publishes New Version of the Content

idempotent
atlassian-removes-content-state-content

Atlassian Removes the Content State of Content and Publishes New Version

idempotent
atlassian-gets-available-content-states

Atlassian Gets Available Content States for Content

read-only idempotent
atlassian-get-content-versions

Atlassian Get Content Versions

read-only idempotent
atlassian-restore-content-version

Atlassian Restore Content Version

atlassian-get-content-version

Atlassian Get Content Version

read-only idempotent
atlassian-delete-content-version

Atlassian Delete Content Version

idempotent

Capability Spec

confluence-content-content.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Atlassian Confluence Content API — Content
  description: 'Atlassian Confluence Content API — Content. 37 operations. Lead operation: Atlassian Search Content by Cql.
    Self-contained Naftiko capability covering one Atlassian business surface.'
  tags:
  - Atlassian
  - Content
  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-content
    baseUri: ''
    description: Atlassian Confluence Content API — Content business capability. Self-contained, no shared references.
    resources:
    - name: wiki-rest-api-content-search
      path: /wiki/rest/api/content/search
      operations:
      - name: searchcontentbycql
        method: GET
        description: Atlassian Search Content by Cql
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: cql
          in: query
          type: string
          description: The CQL string that is used to find the requested content.
          required: true
        - name: cqlcontext
          in: query
          type: string
          description: The space, content, and content status to execute the search against.
        - name: cursor
          in: query
          type: string
          description: Pointer to a set of search results, returned as part of the `next` or `prev` URL from the previous
            search call.
        - name: limit
          in: query
          type: integer
          description: The maximum number of content objects to return per page.
    - name: wiki-rest-api-content-id
      path: /wiki/rest/api/content/{id}
      operations:
      - name: getcontentbyid
        method: GET
        description: Atlassian Get Content by Id
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID of the content to be returned. If you don't know the content ID,
          required: true
        - name: status
          in: query
          type: array
          description: Filter the results to a set of content based on their status.
        - name: version
          in: query
          type: integer
          description: The version number of the content to be returned.
        - name: embeddedContentRender
          in: query
          type: string
          description: The version of embedded content (e.g. attachments) to render.
        - name: trigger
          in: query
          type: string
          description: If set to `viewed`, the request will trigger a 'viewed' event for the content.
      - name: updatecontent
        method: PUT
        description: Atlassian Update Content
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID of the content to be updated.
          required: true
        - name: status
          in: query
          type: string
          description: The updated status of the content. Use this parameter to change the
        - name: conflictPolicy
          in: query
          type: string
          description: The action that should be taken when conflicts are discovered.
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletecontent
        method: DELETE
        description: Atlassian Delete Content
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID of the content to be deleted.
          required: true
        - name: status
          in: query
          type: string
          description: Set this to `trashed`, if the content's status is `trashed` and you want to purge it.
    - name: wiki-rest-api-content-id-child
      path: /wiki/rest/api/content/{id}/child
      operations:
      - name: getcontentchildren
        method: GET
        description: Atlassian Get Content Children
        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 children.
          required: true
        - name: expand
          in: query
          type: array
          description: 'A multi-value parameter indicating which properties of the children to expand, where:'
        - name: parentVersion
          in: query
          type: integer
          description: The version of the parent content to retrieve children for.
    - name: wiki-rest-api-content-id-child-comment
      path: /wiki/rest/api/content/{id}/child/comment
      operations:
      - name: getcontentcomments
        method: GET
        description: Atlassian Get Content Comments
        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 comments.
          required: true
        - name: parentVersion
          in: query
          type: integer
          description: The version of the parent content to retrieve children for.
        - name: start
          in: query
          type: integer
          description: The starting index of the returned comments.
        - name: limit
          in: query
          type: integer
          description: The maximum number of comments to return per page. Note,
        - name: location
          in: query
          type: array
          description: The location of the comments in the page. Multiple locations can be specified.
        - name: depth
          in: query
          type: string
          description: Currently, this parameter is not used.
    - name: wiki-rest-api-content-id-child-type
      path: /wiki/rest/api/content/{id}/child/{type}
      operations:
      - name: getcontentchildrenbytype
        method: GET
        description: Atlassian Get Content Children by Type
        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 children.
          required: true
        - name: type
          in: path
          type: string
          description: The type of children to return.
          required: true
        - name: parentVersion
          in: query
          type: integer
          description: The version of the parent content to retrieve children for.
        - name: start
          in: query
          type: integer
          description: The starting index of the returned content.
        - name: limit
          in: query
          type: integer
          description: The maximum number of content to return per page. Note,
    - name: wiki-rest-api-content-id-descendant
      path: /wiki/rest/api/content/{id}/descendant
      operations:
      - name: getcontentdescendants
        method: GET
        description: Atlassian Get Content Descendants
        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 descendants.
          required: true
        - name: expand
          in: query
          type: array
          description: A multi-value parameter indicating which properties of the children to
    - name: wiki-rest-api-content-id-history
      path: /wiki/rest/api/content/{id}/history
      operations:
      - name: getcontenthistory
        method: GET
        description: Atlassian Get Content History
        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 history.
          required: true
        - name: expand
          in: query
          type: array
          description: A multi-value parameter indicating which properties of the content history to expand.
    - name: wiki-rest-api-content-id-label
      path: /wiki/rest/api/content/{id}/label
      operations:
      - name: getlabelsforcontent
        method: GET
        description: Atlassian Get Labels for Content
        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 labels.
          required: true
        - name: prefix
          in: query
          type: string
          description: Filters the results to labels with the specified prefix. If this parameter
        - name: start
          in: query
          type: integer
          description: The starting index of the returned labels.
        - name: limit
          in: query
          type: integer
          description: The maximum number of labels to return per page. Note,
      - name: addlabelstocontent
        method: POST
        description: Atlassian Add Labels to Content
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID of the content that will have labels added to it.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: removelabelfromcontentusingqueryparameter
        method: DELETE
        description: Atlassian Remove Label From Content Using Query Parameter
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID of the content that the label will be removed from.
          required: true
        - name: name
          in: query
          type: string
          description: The name of the label to be removed.
          required: true
    - name: wiki-rest-api-content-id-label-label
      path: /wiki/rest/api/content/{id}/label/{label}
      operations:
      - name: removelabelfromcontent
        method: DELETE
        description: Atlassian Remove Label From Content
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID of the content that the label will be removed from.
          required: true
        - name: label
          in: path
          type: string
          description: The name of the label to be removed.
          required: true
    - name: wiki-rest-api-content-id-permission-check
      path: /wiki/rest/api/content/{id}/permission/check
      operations:
      - name: checkcontentpermissions
        method: POST
        description: Atlassian Check Content Permissions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID of the content to check permissions against.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: wiki-rest-api-content-id-property
      path: /wiki/rest/api/content/{id}/property
      operations:
      - name: getcontentproperties
        method: GET
        description: Atlassian Get Content Properties
        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 properties.
          required: true
        - name: key
          in: query
          type: array
          description: The key of the content property.
        - name: expand
          in: query
          type: array
          description: A multi-value parameter indicating which properties of the content to
        - name: start
          in: query
          type: integer
          description: The starting index of the returned properties.
        - name: limit
          in: query
          type: integer
          description: The maximum number of properties to return per page.
      - name: createcontentproperty
        method: POST
        description: Atlassian Create Content Property
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID of the content to add the property to.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: wiki-rest-api-content-id-property-key
      path: /wiki/rest/api/content/{id}/property/{key}
      operations:
      - name: getcontentproperty
        method: GET
        description: Atlassian Get Content Property
        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 the property.
          required: true
        - name: key
          in: path
          type: string
          description: The key of the content property.
          required: true
        - name: expand
          in: query
          type: array
          description: A multi-value parameter indicating which properties of the content to
        - name: status
          in: query
          type: array
          description: Filter the results to a set of content based on their status. If set to `any`,
      - name: updatecontentproperty
        method: PUT
        description: Atlassian Update Content Property
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID of the content that the property belongs to.
          required: true
        - name: key
          in: path
          type: string
          description: The key of the property.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: createcontentpropertyforkey
        method: POST
        description: Atlassian Create Content Property for Key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID of the content to add the property to.
          required: true
        - name: key
          in: path
          type: string
          description: The key of the content property. Required.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletecontentproperty
        method: DELETE
        description: Atlassian Delete Content Property
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID of the content that the property belongs to.
          required: true
        - name: key
          in: path
          type: string
          description: The key of the property.
          required: true
    - name: wiki-rest-api-content-id-restriction-byOperation-operationKey-byGroupId-groupId
      path: /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/byGroupId/{groupId}
      operations:
      - name: getcontentrestrictionstatusforgroup
        method: GET
        description: Atlassian Get Content Restriction Status for Group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID of the content that the restriction applies to.
          required: true
        - name: operationKey
          in: path
          type: string
          description: The operation that the restriction applies to.
          required: true
        - name: groupId
          in: path
          type: string
          description: The id of the group to be queried for whether the content restriction
          required: true
      - name: addgrouptocontentrestriction
        method: PUT
        description: Atlassian Add Group to Content Restriction
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID of the content that the restriction applies to.
          required: true
        - name: operationKey
          in: path
          type: string
          description: The operation that the restriction applies to.
          required: true
        - name: groupId
          in: path
          type: string
          description: The groupId of the group to add to the content restriction.
          required: true
      - name: removegroupfromcontentrestriction
        method: DELETE
        description: Atlassian Remove Group From Content Restriction
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID of the content that the restriction applies to.
          required: true
        - name: operationKey
          in: path
          type: string
          description: The operation that the restriction applies to.
          required: true
        - name: groupId
          in: path
          type: string
          description: The id of the group to remove from the content restriction.
          required: true
    - name: wiki-rest-api-content-id-restriction-byOperation-operationKey-group-groupName
      path: /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/group/{groupName}
      operations:
      - name: getcontentrestrictionstatusforgroup
        method: GET
        description: Atlassian Get Content Restriction Status for Group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID of the content that the restriction applies to.
          required: true
        - name: operationKey
          in: path
          type: string
          description: The operation that the restriction applies to.
          required: true
        - name: groupName
          in: path
          type: string
          description: The name of the group to be queried for whether the content restriction
          required: true
      - name: addgrouptocontentrestriction
        method: PUT
        description: Atlassian Add Group to Content Restriction
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID of the content that the restriction applies to.
          required: true
        - name: operationKey
          in: path
          type: string
          description: The operation that the restriction applies to.
          required: true
        - name: groupName
          in: path
          type: string
          description: The name of the group to add to the content restriction.
          required: true
      - name: removegroupfromcontentrestriction
        method: DELETE
        description: Atlassian Remove Group From Content Restriction
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID of the content that the restriction applies to.
          required: true
        - name: operationKey
          in: path
          type: string
          description: The operation that the restriction applies to.
          required: true
        - name: groupName
          in: path
          type: string
          description: The name of the group to remove from the content restriction.
          required: true
    - name: wiki-rest-api-content-id-restriction-byOperation-operationKey-user
      path: /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/user
      operations:
      - name: getcontentrestrictionstatusforuser
        method: GET
        description: Atlassian Get Content Restriction Status for User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID of the content that the restriction applies to.
          required: true
        - name: operationKey
          in: path
          type: string
          description: The operation that is restricted.
          required: true
      - name: addusertocontentrestriction
        method: PUT
        description: Atlassian Add User to Content Restriction
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID of the content that the restriction applies to.
          required: true
        - name: operationKey
          in: path
          type: string
          description: The operation that the restriction applies to.
          required: true
      - name: removeuserfromcontentrestriction
        method: DELETE
        description: Atlassian Remove User From Content Restriction
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID of the content that the restriction applies to.
          required: true
        - name: operationKey
          in: path
          type: string
          description: The operation that the restriction applies to.
          required: true
    - name: wiki-rest-api-content-id-state
      path: /wiki/rest/api/content/{id}/state
      operations:
      - name: getcontentstate
        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: 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-state-available
      path: /wiki/rest/api/content/{id}/state/available
      operations:
      - name: getsavailablecontentstatesforcontent
        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
    - 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-content-rest
    port: 8080
    description: REST adapter for Atlassian Confluence Content API — Content. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/wiki/rest/api/content/search
      name: wiki-rest-api-content-search
      description: REST surface for wiki-rest-api-content-search.
      operations:
      - method: GET
        name: searchcontentbycql
        description: Atlassian Search Content by Cql
        call: confluence-content-content.searchcontentbycql
        with:
          cql: rest.cql
          cqlcontext: rest.cqlcontext
          cursor: rest.cursor
          limit: rest.limit
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/wiki/rest/api/content/{id}
      name: wiki-rest-api-content-id
      description: REST surface for wiki-rest-api-content-id.
      operations:
      - method: GET
        name: getcontentbyid
        description: Atlassian Get Content by Id
        call: confluence-content-content.getcontentbyid
        with:
          id: rest.id
          status: rest.status
          version: rest.version
          embeddedContentRender: rest.embeddedContentRender
          trigger: rest.trigger
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatecontent
        description: Atlassian Update Content
        call: confluence-content-content.updatecontent
        with:
          id: rest.id
          status: rest.status
          conflictPolicy: rest.conflictPolicy
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletecontent
        description: Atlassian Delete Content
        call: confluence-content-content.deletecontent
        with:
          id: rest.id
          status: rest.status
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/wiki/rest/api/content/{id}/child
      name: wiki-rest-api-content-id-child
      description: REST surface for wiki-rest-api-content-id-child.
      operations:
      - method: GET
        name: getcontentchildren
        description: Atlassian Get Content Children
        call: confluence-content-content.getcontentchildren
        with:
          id: rest.id
          expand: rest.expand
          parentVersion: rest.par

# --- truncated at 32 KB (62 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/atlassian/refs/heads/main/capabilities/confluence-content-content.yaml