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

<h1>REST API Link Storage Values Create Link Storage Values</h1>
<div class="trix-content"><p>Below you see an example of how to create new Link Storage values. Examples both in JSON and JSONAPI are provided.</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 and your own link storage id instead of "1".</p>
<p></p><h2>JSON:</h2><p></p>
<pre class="card">curl
  -H "Authorization: Bearer [API SECURITY TOKEN]"
  -H "Content-Type: application/json" 
  -H "Accept: application/json"
  -X POST
  data = "{\"key_1\":\"80000\",\"key_2\":\"1234567DEFGHUJ\"}"
  https://staging.myrapidi.com/api/v2/service/[SERVICE ID]/link_storages/1/values
</pre>
<p>The output for this example would be:</p>
<pre class="card">{
  "id": "41",
  "key_1": "80000",
  "key_2": "1234567DEFGHUJ"
}
</pre>
<p></p><h2>JSONAPI:</h2><p></p>
<p>Create Link Storage Values:</p>
<pre class="card">curl
  -H "Authorization: Bearer [API SECURITY TOKEN]"
  -H "Content-Type: application/vnd.api+json" 
  -H "Accept: application/vnd.api+json"
  -X POST
  data = "{\"data\":{\"type\":\"cdb_link_storage_values\",\"attributes\": {\"key_1\":\"80000\",\"key_2\":\"1234567DEFGHUJ\"} }}"
  https://staging.myrapidi.com/api/v2/service/[SERVICE ID]/link_storages/1/values
</pre>
<p>The output for this example would be:</p>


<pre class="card">{
  "data": {
    "id": "41",
    "type": "cdb_link_storage_values",
    "attributes": {
      "key_1": "80000",
      "key_2": "1234567DEFGHUJ"
    }
  }
}
</pre></div>
</template></turbo-stream>

