Archive the given Space identified by spaceKey. This method is idempotent i.e., if the Space is already archived then no action will be taken.
string
RequiredNo Content if the Space is archived successfully or already has status 'ARCHIVED'.
1
2
curl --request PUT \
--url 'http://{baseurl}/confluence/rest/api/space/{spaceKey}/archive'
Returns the content in this given space.
Example request URI:
http://example.com/confluence/rest/api/space/TEST/content?expand=history
string
Requiredstring
string
string
string
Returns a full JSON representation of a piece of content.
1
2
3
curl --request GET \
--url 'http://{baseurl}/confluence/rest/api/space/{spaceKey}/content' \
--header 'Accept: application/json'
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
"pageRequest": {
"cursor": {
"reverse": true,
"cursorType": "SPACE"
},
"limit": 2154,
"start": 2154
},
"nextCursor": {
"reverse": true,
"cursorType": "SPACE"
},
"prevCursor": {
"reverse": true,
"cursorType": "SPACE"
},
"results": [
{
"id": "123456",
"type": "page",
"status": "current",
"title": "My Page",
"links": {
"webui": "https://www.example.com/display/SPACEKEY/My+Page"
},
"space": {
"id": 123456,
"key": "TEST",
"name": "Test Space",
"status": "current",
"icon": {},
"description": {},
"homepage": {},
"links": {},
"type": "global",
"metadata": {
"labels": [
"label1",
"label2"
]
},
"retentionPolicy": {}
},
"history": {
"previousVersion": {},
"nextVersion": {},
"lastUpdated": {},
"latest": true,
"createdBy": {},
"createdDate": "2020-01-01T00:00:00Z",
"contributors": {},
"lastUpdatedRef": {},
"nextVersionRef": {},
"previousVersionRef": {},
"contentParentRef": {}
},
"version": {
"by": {},
"when": "2020-01-01T00:00:00Z",
"message": "A message",
"number": 1,
"minorEdit": true,
"hidden": true,
"syncRev": "123456",
"content": {},
"contentRef": {}
},
"ancestors": [],
"position": 1,
"operations": [
{
"operation": "read",
"targetType": "page"
}
],
"children": {},
"descendants": {},
"body": {},
"metadata": {
"key": "value"
},
"extensions": {
"key": "value"
},
"restrictions": {
"use": {
"operation": "use",
"restrictions": []
}
},
"historyRef": {
"expanded": true,
"idProperties": {}
},
"spaceRef": {
"expanded": true,
"idProperties": {}
},
"containerRef": {
"expanded": true,
"idProperties": {}
},
"versionRef": {
"expanded": true,
"idProperties": {}
}
}
],
"start": 25,
"limit": 25,
"next": "http://localhost:8085/rest/api/latest/../paginate?limit=25&start=50",
"self": "http://localhost:8085/rest/api/latest/../paginate?limit=25&start=25",
"prev": "http://localhost:8085/rest/api/latest/../paginate?limit=25&start=0"
}
Returns the content in this given space with the given type.
Example request URI:
http://example.com/confluence/rest/api/space/TEST/content/page?expand=history
string
Requiredstring
Requiredstring
string
string
string
Returns a full JSON representation of a piece of content.
1
2
3
curl --request GET \
--url 'http://{baseurl}/confluence/rest/api/space/{spaceKey}/content/{type}' \
--header 'Accept: application/json'
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
"pageRequest": {
"cursor": {
"reverse": true,
"cursorType": "SPACE"
},
"limit": 2154,
"start": 2154
},
"nextCursor": {
"reverse": true,
"cursorType": "SPACE"
},
"prevCursor": {
"reverse": true,
"cursorType": "SPACE"
},
"results": [
{
"id": "123456",
"type": "page",
"status": "current",
"title": "My Page",
"links": {
"webui": "https://www.example.com/display/SPACEKEY/My+Page"
},
"space": {
"id": 123456,
"key": "TEST",
"name": "Test Space",
"status": "current",
"icon": {},
"description": {},
"homepage": {},
"links": {},
"type": "global",
"metadata": {
"labels": [
"label1",
"label2"
]
},
"retentionPolicy": {}
},
"history": {
"previousVersion": {},
"nextVersion": {},
"lastUpdated": {},
"latest": true,
"createdBy": {},
"createdDate": "2020-01-01T00:00:00Z",
"contributors": {},
"lastUpdatedRef": {},
"nextVersionRef": {},
"previousVersionRef": {},
"contentParentRef": {}
},
"version": {
"by": {},
"when": "2020-01-01T00:00:00Z",
"message": "A message",
"number": 1,
"minorEdit": true,
"hidden": true,
"syncRev": "123456",
"content": {},
"contentRef": {}
},
"ancestors": [],
"position": 1,
"operations": [
{
"operation": "read",
"targetType": "page"
}
],
"children": {},
"descendants": {},
"body": {},
"metadata": {
"key": "value"
},
"extensions": {
"key": "value"
},
"restrictions": {
"use": {
"operation": "use",
"restrictions": []
}
},
"historyRef": {
"expanded": true,
"idProperties": {}
},
"spaceRef": {
"expanded": true,
"idProperties": {}
},
"containerRef": {
"expanded": true,
"idProperties": {}
},
"versionRef": {
"expanded": true,
"idProperties": {}
}
}
],
"start": 25,
"limit": 25,
"next": "http://localhost:8085/rest/api/latest/../paginate?limit=25&start=50",
"self": "http://localhost:8085/rest/api/latest/../paginate?limit=25&start=25",
"prev": "http://localhost:8085/rest/api/latest/../paginate?limit=25&start=0"
}
Creates a new private Space, viewable only by its creator. The incoming Space does not include an id, but must include a Key and Name, and should include a Description.
The space to be created
integer
string
string
string
ReferenceIcon
object
ReferenceContent
object
string
object
Returns a full JSON representation of a space.
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
28
29
30
31
curl --request POST \
--url 'http://{baseurl}/confluence/rest/api/space/_private' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"id": 123456,
"key": "TEST",
"name": "Test Space",
"status": "current",
"icon": {
"expanded": true,
"idProperties": {}
},
"description": {},
"homepage": {
"expanded": true,
"idProperties": {}
},
"links": {},
"type": "global",
"metadata": {
"labels": [
"label1",
"label2"
]
},
"retentionPolicy": {
"expanded": true,
"idProperties": {}
}
}'
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
{
"id": 123456,
"key": "TEST",
"name": "Test Space",
"status": "current",
"icon": {
"expanded": true,
"idProperties": {}
},
"description": {},
"homepage": {
"expanded": true,
"idProperties": {}
},
"links": {},
"type": "global",
"metadata": {
"labels": [
"label1",
"label2"
]
},
"retentionPolicy": {
"expanded": true,
"idProperties": {}
}
}
Returns information about a number of spaces.
Example request URI(s):
http://example.com/confluence/rest/api/space?spaceKey=TST&spaceKey=ds
string
string
string
string
string
string
string
string
string
string
string
Returns an array of full JSON representations of found space.
1
2
3
4
5
curl --request GET \
--url 'http://{baseurl}/confluence/rest/api/space' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '"<string>"'
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
{
"id": 123456,
"key": "TEST",
"name": "Test Space",
"status": "current",
"icon": {
"expanded": true,
"idProperties": {}
},
"description": {},
"homepage": {
"expanded": true,
"idProperties": {}
},
"links": {},
"type": "global",
"metadata": {
"labels": [
"label1",
"label2"
]
},
"retentionPolicy": {
"expanded": true,
"idProperties": {}
}
}
Creates a new Space. The incoming Space does not include an id, but must include a Key and Name, and should include a Description.
The space to be created
integer
string
string
string
ReferenceIcon
object
ReferenceContent
object
string
object
Returns a full JSON representation of a space.
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
28
29
30
31
curl --request POST \
--url 'http://{baseurl}/confluence/rest/api/space' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"id": 123456,
"key": "TEST",
"name": "Test Space",
"status": "current",
"icon": {
"expanded": true,
"idProperties": {}
},
"description": {},
"homepage": {
"expanded": true,
"idProperties": {}
},
"links": {},
"type": "global",
"metadata": {
"labels": [
"label1",
"label2"
]
},
"retentionPolicy": {
"expanded": true,
"idProperties": {}
}
}'
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
{
"id": 123456,
"key": "TEST",
"name": "Test Space",
"status": "current",
"icon": {
"expanded": true,
"idProperties": {}
},
"description": {},
"homepage": {
"expanded": true,
"idProperties": {}
},
"links": {},
"type": "global",
"metadata": {
"labels": [
"label1",
"label2"
]
},
"retentionPolicy": {
"expanded": true,
"idProperties": {}
}
}
Returns information about a space.
Example request URI:
http://example.com/confluence/rest/api/space/TST?expand=description
string
Requiredstring
Returns a full JSON representation of a space.
1
2
3
curl --request GET \
--url 'http://{baseurl}/confluence/rest/api/space/{spaceKey}' \
--header 'Accept: application/json'
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
{
"id": 123456,
"key": "TEST",
"name": "Test Space",
"status": "current",
"icon": {
"expanded": true,
"idProperties": {}
},
"description": {},
"homepage": {
"expanded": true,
"idProperties": {}
},
"links": {},
"type": "global",
"metadata": {
"labels": [
"label1",
"label2"
]
},
"retentionPolicy": {
"expanded": true,
"idProperties": {}
}
}
Updates a Space. The incoming Space must include a Key and Name, and should include a Description
string
Requiredthe space being updated
integer
string
string
string
ReferenceIcon
object
ReferenceContent
object
string
object
Returns a full JSON representation of a space.
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
28
29
30
31
curl --request PUT \
--url 'http://{baseurl}/confluence/rest/api/space/{spaceKey}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"id": 123456,
"key": "TEST",
"name": "Test Space",
"status": "current",
"icon": {
"expanded": true,
"idProperties": {}
},
"description": {},
"homepage": {
"expanded": true,
"idProperties": {}
},
"links": {},
"type": "global",
"metadata": {
"labels": [
"label1",
"label2"
]
},
"retentionPolicy": {
"expanded": true,
"idProperties": {}
}
}'
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
{
"id": 123456,
"key": "TEST",
"name": "Test Space",
"status": "current",
"icon": {
"expanded": true,
"idProperties": {}
},
"description": {},
"homepage": {
"expanded": true,
"idProperties": {}
},
"links": {},
"type": "global",
"metadata": {
"labels": [
"label1",
"label2"
]
},
"retentionPolicy": {
"expanded": true,
"idProperties": {}
}
}
Deletes a Space. The space is deleted in a long running task, so the space cannot be considered deleted when this resource returns. Clients can follow the status link in the response and poll it until the task completes.
string
RequiredReturns a pointer to the status of the space-deletion task.
1
2
3
curl --request DELETE \
--url 'http://{baseurl}/confluence/rest/api/space/{spaceKey}' \
--header 'Accept: application/json'
1
2
3
4
5
6
7
8
9
{
"id": "<string>",
"links": {
"result": "http://localhost:8080/confluence/rest/api/longtask/123/result",
"status": "http://localhost:8080/confluence/rest/api/longtask/123/status"
},
"resultPath": "result",
"statusPath": "status"
}
Restore the given Space identified by spaceKey. This method is idempotent i.e., if the Space is already restored then no action will be taken.
string
RequiredNo Content if the Space is restored successfully or already has status 'CURRENT'.
1
2
curl --request PUT \
--url 'http://{baseurl}/confluence/rest/api/space/{spaceKey}/restore'
Rate this page: