Rate this page:
GET /jsm/assets/workspace/{workspaceId}/v1/config/statustype
Find all status
string
Include statuses for the object schema id. If supplied statuses for the object schema will be returned otherwise all global will be returned
1 2 3
curl --request GET \
--url 'https://api.atlassian.com/jsm/assets/workspace/{workspaceId}/v1/config/statustype' \
--header 'Accept: application/json'
Content type | Value |
---|---|
application/json | Array<Status> |
Example response (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
}
]
POST /jsm/assets/workspace/{workspaceId}/v1/config/statustype
Create a new status
string
string
integer
Name | Value | Color |
---|---|---|
ACTIVE | 1 | Green |
INACTIVE | 0 | Red |
PENDING | 2 | Yellow |
string
1 2 3 4 5 6 7 8 9
curl --request POST \
--url 'https://api.atlassian.com/jsm/assets/workspace/{workspaceId}/v1/config/statustype' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"name": "Decommissioned",
"category": 0,
"objectSchemaId": "6"
}'
Content type | Value |
---|---|
application/json |
Example response (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"
}
GET /jsm/assets/workspace/{workspaceId}/v1/config/statustype/{id}
Find a status by id
string
Status type id
1 2 3
curl --request GET \
--url 'https://api.atlassian.com/jsm/assets/workspace/{workspaceId}/v1/config/statustype/{id}' \
--header 'Accept: application/json'
Content type | Value |
---|---|
application/json |
Example response (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"
}
PUT /jsm/assets/workspace/{workspaceId}/v1/config/statustype/{id}
Update an existing status
string
Status type id
string
string
integer
Name | Value | Color |
---|---|---|
ACTIVE | 1 | Green |
INACTIVE | 0 | Red |
PENDING | 2 | Yellow |
string
1 2 3 4 5 6 7 8 9
curl --request PUT \
--url 'https://api.atlassian.com/jsm/assets/workspace/{workspaceId}/v1/config/statustype/{id}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"name": "Decommissioned",
"category": 0,
"objectSchemaId": "6"
}'
Content type | Value |
---|---|
application/json |
Example response (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"
}
DELETE /jsm/assets/workspace/{workspaceId}/v1/config/statustype/{id}
Delete an existing status
string
Status type id
1 2
curl --request DELETE \
--url 'https://api.atlassian.com/jsm/assets/workspace/{workspaceId}/v1/config/statustype/{id}'
The status has been successfully deleted
A schema has not been defined for this response code.
Rate this page: