curl -X POST "https://api.applivery.io/v1/organizations/{organizationId}/change-owner" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"newOwner": "john-doe"
}'const response = await fetch("https://api.applivery.io/v1/organizations/{organizationId}/change-owner", {
method: "POST",
headers: {
Authorization: "Bearer <YOUR_API_KEY>",
"Content-Type": "application/json",
},
body: JSON.stringify({
"newOwner": "john-doe"
}),
});
const data = await response.json();import requests
response = requests.post(
"https://api.applivery.io/v1/organizations/{organizationId}/change-owner",
headers={"Authorization": "Bearer <YOUR_API_KEY>"},
json={
"newOwner": "john-doe"
},
)
data = response.json()Request
authorization
Authorization: Bearer <token>
application/json
{
"newOwner": "john-doe"
}
Responses
application/json
{
"status": true,
"data": {
"changed": true
}
}
application/json
{
"status": false,
"error": {
"code": 4002,
"message": "No auth token"
}
}