arazzo: 1.0.1
info:
title: Atlassian Confluence Create Page with Label
summary: Create a Confluence page, tag it with a label, then read it back.
description: >-
Creates a new Confluence page in a space, applies a label to the page so it
can be categorized and found, and reads the page back to confirm it. Each
step inlines its Basic authentication header, request body and documented
success criteria so the flow is self-describing.
version: 1.0.0
sourceDescriptions:
- name: contentApi
url: ../openapi/atlassian-content-api-openapi.yml
type: openapi
- name: contentLabelsApi
url: ../openapi/atlassian-content-labels-api-openapi.yml
type: openapi
workflows:
- workflowId: create-page-with-label
summary: Create a Confluence page and apply a label to it.
description: >-
Creates a page, adds a global label to it, and reads the page back to
confirm it.
inputs:
type: object
required:
- authorization
- spaceKey
- title
- bodyHtml
- labelName
properties:
authorization:
type: string
description: HTTP Basic auth header value.
spaceKey:
type: string
description: The key of the space to create the page in.
title:
type: string
description: The page title.
bodyHtml:
type: string
description: The page body in storage (HTML) format.
labelName:
type: string
description: The label name to apply to the page.
steps:
- stepId: createPage
description: Create a new page in the supplied space.
operationId: atlassianCreatecontent
parameters:
- name: Authorization
in: header
value: $inputs.authorization
requestBody:
contentType: application/json
payload:
type: page
title: $inputs.title
space:
key: $inputs.spaceKey
body:
storage:
value: $inputs.bodyHtml
representation: storage
successCriteria:
- condition: $statusCode == 200
outputs:
pageId: $response.body#/id
- stepId: addLabel
description: Apply a global label to the newly created page.
operationId: atlassianAddlabelstocontent
parameters:
- name: Authorization
in: header
value: $inputs.authorization
- name: id
in: path
value: $steps.createPage.outputs.pageId
requestBody:
contentType: application/json
payload:
- prefix: global
name: $inputs.labelName
successCriteria:
- condition: $statusCode == 200
outputs:
labels: $response.body#/results
- stepId: getPage
description: Read the page back to confirm it.
operationId: atlassianGetcontentbyid
parameters:
- name: Authorization
in: header
value: $inputs.authorization
- name: id
in: path
value: $steps.createPage.outputs.pageId
successCriteria:
- condition: $statusCode == 200
outputs:
id: $response.body#/id
title: $response.body#/title
outputs:
pageId: $steps.createPage.outputs.pageId
labels: $steps.addLabel.outputs.labels
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.