Below you see an example of how to update Link Storage values. 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 your own link storage id instead of "1" and your own link storage values id (the below "13").
curl -H "Authorization: Bearer [API SECURITY TOKEN]" -H "Content-Type: application/json" -H "Accept: application/json" -X PATCH data = "{\"key_1\":\"60000\",\"key_2\":\"UYUyyy686876ABCD\"}" https://staging.myrapidi.com/api/v2/service/[SERVICE ID]/link_storages/1/values/13
The output for this example would be:
{ "id": "13", "key_1": "60000", "key_2": "UYUyyy686876ABCD" }
Update Link Storage Values:
curl -H "Authorization: Bearer [API SECURITY TOKEN]" -H "Content-Type: application/vnd.api+json" -H "Accept: application/vnd.api+json" -X PATCH data = "{\"data\":{\"id\":\"13\",\"type\":\"cdb_link_storage_values\",\"attributes\": {\"key_1\":\"60000\",\"key_2\":\"UYUyyy686876ABCD\"} }}" https://staging.myrapidi.com/api/v2/service/[SERVICE ID]/link_storages/1/values/13
The output for this example would be:
{ "data": { "id": "13", "type": "cdb_link_storage_values", "attributes": { "key_1": "60000", "key_2": "UYUyyy686876ABCD" } } }