Atlassian · Capability

Atlassian Confluence Content API — Add

Atlassian Confluence Content API — Add. 5 operations. Lead operation: Atlassian Add Labels to Content. Self-contained Naftiko capability covering one Atlassian business surface.

Run with Naftiko AtlassianAdd

What You Can Do

POST
Addlabelstocontent — Atlassian Add Labels to Content
/v1/wiki/rest/api/content/{id}/label
POST
Addrestrictions — Atlassian Add Restrictions
/v1/wiki/rest/api/content/{id}/restriction
PUT
Addgrouptocontentrestriction — Atlassian Add Group to Content Restriction
/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}/group/{groupname}
PUT
Addusertocontentrestriction — Atlassian Add User to Content Restriction
/v1/wiki/rest/api/content/{id}/restriction/byoperation/{operationkey}/user

MCP Tools

atlassian-add-labels-content

Atlassian Add Labels to Content

atlassian-add-restrictions

Atlassian Add Restrictions

atlassian-add-group-content-restriction

Atlassian Add Group to Content Restriction

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

Atlassian Add Group to Content Restriction

idempotent
atlassian-add-user-content-restriction

Atlassian Add User to Content Restriction

idempotent

Capability Spec

confluence-content-add.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Atlassian Confluence Content API — Add
  description: 'Atlassian Confluence Content API — Add. 5 operations. Lead operation: Atlassian Add Labels to Content. Self-contained
    Naftiko capability covering one Atlassian business surface.'
  tags:
  - Atlassian
  - Add
  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-add
    baseUri: ''
    description: Atlassian Confluence Content API — Add business capability. Self-contained, no shared references.
    resources:
    - name: wiki-rest-api-content-id-label
      path: /wiki/rest/api/content/{id}/label
      operations:
      - 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: wiki-rest-api-content-id-restriction
      path: /wiki/rest/api/content/{id}/restriction
      operations:
      - name: addrestrictions
        method: POST
        description: Atlassian Add Restrictions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID of the content to add restrictions to.
          required: true
        - name: expand
          in: query
          type: array
          description: A multi-value parameter indicating which properties of the content
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          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: 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: wiki-rest-api-content-id-restriction-byOperation-operationKey-group-groupName
      path: /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/group/{groupName}
      operations:
      - 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: wiki-rest-api-content-id-restriction-byOperation-operationKey-user
      path: /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/user
      operations:
      - 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
    authentication:
      type: bearer
      token: '{{env.ATLASSIAN_API_KEY}}'
  exposes:
  - type: rest
    namespace: confluence-content-add-rest
    port: 8080
    description: REST adapter for Atlassian Confluence Content API — Add. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/wiki/rest/api/content/{id}/label
      name: wiki-rest-api-content-id-label
      description: REST surface for wiki-rest-api-content-id-label.
      operations:
      - method: POST
        name: addlabelstocontent
        description: Atlassian Add Labels to Content
        call: confluence-content-add.addlabelstocontent
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/wiki/rest/api/content/{id}/restriction
      name: wiki-rest-api-content-id-restriction
      description: REST surface for wiki-rest-api-content-id-restriction.
      operations:
      - method: POST
        name: addrestrictions
        description: Atlassian Add Restrictions
        call: confluence-content-add.addrestrictions
        with:
          id: rest.id
          expand: rest.expand
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/wiki/rest/api/content/{id}/restriction/byoperation/{operationkey}/bygroupid/{groupid}
      name: wiki-rest-api-content-id-restriction-byoperation-operationkey-bygroupid-groupid
      description: REST surface for wiki-rest-api-content-id-restriction-byOperation-operationKey-byGroupId-groupId.
      operations:
      - method: PUT
        name: addgrouptocontentrestriction
        description: Atlassian Add Group to Content Restriction
        call: confluence-content-add.addgrouptocontentrestriction
        with:
          id: rest.id
          operationKey: rest.operationKey
          groupId: rest.groupId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/wiki/rest/api/content/{id}/restriction/byoperation/{operationkey}/group/{groupname}
      name: wiki-rest-api-content-id-restriction-byoperation-operationkey-group-groupname
      description: REST surface for wiki-rest-api-content-id-restriction-byOperation-operationKey-group-groupName.
      operations:
      - method: PUT
        name: addgrouptocontentrestriction
        description: Atlassian Add Group to Content Restriction
        call: confluence-content-add.addgrouptocontentrestriction
        with:
          id: rest.id
          operationKey: rest.operationKey
          groupName: rest.groupName
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/wiki/rest/api/content/{id}/restriction/byoperation/{operationkey}/user
      name: wiki-rest-api-content-id-restriction-byoperation-operationkey-user
      description: REST surface for wiki-rest-api-content-id-restriction-byOperation-operationKey-user.
      operations:
      - method: PUT
        name: addusertocontentrestriction
        description: Atlassian Add User to Content Restriction
        call: confluence-content-add.addusertocontentrestriction
        with:
          id: rest.id
          operationKey: rest.operationKey
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: confluence-content-add-mcp
    port: 9090
    transport: http
    description: MCP adapter for Atlassian Confluence Content API — Add. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: atlassian-add-labels-content
      description: Atlassian Add Labels to Content
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: confluence-content-add.addlabelstocontent
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-add-restrictions
      description: Atlassian Add Restrictions
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: confluence-content-add.addrestrictions
      with:
        id: tools.id
        expand: tools.expand
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-add-group-content-restriction
      description: Atlassian Add Group to Content Restriction
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: confluence-content-add.addgrouptocontentrestriction
      with:
        id: tools.id
        operationKey: tools.operationKey
        groupId: tools.groupId
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-add-group-content-restriction-2
      description: Atlassian Add Group to Content Restriction
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: confluence-content-add.addgrouptocontentrestriction
      with:
        id: tools.id
        operationKey: tools.operationKey
        groupName: tools.groupName
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-add-user-content-restriction
      description: Atlassian Add User to Content Restriction
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: confluence-content-add.addusertocontentrestriction
      with:
        id: tools.id
        operationKey: tools.operationKey
      outputParameters:
      - type: object
        mapping: $.