GET

Get config statustype

Find all status

Data Security Policy: Exempt from app access rules

Request

Query parameters

objectSchemaId

string

Responses

application/json

array<Status>

GET/config/statustype
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'
200Response
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

Post config statustype

Create a new status

Data Security Policy: Exempt from app access rules

Request

Request bodyapplication/json

name

string

Required
description

string

category

integer

Required
objectSchemaId

string

Responses

application/json

Status

An Assets status type that can be associated with objects

POST/config/statustype
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" }'
201Response
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

Get config statustype {id}

Find a status by id

Data Security Policy: Exempt from app access rules

Request

Path parameters

id

string

Required

Responses

application/json

Status

An Assets status type that can be associated with objects

GET/config/statustype/{id}
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'
200Response
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

Put config statustype {id}

Update an existing status

Data Security Policy: Exempt from app access rules

Request

Path parameters

id

string

Required

Request bodyapplication/json

name

string

Required
description

string

category

integer

Required
objectSchemaId

string

Responses

application/json

Status

An Assets status type that can be associated with objects

PUT/config/statustype/{id}
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" }'
200Response
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" }
DEL

Delete config statustype {id}

Delete an existing status

Data Security Policy: Exempt from app access rules

Request

Path parameters

id

string

Required

Responses

The status has been successfully deleted

DEL/config/statustype/{id}
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: