---
title: "REST API RTI Update RTI"
description: "REST API RTI Update RTI"
keywords: "REST API RTI Update RTI"
url: "https://myrapidi.com/wiki/rest_api_rti_update_rti"
locale: "en"
published: "2018-03-01T10:16:21Z"
modified: "2023-04-06T10:03:01Z"
---

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.

## JSON:

```
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
}
```

## JSONAPI:

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 
    }
  }
}
```
