MyRapidi
MyRapidi

Search our Wiki

REST API Link Storage Values Delete Link Storage Values

Below you see an example of how to delete Link Storage Values. Examples both in JSON and JSONAPI are provided.

Please note:To be able to determine which link storage values to delete, you need to run 'Get link storage values' in order to know the ID.

The link storage values id you then place at the end of the url.

NOTE: Remember to substitute the token (after Bearer) and the service id (the "[SERVICE ID]" below) to your own token and service id.

JSON:


curl 
  -H "Authorization: Bearer [API SECURITY TOKEN]"
  -H "Content-Type: application/json" 
  -H "Accept: application/json"
  -X DELETE
  https://staging.myrapidi.com/api/v2/service/[SERVICE ID]/link_storages/1/values/13"

JSONAPI:


curl 
  -H "Authorization: Bearer [API SECURITY TOKEN]"
  -H "Content-Type: application/vnd.api+json" 
  -H "Accept: application/vnd.api+json"
  -X DELETE
  https://staging.myrapidi.com/api/v2/service/[SERVICE ID]/link_storages/1/values/13

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

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


Status: 404 Not Found

...

{"errors":[{"source":{"pointer":"/data/attributes/id"},"detail":"not found - could not find Link Storage Value with id 13"}]}