Skip to main content

Delete Tags from a Schedule

Endpoint: DELETE /api/scheduler/schedules/{name}/tags

Deletes tags from a schedule.

Path parameters

ParameterDescriptionTypeRequired/ Optional
nameThe name of the schedule 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 schedule.

Examples

Delete a single tag from a schedule

Request

curl -X 'DELETE' \
'https://<YOUR-CLUSTER>/api/scheduler/schedules/assignPRSchedule/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 schedule.

Delete multiple tags from a schedule

Request

curl -X 'DELETE' \
'https://<YOUR-CLUSTER>/api/scheduler/schedules/assignPRSchedule/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 schedule.