Returns a list of classification levels available.
Permissions required: 'Permission to access the Confluence site ('Can use' global permission).
read:configuration:confluence
Connect app scope required: READ
This request has no parameters.
Returned if classifications levels are returned.
array<ClassificationLevel>
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/classification-levels`, {
headers: {
'Accept': 'application/json'
}
});
console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.json());
1
2
3
4
5
6
7
8
9
10
11
[
{
"id": "<string>",
"status": "DRAFT",
"order": 45,
"name": "<string>",
"description": "<string>",
"guideline": "<string>",
"color": "RED"
}
]
Returns the default classification level for a specific space.
Permissions required: 'Permission to access the Confluence site ('Can use' global permission) and permission to view the space.
read:space:confluence
Connect app scope required: READ
integer
RequiredReturned if the requested default classification level for a space is returned.
A unit of data classification defined by an organiation. A classification level may be associated with specific storage and handling requirements or expectations.
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/{id}/classification-level/default`, {
headers: {
'Accept': 'application/json'
}
});
console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.json());
1
2
3
4
5
6
7
8
9
{
"id": "<string>",
"status": "DRAFT",
"order": 45,
"name": "<string>",
"description": "<string>",
"guideline": "<string>",
"color": "RED"
}
Update the default classification level for a specific space.
Permissions required: 'Permission to access the Confluence site ('Can use' global permission) and 'Admin' permission for the space.
read:space:confluence
, write:space:confluence
Connect app scope required: WRITE
integer
Requiredstring
Requiredstring
RequiredReturned if the default classification level was successfully updated.
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 = `{
"id": "<string>",
"status": "current"
}`;
const response = await api.asUser().requestConfluence(route`/wiki/api/v2/spaces/{id}/classification-level/default`, {
method: 'PUT',
headers: {
'Content-Type': 'application/json'
},
body: bodyData
});
console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.text());
Returns the default classification level for a specific space.
Permissions required: 'Permission to access the Confluence site ('Can use' global permission) and 'Admin' permission for the space.
read:space:confluence
, write:space:confluence
Connect app scope required: WRITE
integer
RequiredReturned if the default classification level was successfully deleted.
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/{id}/classification-level/default`, {
method: 'DELETE'
});
console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.text());
Returns the classification level for a specific page.
Permissions required: 'Permission to access the Confluence site ('Can use' global permission) and permission to view the page. 'Permission to edit the page is required if trying to view classification level for a draft.
read:page:confluence
, write:page:confluence
Connect app scope required: WRITE
integer
Requiredstring
Returned if the requested classification level for a page is returned.
A unit of data classification defined by an organiation. A classification level may be associated with specific storage and handling requirements or expectations.
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/pages/{id}/classification-level`, {
headers: {
'Accept': 'application/json'
}
});
console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.json());
1
2
3
4
5
6
7
8
9
{
"id": "<string>",
"status": "DRAFT",
"order": 45,
"name": "<string>",
"description": "<string>",
"guideline": "<string>",
"color": "RED"
}
Updates the classification level for a specific page.
Permissions required: 'Permission to access the Confluence site ('Can use' global permission) and permission to edit the page.
write:page:confluence
Connect app scope required: WRITE
integer
Requiredstring
Requiredstring
RequiredReturned if the classification level was successfully updated.
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 = `{
"id": "<string>",
"status": "current"
}`;
const response = await api.asUser().requestConfluence(route`/wiki/api/v2/pages/{id}/classification-level`, {
method: 'PUT',
headers: {
'Content-Type': 'application/json'
},
body: bodyData
});
console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.text());
Resets the classification level for a specific page for the space default classification level.
Permissions required: 'Permission to access the Confluence site ('Can use' global permission) and permission to view the page.
write:page:confluence
Connect app scope required: WRITE
integer
Requiredstring
RequiredReturned if the classification level was successfully reset.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// This sample uses Atlassian Forge
// https://developer.atlassian.com/platform/forge/
import api, { route } from "@forge/api";
var bodyData = `{
"status": "current"
}`;
const response = await api.asUser().requestConfluence(route`/wiki/api/v2/pages/{id}/classification-level/reset`, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: bodyData
});
console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.text());
Returns the classification level for a specific blog post.
Permissions required: 'Permission to access the Confluence site ('Can use' global permission) and permission to view the blog post. 'Permission to edit the blog post is required if trying to view classification level for a draft.
read:page:confluence
, write:page:confluence
Connect app scope required: WRITE
integer
Requiredstring
Returned if the requested classification level for a blog post is returned.
A unit of data classification defined by an organiation. A classification level may be associated with specific storage and handling requirements or expectations.
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/blogposts/{id}/classification-level`, {
headers: {
'Accept': 'application/json'
}
});
console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.json());
1
2
3
4
5
6
7
8
9
{
"id": "<string>",
"status": "DRAFT",
"order": 45,
"name": "<string>",
"description": "<string>",
"guideline": "<string>",
"color": "RED"
}
Updates the classification level for a specific blog post.
Permissions required: 'Permission to access the Confluence site ('Can use' global permission) and permission to edit the blog post.
write:page:confluence
Connect app scope required: WRITE
integer
Requiredstring
Requiredstring
RequiredReturned if the classification level was successfully updated.
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 = `{
"id": "<string>",
"status": "current"
}`;
const response = await api.asUser().requestConfluence(route`/wiki/api/v2/blogposts/{id}/classification-level`, {
method: 'PUT',
headers: {
'Content-Type': 'application/json'
},
body: bodyData
});
console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.text());
Resets the classification level
for a specific blog post for the space
default classification level.
Permissions required: 'Permission to access the Confluence site ('Can use' global permission) and permission to view the blog post.
write:page:confluence
Connect app scope required: WRITE
integer
Requiredstring
RequiredReturned if the classification level was successfully reset.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// This sample uses Atlassian Forge
// https://developer.atlassian.com/platform/forge/
import api, { route } from "@forge/api";
var bodyData = `{
"status": "current"
}`;
const response = await api.asUser().requestConfluence(route`/wiki/api/v2/blogposts/{id}/classification-level/reset`, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: bodyData
});
console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.text());
Returns the classification level for a specific whiteboard.
Permissions required: 'Permission to access the Confluence site ('Can use' global permission) and permission to view the whiteboard.
read:whiteboard:confluence
Connect app scope required: READ
integer
RequiredReturned if the requested classification level for a whiteboard is returned.
A unit of data classification defined by an organiation. A classification level may be associated with specific storage and handling requirements or expectations.
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/whiteboards/{id}/classification-level`, {
headers: {
'Accept': 'application/json'
}
});
console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.json());
1
2
3
4
5
6
7
8
9
{
"id": "<string>",
"status": "DRAFT",
"order": 45,
"name": "<string>",
"description": "<string>",
"guideline": "<string>",
"color": "RED"
}
Updates the classification level for a specific whiteboard.
Permissions required: 'Permission to access the Confluence site ('Can use' global permission) and permission to edit the whiteboard.
write:whiteboard:confluence
Connect app scope required: WRITE
integer
Requiredstring
Requiredstring
RequiredReturned if the classification level was successfully updated.
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 = `{
"id": "<string>",
"status": "current"
}`;
const response = await api.asUser().requestConfluence(route`/wiki/api/v2/whiteboards/{id}/classification-level`, {
method: 'PUT',
headers: {
'Content-Type': 'application/json'
},
body: bodyData
});
console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.text());
Resets the classification level for a specific whiteboard for the space default classification level.
Permissions required: 'Permission to access the Confluence site ('Can use' global permission) and permission to view the whiteboard.
write:whiteboard:confluence
Connect app scope required: WRITE
integer
Requiredstring
RequiredReturned if the classification level was successfully reset.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// This sample uses Atlassian Forge
// https://developer.atlassian.com/platform/forge/
import api, { route } from "@forge/api";
var bodyData = `{
"status": "current"
}`;
const response = await api.asUser().requestConfluence(route`/wiki/api/v2/whiteboards/{id}/classification-level/reset`, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: bodyData
});
console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.text());
Returns the classification level for a specific database.
Permissions required: 'Permission to access the Confluence site ('Can use' global permission) and permission to view the database.
read:database:confluence
Connect app scope required: READ
integer
RequiredReturned if the requested classification level for a database is returned.
A unit of data classification defined by an organiation. A classification level may be associated with specific storage and handling requirements or expectations.
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/databases/{id}/classification-level`, {
headers: {
'Accept': 'application/json'
}
});
console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.json());
1
2
3
4
5
6
7
8
9
{
"id": "<string>",
"status": "DRAFT",
"order": 45,
"name": "<string>",
"description": "<string>",
"guideline": "<string>",
"color": "RED"
}
Updates the classification level for a specific database.
Permissions required: 'Permission to access the Confluence site ('Can use' global permission) and permission to edit the database.
write:database:confluence
Connect app scope required: WRITE
integer
Requiredstring
Requiredstring
RequiredReturned if the classification level was successfully updated.
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 = `{
"id": "<string>",
"status": "current"
}`;
const response = await api.asUser().requestConfluence(route`/wiki/api/v2/databases/{id}/classification-level`, {
method: 'PUT',
headers: {
'Content-Type': 'application/json'
},
body: bodyData
});
console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.text());
Resets the classification level for a specific database for the space default classification level.
Permissions required: 'Permission to access the Confluence site ('Can use' global permission) and permission to view the database.
write:database:confluence
Connect app scope required: WRITE
integer
Requiredstring
RequiredReturned if the classification level was successfully reset.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// This sample uses Atlassian Forge
// https://developer.atlassian.com/platform/forge/
import api, { route } from "@forge/api";
var bodyData = `{
"status": "current"
}`;
const response = await api.asUser().requestConfluence(route`/wiki/api/v2/databases/{id}/classification-level/reset`, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: bodyData
});
console.log(`Response: ${response.status} ${response.statusText}`);
console.log(await response.text());
Rate this page: