Below you see an example of how to update existing RTI 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.
curl
-H "Authorization: Bearer [API SECURITY TOKEN]"
-H "Content-Type: application/json"
-H "Accept: application/json"
-X PATCH
data = {\"source_control\":\"151026\"}
https://api.myrapidi.com/api/v2/service/[SERVICE ID]/rtis/3
The out-put for this example would be:
{
"id": "3",
"transfer": "A_NAVSQL_TEST_DATES",
"source": "NAVSQL001",
"destination": "NAVSQL002",
"source_control": 151026
}
Update excisting RTIs:
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\":\"3\",\"type\":\"rtis\",\"attributes\":
{\"transfer\":\"A_NAVSQL_TEST_DATES\",\"source\":\"NAVSQL001\",
\"destination\":\"NAVSQL002\",\"source_control\":\"151026\"} }}"
https://api.myrapidi.com/api/v2/service/[SERVICE ID]/rtis/3
The output for this example would be:
{
"data":{
"id": "3",
"type":"rtis",
"attributes":{
"transfer": "A_NAVSQL_TEST_DATES",
"source": "NAVSQL001",
"destination": "NAVSQL002",
"source_control": 151026
}
}
}