Update an invite role
curl --request PATCH \
--url https://beta.creatorcore.co/api/v2/org/invites/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"roleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({roleId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://beta.creatorcore.co/api/v2/org/invites/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/org/invites/{id}"
payload = { "roleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"success": true,
"invite": {
"inviteId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "<string>",
"status": "invited",
"roleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "<string>"
}
}Members and roles
Update an invite role
Changes the role that will be granted when the invite is accepted.
PATCH
/
api
/
v2
/
org
/
invites
/
{id}
Update an invite role
curl --request PATCH \
--url https://beta.creatorcore.co/api/v2/org/invites/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"roleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({roleId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://beta.creatorcore.co/api/v2/org/invites/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/org/invites/{id}"
payload = { "roleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"success": true,
"invite": {
"inviteId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "<string>",
"status": "invited",
"roleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "<string>"
}
}Authorizations
Was this page helpful?