Skip to main content
PUT
/
sources
/
{id}
Update Tenant Source
curl --request PUT \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/sources/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "settings": {
    "delimiter": ","
  },
  "replacements": {
    "old": "new"
  }
}'
{
  "message": "Tenant source updated successfully"
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Code Examples

const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/sources/example-id', {
  method: 'PUT',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "settings": {
      "delimiter": ","
    },
    "replacements": {
      "old": "new"
    }
  })
});

const data = await response.json();
console.log(data);

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

id
string
required

Tenant source ID

Example:

"ts-1"

Body

application/json
settings
object
Example:
{ "delimiter": "," }
replacements
object
Example:
{ "old": "new" }

Response

Tenant source updated successfully

message
string
Example:

"Tenant source updated successfully"