MyRapidi
MyRapidi

Search our Wiki

REST API Schedule Tags Delete Schedule Tags

Below you see an example of how to delete specific Schedule Tags on a specific Schedule. Examples both in JSON and JSONAPI are provided.

NOTE: Remember to substitute the token (after Bearer) and the service id (the "[SERVICE ID]" below) to your own token and service id and remember also to replace the Schedule Id (171) with your own Id.

JSON:

curl
  -H "Authorization: Bearer [API SECURITY TOKEN]"
  -H "Content-Type: application/json" 
  -H "Accept: application/json"
  -X DELETE
  https://api.myrapidi.com/api/v2/service/[SERVICE ID]/schedules/171/tags/103

JSONAPI:

Delete specific Schedule Tags on a specific Schedule:

curl
  -H "Authorization: Bearer [API SECURITY TOKEN]"
  -H "Content-Type: application/vnd.api+json" 
  -H "Accept: application/vnd.api+json"
  -X DELETE
  https://api.myrapidi.com/api/v2/service/[SERVICE ID]/schedules/171/tags/103

The output for both JSON and JSONAPI on successful deletion is that the response code Status: 204 No Content is returned.

For both JSON and JSONAPI the output when your deletion has failed (ex. schedule has already been deleted) the response code Status: 404 Not Found is returned + an error message.

Example error message if Schedule Tag 103 is not found for schedule T_A4_CUST_NAV356001:

{"errors":
  [{
    "source": {"pointer":"/data/attributes/id"},
    "detail":"not found - could not find Schedule Tag with id 103 for schedule T_A4_CUST_NAV356001"
  }]
}