This resource represents assets in Jira. These assets may have been populated in Jira from another application. Use this resource to get, search for, create, update, and delete assets in Jira.
Creates new assets or updates existing assets. Note that updating assets will overwrite their properties with the properties defined in the request object.
array<asset>
Returned if the resource is accepted to be asynchronously processed.
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
curl --request PUT \
--url '/rest/assetapi/asset/bulk' \
--header 'Content-Type: application/json' \
--data '{
"putRequest": [
{
"origin": {
"appKey": "com.myasset.app",
"originId": "5-113-51143-2032"
},
"label": {
"value": "MacBook Pro 15\" 2016"
},
"type": {
"appKey": "com.myasset.app",
"originId": "5-113-51143-2032"
},
"assignee": {
"accountId": "27505:c73cd17f-ae93-4f10-911c-d754d02420be",
"email": "test@example.com"
},
"fields": [
{
"fieldId": "RAM",
"value": "8GB DDR4 2400MHz"
}
]
}
]
}'
Returns a list of all assets
array<string>
integer
integer
Returned if the request is successful. The response may be empty, if no results are found.
1
2
3
curl --request GET \
--url '/rest/assetapi/asset' \
--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
{
"values": [
{
"origin": {
"appKey": "com.myasset.app",
"originId": "5-113-51143-2032"
},
"label": {
"value": "MacBook Pro 15\" 2016"
},
"type": {
"appKey": "com.myasset.app",
"originId": "5-113-51143-2032"
},
"assignee": {
"accountId": "27505:c73cd17f-ae93-4f10-911c-d754d02420be",
"email": "test@example.com"
},
"fields": [
{
"fieldId": "RAM",
"value": "8GB DDR4 2400MHz"
}
]
}
],
"start": 73,
"limit": 122,
"size": 33,
"isLastPage": true
}
Creates a new asset or updates an existing asset. Note that updating an asset will overwrite its properties with the properties defined in the request object.
origin
Requiredlabel
Requiredorigin
assignee
array<fieldValue>
Returned if the resource is updated.
Asset
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
curl --request PUT \
--url '/rest/assetapi/asset' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"origin": {
"appKey": "com.myasset.app",
"originId": "5-113-51143-2032"
},
"label": {
"value": "MacBook Pro 15\" 2016"
},
"type": {
"appKey": "com.myasset.app",
"originId": "5-113-51143-2032"
},
"assignee": {
"accountId": "27505:c73cd17f-ae93-4f10-911c-d754d02420be",
"email": "test@example.com"
},
"fields": [
{
"fieldId": "RAM",
"value": "8GB DDR4 2400MHz"
}
]
}'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
"origin": {
"appKey": "com.myasset.app",
"originId": "5-113-51143-2032"
},
"label": {
"value": "MacBook Pro 15\" 2016"
},
"type": {
"appKey": "com.myasset.app",
"originId": "5-113-51143-2032"
},
"assignee": {
"accountId": "27505:c73cd17f-ae93-4f10-911c-d754d02420be",
"email": "test@example.com"
},
"fields": [
{
"fieldId": "RAM",
"value": "8GB DDR4 2400MHz"
}
]
}
string
Requiredstring
RequiredReturned if the request is successful.
Asset
1
2
3
curl --request GET \
--url '/rest/assetapi/asset/{appKey}/{originId}' \
--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
{
"origin": {
"appKey": "com.myasset.app",
"originId": "5-113-51143-2032"
},
"label": {
"value": "MacBook Pro 15\" 2016"
},
"type": {
"appKey": "com.myasset.app",
"originId": "5-113-51143-2032"
},
"assignee": {
"accountId": "27505:c73cd17f-ae93-4f10-911c-d754d02420be",
"email": "test@example.com"
},
"fields": [
{
"fieldId": "RAM",
"value": "8GB DDR4 2400MHz"
}
]
}
string
Requiredstring
RequiredReturned if the request is successful.
1
2
curl --request DELETE \
--url '/rest/assetapi/asset/{appKey}/{originId}'
Searches assets matching the query
parameter. Only assets with an appKey matching an installed asset management app will be returned. If no asset management apps are installed, falls back to returning all assets.
string
array<string>
array<string>
array<string>
integer
Returns a list of assets ordered by relevance to the query
parameter. The response may be empty, if no matching assets were found.
Asset
1
2
3
curl --request GET \
--url '/rest/assetapi/asset/search' \
--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
{
"origin": {
"appKey": "com.myasset.app",
"originId": "5-113-51143-2032"
},
"label": {
"value": "MacBook Pro 15\" 2016"
},
"type": {
"appKey": "com.myasset.app",
"originId": "5-113-51143-2032"
},
"assignee": {
"accountId": "27505:c73cd17f-ae93-4f10-911c-d754d02420be",
"email": "test@example.com"
},
"fields": [
{
"fieldId": "RAM",
"value": "8GB DDR4 2400MHz"
}
]
}
Rate this page: