Create a new attribute on the given object type
write:cmdb-attribute:jira
string
Requiredstring
Requiredboolean
string
integer
Requiredinteger
string
array<string>
string
integer
integer
The definition of the attribute that is associated with an object type
1
2
3
4
5
6
7
8
9
10
curl --request POST \
--url 'https://api.atlassian.com/jsm/assets/workspace/{workspaceId}/v1/objecttypeattribute/{objectTypeId}' \
--header 'Authorization: Bearer <access_token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"name": "Geolocation",
"type": "0",
"defaultTypeId": "0"
}'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
"workspaceId": "g2778e1d-939d-581d-c8e2-9d5g59de456b",
"globalId": "g2778e1d-939d-581d-c8e2-9d5g59de456b:1330",
"id": "1330",
"name": "Geolocation",
"label": false,
"defaultType": {
"id": 0,
"name": "Text"
},
"editable": true,
"system": false,
"sortable": true,
"summable": false,
"indexed": true,
"minimumCardinality": 0,
"maximumCardinality": 1,
"removable": true,
"hidden": false,
"includeChildObjectTypes": false,
"uniqueAttribute": false,
"options": "",
"position": 6
}
Update an existing object type attribute
write:cmdb-attribute:jira
string
Requiredstring
Requiredstring
boolean
string
integer
integer
string
array<string>
string
integer
integer
The definition of the attribute that is associated with an object type
1
2
3
4
5
6
7
8
curl --request PUT \
--url 'https://api.atlassian.com/jsm/assets/workspace/{workspaceId}/v1/objecttypeattribute/{objectTypeId}/{id}' \
--header 'Authorization: Bearer <access_token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"description": "GPS coordinates of the office"
}'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
"workspaceId": "g2778e1d-939d-581d-c8e2-9d5g59de456b",
"globalId": "g2778e1d-939d-581d-c8e2-9d5g59de456b:1330",
"id": "1330",
"name": "Geolocation",
"label": false,
"defaultType": {
"id": 0,
"name": "Text"
},
"editable": true,
"system": false,
"sortable": true,
"summable": false,
"indexed": true,
"minimumCardinality": 0,
"maximumCardinality": 1,
"removable": true,
"hidden": false,
"includeChildObjectTypes": false,
"uniqueAttribute": false,
"options": "",
"position": 6
}
Delete an existing object type attribute
delete:cmdb-attribute:jira
string
RequiredThe object type attribute has been successfully deleted
1
2
3
curl --request DELETE \
--url 'https://api.atlassian.com/jsm/assets/workspace/{workspaceId}/v1/objecttypeattribute/{id}' \
--header 'Authorization: Bearer <access_token>'
Rate this page: