Skip to main content
POST
/
sources
/
{id}
/
deactivate
Deactivate Tenant Source
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/sources/{id}/deactivate \
  --header 'Authorization: Bearer <token>'
{
  "message": "Source deactivated 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/deactivate', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({})
});

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"

Response

Source deactivated successfully

message
string
Example:

"Source deactivated successfully"