Find all status
string
array<Status>
1
2
3
4
curl --request GET \
--url 'https://api.atlassian.com/jsm/assets/workspace/{workspaceId}/v1/config/statustype' \
--header 'Authorization: Bearer <access_token>' \
--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
[
{
"id": "1",
"name": "Action Needed",
"description": "",
"category": 2,
"objectSchemaId": null
},
{
"id": "2",
"name": "Active",
"description": "",
"category": 1,
"objectSchemaId": null
},
{
"id": "3",
"name": "Closed",
"description": "",
"category": 0,
"objectSchemaId": null
},
{
"id": "4",
"name": "In Service",
"description": "",
"category": 2,
"objectSchemaId": null
},
{
"id": "5",
"name": "Running",
"description": "",
"category": 1,
"objectSchemaId": null
},
{
"id": "6",
"name": "Stopped",
"description": "",
"category": 0,
"objectSchemaId": null
},
{
"id": "7",
"name": "Support Requested",
"description": "",
"category": 2,
"objectSchemaId": null
}
]
Create a new status
string
Requiredstring
integer
Requiredstring
An Assets status type that can be associated with objects
1
2
3
4
5
6
7
8
9
10
curl --request POST \
--url 'https://api.atlassian.com/jsm/assets/workspace/{workspaceId}/v1/config/statustype' \
--header 'Authorization: Bearer <access_token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"name": "Decommissioned",
"category": 0,
"objectSchemaId": "6"
}'
1
2
3
4
5
6
7
8
{
"workspaceId": "g2778e1d-939d-581d-c8e2-9d5g59de456b",
"globalId": "g2778e1d-939d-581d-c8e2-9d5g59de456b:58",
"id": "58",
"name": "Decommissioned",
"category": 0,
"objectSchemaId": "6"
}
Find a status by id
string
RequiredAn Assets status type that can be associated with objects
1
2
3
4
curl --request GET \
--url 'https://api.atlassian.com/jsm/assets/workspace/{workspaceId}/v1/config/statustype/{id}' \
--header 'Authorization: Bearer <access_token>' \
--header 'Accept: application/json'
1
2
3
4
5
6
7
8
{
"workspaceId": "g2778e1d-939d-581d-c8e2-9d5g59de456b",
"globalId": "g2778e1d-939d-581d-c8e2-9d5g59de456b:58",
"id": "58",
"name": "Decommissioned",
"category": 0,
"objectSchemaId": "6"
}
Update an existing status
string
Requiredstring
Requiredstring
integer
Requiredstring
An Assets status type that can be associated with objects
1
2
3
4
5
6
7
8
9
10
curl --request PUT \
--url 'https://api.atlassian.com/jsm/assets/workspace/{workspaceId}/v1/config/statustype/{id}' \
--header 'Authorization: Bearer <access_token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"name": "Decommissioned",
"category": 0,
"objectSchemaId": "6"
}'
1
2
3
4
5
6
7
8
{
"workspaceId": "g2778e1d-939d-581d-c8e2-9d5g59de456b",
"globalId": "g2778e1d-939d-581d-c8e2-9d5g59de456b:58",
"id": "58",
"name": "Decommissioned",
"category": 0,
"objectSchemaId": "6"
}
Delete an existing status
string
RequiredThe status has been successfully deleted
1
2
3
curl --request DELETE \
--url 'https://api.atlassian.com/jsm/assets/workspace/{workspaceId}/v1/config/statustype/{id}' \
--header 'Authorization: Bearer <access_token>'
Rate this page: