GET

Get content propertiesDeprecated

Returns the properties for a piece of content. For more information about content properties, see Confluence entity properties.

Permissions required: 'View' permission for the space, and permission to view the content if it is a page.

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:read:confluence-props
Granular:read:content-details:confluence

Connect app scope requiredREAD

Request

Path parameters

id

string

Required

Query parameters

key

array<string>

expand

array<string>

start

integer

limit

integer

Responses

Returned if the requested properties are returned.

application/json

ContentPropertyArray
GET/wiki/rest/api/content/{id}/property
1 2 3 4 5 6 7 8 9 10 11 12 // This sample uses Atlassian Forge // https://developer.atlassian.com/platform/forge/ import api, { route } from "@forge/api"; const response = await api.asUser().requestConfluence(route`/wiki/rest/api/content/{id}/property`, { headers: { 'Accept': 'application/json' } }); console.log(`Response: ${response.status} ${response.statusText}`); console.log(await response.json());
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 { "results": [ { "id": "<string>", "key": "<string>", "value": [ "<string>" ], "version": { "when": "<string>", "message": "<string>", "number": 2154, "minorEdit": true, "contentTypeModified": true }, "_links": {}, "_expandable": { "content": "<string>", "additionalProperties": "<string>" } } ], "start": 2154, "limit": 2154, "size": 2154, "_links": {} }
POST

Create content propertyDeprecated

Creates a property for an existing piece of content. For more information about content properties, see Confluence entity properties.

This is the same as Create content property for key except that the key is specified in the request body instead of as a path parameter.

Content properties can also be added when creating a new piece of content by including them in the metadata.properties of the request.

Permissions required: Permission to update the content.

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:write:confluence-props
Granular:read:content.property:confluence, write:content.property:confluence

Connect app scope requiredWRITE

Request

Path parameters

id

string

Required

Request bodyapplication/json

The content property to be created.

key

string

Required
value

oneOf [array<string>, boolean, object, string]

Required
Additional Properties

any

Responses

Returned if the content property is created.

application/json

ContentProperty
POST/wiki/rest/api/content/{id}/property
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 // This sample uses Atlassian Forge // https://developer.atlassian.com/platform/forge/ import api, { route } from "@forge/api"; var bodyData = `{ "key": "<string>", "value": [ "<string>" ] }`; const response = await api.asUser().requestConfluence(route`/wiki/rest/api/content/{id}/property`, { method: 'POST', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' }, body: bodyData }); console.log(`Response: ${response.status} ${response.statusText}`); console.log(await response.json());
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 { "id": "<string>", "key": "<string>", "value": [ "<string>" ], "version": { "when": "<string>", "message": "<string>", "number": 2154, "minorEdit": true, "contentTypeModified": true }, "_links": {}, "_expandable": { "content": "<string>", "additionalProperties": "<string>" } }
GET

Get content propertyDeprecated

Returns a content property for a piece of content. For more information, see Confluence entity properties.

Permissions required: 'View' permission for the space, and permission to view the content if it is a page.

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:read:confluence-props
Granular:read:content-details:confluence

Connect app scope requiredREAD

Request

Path parameters

id

string

Required
key

string

Required

Query parameters

expand

array<string>

status

array<string>

Responses

Returned if the content property is returned.

application/json

ContentProperty
GET/wiki/rest/api/content/{id}/property/{key}
1 2 3 4 5 6 7 8 9 10 11 12 // This sample uses Atlassian Forge // https://developer.atlassian.com/platform/forge/ import api, { route } from "@forge/api"; const response = await api.asUser().requestConfluence(route`/wiki/rest/api/content/{id}/property/{key}`, { headers: { 'Accept': 'application/json' } }); console.log(`Response: ${response.status} ${response.statusText}`); console.log(await response.json());
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 { "id": "<string>", "key": "<string>", "value": [ "<string>" ], "version": { "when": "<string>", "message": "<string>", "number": 2154, "minorEdit": true, "contentTypeModified": true }, "_links": {}, "_expandable": { "content": "<string>", "additionalProperties": "<string>" } }
PUT

Update content propertyDeprecated

Updates an existing content property. This method will also create a new property for a piece of content, if the property key does not exist and the property version is 1. For more information about content properties, see Confluence entity properties.

Permissions required: Permission to update the content.

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:write:confluence-props
Granular:read:content.property:confluence, write:content.property:confluence

Connect app scope requiredWRITE

Request

Path parameters

id

string

Required
key

string

Required

Request bodyapplication/json

The content property being updated.

value

oneOf [array<string>, boolean, object, string]

Required
version

object

Required
Additional Properties

any

Responses

Returned if the content property is created.

application/json

ContentProperty
PUT/wiki/rest/api/content/{id}/property/{key}
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 // This sample uses Atlassian Forge // https://developer.atlassian.com/platform/forge/ import api, { route } from "@forge/api"; var bodyData = `{ "value": [ "<string>" ], "version": { "number": 2154, "minorEdit": true } }`; const response = await api.asUser().requestConfluence(route`/wiki/rest/api/content/{id}/property/{key}`, { method: 'PUT', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' }, body: bodyData }); console.log(`Response: ${response.status} ${response.statusText}`); console.log(await response.json());
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 { "id": "<string>", "key": "<string>", "value": [ "<string>" ], "version": { "when": "<string>", "message": "<string>", "number": 2154, "minorEdit": true, "contentTypeModified": true }, "_links": {}, "_expandable": { "content": "<string>", "additionalProperties": "<string>" } }
POST

Create content property for keyDeprecated

Creates a property for an existing piece of content. For more information about content properties, see Confluence entity properties.

This is the same as Create content property except that the key is specified as a path parameter instead of in the request body.

Content properties can also be added when creating a new piece of content by including them in the metadata.properties of the request.

Permissions required: Permission to update the content.

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:write:confluence-props
Granular:read:content.property:confluence, write:content.property:confluence

Connect app scope requiredWRITE

Request

Path parameters

id

string

Required
key

string

Required

Request bodyapplication/json

The content property to be created.

value

oneOf [array<string>, boolean, object, string]

Required
Additional Properties

any

Responses

Returned if the content property is created.

application/json

ContentProperty
POST/wiki/rest/api/content/{id}/property/{key}
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 // This sample uses Atlassian Forge // https://developer.atlassian.com/platform/forge/ import api, { route } from "@forge/api"; var bodyData = `{ "value": [ "<string>" ] }`; const response = await api.asUser().requestConfluence(route`/wiki/rest/api/content/{id}/property/{key}`, { method: 'POST', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' }, body: bodyData }); console.log(`Response: ${response.status} ${response.statusText}`); console.log(await response.json());
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 { "id": "<string>", "key": "<string>", "value": [ "<string>" ], "version": { "when": "<string>", "message": "<string>", "number": 2154, "minorEdit": true, "contentTypeModified": true }, "_links": {}, "_expandable": { "content": "<string>", "additionalProperties": "<string>" } }
DEL

Delete content propertyDeprecated

Deletes a content property. For more information about content properties, see Confluence entity properties.

Permissions required: Permission to update the content.

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:write:confluence-props
Granular:write:content.property:confluence

Connect app scope requiredWRITE

Request

Path parameters

id

string

Required
key

string

Required

Responses

Returned if the content property is deleted.

DEL/wiki/rest/api/content/{id}/property/{key}
1 2 3 4 5 6 7 8 9 10 // This sample uses Atlassian Forge // https://developer.atlassian.com/platform/forge/ import api, { route } from "@forge/api"; const response = await api.asUser().requestConfluence(route`/wiki/rest/api/content/{id}/property/{key}`, { method: 'DELETE' }); console.log(`Response: ${response.status} ${response.statusText}`); console.log(await response.text());

Rate this page: