Skip to main content

Delete Tag from Application

Endpoint: DELETE /api/applications/{id}/tags

Deletes tags from an application.

Path parameters

ParameterDescriptionTypeRequired/ Optional
idThe unique identifier of the application from which the tags are to be deleted.stringRequired.

Request body

The request body should be an array of tag objects.

ParameterDescriptionTypeRequired/ Optional
keyThe tag key to be removed.stringRequired.
valueThe tag value to be removed.stringRequired.

Response

Returns 200 OK, indicating that tags have been deleted from the application.

Examples

Delete a single tag from an application

Request

curl -X 'DELETE' \
'https://<YOUR-SERVER-URL>/api/applications/db66991f-206f-4695-8fe9-f5d53976c9a8/tags' \
-H 'accept: */*' \
-H 'X-Authorization: <TOKEN>' \
-H 'Content-Type: application/json' \
-d '[
{
"key": "dev",
"value": "automation"
}
]'

Response

Returns 200 OK, indicating that the tag has been deleted from the application.

Delete multiple tags from an application

Request

curl -X 'DELETE' \
'https://<YOUR-SERVER-URL>/api/applications/bcd1886f-3e98-4f28-ba49-1174f6482f15/tags' \
-H 'accept: */*' \
-H 'X-Authorization: <TOKEN>' \
-H 'Content-Type: application/json' \
-d '[
{
"key": "dev",
"value": "automation"
},
{
"key": "backend",
"value": "PR"
}
]
'

Response

Returns 200 OK, indicating that the tags have been deleted from the application.