Add Tag to Asset
POST
/api/v2/assets/:asset_id/relationships/asset_tags
Path Parameters
Name
Type
Description
asset_id
string
Asset UUID
Headers
Name
Type
Description
Content-Type
string
application/vnd.api+json
Request
{
"data": [
{
"type": "asset_tags",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
},
{
"type": "asset_tags",
"id": "aaa85f64-5717-4562-b3fc-2c963f66afa6"
}
]
}
Attributes
Name
Type
Description
id
strings
Tag UUID
type
strings
asset_tags
Response
204 No Content
Example
curl -i --request POST \
--url https://environment.monterosa.cloud/api/v2/assets/00b76e4e-8818-4ae6-91fc-a484c1a6840f/relationships/asset_tags \
--header 'Authorization: Bearer rJURvA6XuuHxG5RHauqR1yy64JQcTfGu' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": [
{
"type": "asset_tags",
"id": "5b3ed36e-d727-40de-b49b-b47cb1175861"
}
]
}'
POST
/api/v2/assets/:asset_id/relationships/asset_tags
Path Parameters
Name
Type
Description
asset_id
string
Asset UUID
Headers
Name
Type
Description
Authorization
string
Bearer token
Content-Type
string
application/vnd.api+json
Request Body
Name
Type
Description
id
string
Tag UUID
type
string
asset_tags
Response
204 No Content
Example
curl -i --request POST \
--url https://environment.monterosa.cloud/api/v2/assets/00b76e4e-8818-4ae6-91fc-a484c1a6840f/relationships/asset_tags \
--header 'Authorization: Bearer rJURvA6XuuHxG5RHauqR1yy64JQcTfGu' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": [
{
"type": "asset_tags",
"id": "5b3ed36e-d727-40de-b49b-b47cb1175861"
}
]
}'
Last updated
Was this helpful?