Update user status
curl --request PUT \
--url https://olive-gateway-a6ba.onrender.com/api/v1/admin/users/{id}/status \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"status": "<string>"
}
'const options = {
method: 'PUT',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({status: '<string>'})
};
fetch('https://olive-gateway-a6ba.onrender.com/api/v1/admin/users/{id}/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://olive-gateway-a6ba.onrender.com/api/v1/admin/users/{id}/status"
payload = { "status": "<string>" }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){}{}{}{}{}Admin
Update user status
Activates, suspends, or deactivates a user account
PUT
/
admin
/
users
/
{id}
/
status
Update user status
curl --request PUT \
--url https://olive-gateway-a6ba.onrender.com/api/v1/admin/users/{id}/status \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"status": "<string>"
}
'const options = {
method: 'PUT',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({status: '<string>'})
};
fetch('https://olive-gateway-a6ba.onrender.com/api/v1/admin/users/{id}/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://olive-gateway-a6ba.onrender.com/api/v1/admin/users/{id}/status"
payload = { "status": "<string>" }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){}{}{}{}{}⌘I