<turbo-stream action="update" target="wiki_3611_3686_subpage_3692_info"><template>
<p>Below you see an example of how to create RTI 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.</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 = "{\"transfer\":\"A_NAV_TEST_CUSTOMERS\",\"source\":\"NAV002\",\"destination\":\"NAV003\",\"source_control\":\"151030\" }"
  https://api.myrapidi.com/api/v2/service/[SERVICE ID]/rtis
</pre>
<p>The output for this example would be:</p>
<pre class="card">{
  "id": "51",
  "transfer": "A_NAV_TEST_CUSTOMERS",
  "source": "NAV002",
  "destination": "NAV003",
  "source_control": 151030
}
</pre>
<p></p><h2>JSONAPI:</h2><p></p>
<p>Update excisting RTIs:</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\":\"rtis\",\"attributes\": 
           {\"transfer\":\"A_NAV_TEST_CUSTOMERS\",\"source\":\"NAV002\", 
            \"destination\":\"NAV003\",\"source_control\":\"151030\"} }}"
  https://api.myrapidi.com/api/v2/service/[SERVICE ID]/rtis
</pre>
<p>The output for this example would be:</p>
<pre class="card">{
  "data":{
    "id": "51",
    "type":"rtis",
    "attributes":{
      "transfer": "A_NAV_TEST_CUSTOMERS",
      "source": "NAV002",
      "destination": "NAV003",
      "source_control": 151030 
    }
  }
}
</pre>
</template></turbo-stream>
<turbo-stream action="prepend" target="flash"><template></template></turbo-stream>
