GET

Get space properties in space

Returns all properties for the given space. Space properties are a key-value storage associated with a space. The limit parameter specifies the maximum number of results returned in a single response. Use the link response header to paginate through additional results.

Permissions required: Permission to access the Confluence site ('Can use' global permission) and 'View' permission for the space.

Data Security Policy: Exempt from app access rules
Scopes
read:space:confluence

Connect app scope requiredREAD

Request

Path parameters

space-id

integer

Required

Query parameters

key

string

cursor

string

limit

integer

Responses

Returned if the requested space properties are returned. results may be empty if no results were found.

Headers

Link

string

application/json

MultiEntityResult<SpaceProperty>
GET/spaces/{space-id}/properties
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/api/v2/spaces/{space-id}/properties`, { 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 { "results": [ { "id": "<string>", "key": "<string>", "createdAt": "<string>", "createdBy": "<string>", "version": { "createdAt": "<string>", "createdBy": "<string>", "message": "<string>", "number": 44 } } ], "_links": { "next": "<string>", "base": "<string>" } }
POST

Create space property in space

Creates a new space property.

Permissions required: Permission to access the Confluence site ('Can use' global permission) and 'Admin' permission for the space.

Data Security Policy: Exempt from app access rules
Scopes
read:space:confluence, write:space:confluence

Connect app scope requiredWRITE

Request

Path parameters

space-id

integer

Required

Request bodyapplication/json

The space property to be created

key

string

value

any

Responses

Returned if the space property was created successfully.

Headers

location

string

application/json

SpaceProperty
POST/spaces/{space-id}/properties
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 // This sample uses Atlassian Forge // https://developer.atlassian.com/platform/forge/ import api, { route } from "@forge/api"; var bodyData = `{ "key": "<string>" }`; const response = await api.asUser().requestConfluence(route`/wiki/api/v2/spaces/{space-id}/properties`, { method: 'POST', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' }, body: bodyData }); console.log(`Response: ${response.status} ${response.statusText}`); console.log(await response.json());
201Response
1 2 3 4 5 6 7 8 9 10 11 12 { "id": "<string>", "key": "<string>", "createdAt": "<string>", "createdBy": "<string>", "version": { "createdAt": "<string>", "createdBy": "<string>", "message": "<string>", "number": 44 } }
GET

Get space property by id

Retrieve a space property by its id.

Permissions required: Permission to access the Confluence site ('Can use' global permission) and 'View' permission for the space.

Data Security Policy: Exempt from app access rules
Scopes
read:space:confluence

Connect app scope requiredREAD

Request

Path parameters

space-id

integer

Required
property-id

integer

Required

Responses

Returned if the space property was retrieved.

application/json

SpaceProperty
GET/spaces/{space-id}/properties/{property-id}
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/api/v2/spaces/{space-id}/properties/{property-id}`, { 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 { "id": "<string>", "key": "<string>", "createdAt": "<string>", "createdBy": "<string>", "version": { "createdAt": "<string>", "createdBy": "<string>", "message": "<string>", "number": 44 } }
PUT

Update space property by id

Update a space property by its id.

Permissions required: Permission to access the Confluence site ('Can use' global permission) and 'Admin' permission for the space.

Data Security Policy: Exempt from app access rules
Scopes
read:space:confluence, write:space:confluence

Connect app scope requiredWRITE

Request

Path parameters

space-id

integer

Required
property-id

integer

Required

Request bodyapplication/json

The space property to be updated.

key

string

value

any

version

object

Responses

Returned if the space property was updated successfully.

Headers

location

string

application/json

SpaceProperty
PUT/spaces/{space-id}/properties/{property-id}
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 // This sample uses Atlassian Forge // https://developer.atlassian.com/platform/forge/ import api, { route } from "@forge/api"; var bodyData = `{ "key": "<string>", "version": { "number": 84, "message": "<string>" } }`; const response = await api.asUser().requestConfluence(route`/wiki/api/v2/spaces/{space-id}/properties/{property-id}`, { 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 { "id": "<string>", "key": "<string>", "createdAt": "<string>", "createdBy": "<string>", "version": { "createdAt": "<string>", "createdBy": "<string>", "message": "<string>", "number": 44 } }
DEL

Delete space property by id

Deletes a space property by its id.

Permissions required: Permission to access the Confluence site ('Can use' global permission) and 'Admin' permission for the space.

Data Security Policy: Exempt from app access rules
Scopes
read:space:confluence, write:space:confluence

Connect app scope requiredWRITE

Request

Path parameters

space-id

integer

Required
property-id

integer

Required

Responses

Returned if the space property was deleted successfully.

DEL/spaces/{space-id}/properties/{property-id}
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/api/v2/spaces/{space-id}/properties/{property-id}`, { method: 'DELETE' }); console.log(`Response: ${response.status} ${response.statusText}`); console.log(await response.text());

Rate this page: