<turbo-stream action="update" target="wiki_card"><template>

<h1>REST API Link Storage Values Delete Link Storage Values</h1>
<div class="trix-content"><p>Below you see an example of how to delete Link Storage Values. Examples both in JSON and JSONAPI are provided.</p>
<p><strong>Please note:</strong>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.</p>
<p>The link storage values id you then place at the end of the url.</p>
<p>NOTE: Remember to substitute the token (after Bearer) and the service id (the "[SERVICE ID]" below) to your own token and service id.</p>
<p></p><h2>JSON:</h2><p></p>
<br>
<pre class="card">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"
</pre>
<p></p><h2>JSONAPI:</h2><p></p>
<br>
<pre class="card">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
</pre>
<p>The output for both JSON and JSONAPI on successful deletion the response code <code>Status: 204 No Content</code> is returned.</p>
<p>For both JSON and JSONAPI the output when your deletion has failed (ex. link storage values have already been deleted) the response code <code>Status: 404 Not Found</code> is returned + an error message.</p>
<br>
<pre class="card">Status: 404 Not Found

...

{"errors":[{"source":{"pointer":"/data/attributes/id"},"detail":"not found - could not find Link Storage Value with id 13"}]}
</pre></div>
</template></turbo-stream>

