Transfer a trigger
POST
/triggers/{id}/transfer
const url = 'https://localhost:3000/api/v1/triggers/example/transfer';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"target_id":"550e8400-e29b-41d4-a716-446655440000","target_type":"tenant"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://localhost:3000/api/v1/triggers/example/transfer \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "target_id": "550e8400-e29b-41d4-a716-446655440000", "target_type": "tenant" }'Transfers a trigger between account and tenant
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Trigger ID (UUID)
Request Body
Section titled “Request Body”Transfer details
Media typeapplication/json
object
target_id
required
string format: uuid
Example
550e8400-e29b-41d4-a716-446655440000target_type
required
“account” or “tenant”
string
Example
tenantResponses
Section titled “Responses”Transfer successful
Media typeapplication/json
object
message
string
success
required
boolean
Example
{ "message": "Operation completed successfully", "success": true}Invalid request
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Unauthorized
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Insufficient permissions
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Trigger not found
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Internal error
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}