Change a member's role.
curl --request POST \
--url https://tryno.io/api/communities/{handle}/members/{userId}/role \
--header 'Content-Type: application/json' \
--cookie __session= \
--data '
{
"role": "<string>"
}
'const options = {
method: 'POST',
headers: {cookie: '__session=', 'Content-Type': 'application/json'},
body: JSON.stringify({role: '<string>'})
};
fetch('https://tryno.io/api/communities/{handle}/members/{userId}/role', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://tryno.io/api/communities/{handle}/members/{userId}/role"
payload = { "role": "<string>" }
headers = {
"cookie": "__session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}communities
Change a member's role.
POST
/
communities
/
{handle}
/
members
/
{userId}
/
role
Change a member's role.
curl --request POST \
--url https://tryno.io/api/communities/{handle}/members/{userId}/role \
--header 'Content-Type: application/json' \
--cookie __session= \
--data '
{
"role": "<string>"
}
'const options = {
method: 'POST',
headers: {cookie: '__session=', 'Content-Type': 'application/json'},
body: JSON.stringify({role: '<string>'})
};
fetch('https://tryno.io/api/communities/{handle}/members/{userId}/role', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://tryno.io/api/communities/{handle}/members/{userId}/role"
payload = { "role": "<string>" }
headers = {
"cookie": "__session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Autorizações
Clerk-managed session cookie (or the first-party tryno_session bridge cookie). Sent automatically by browsers on same-origin requests.
Corpo
application/json
Resposta
Success.
The response is of type object.

