Update workspace member role
curl --request PATCH \
--url https://api.memcontext.in/api/workspaces/{workspaceId}/members/{memberId} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{}'const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.memcontext.in/api/workspaces/{workspaceId}/members/{memberId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.memcontext.in/api/workspaces/{workspaceId}/members/{memberId}"
payload = {}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"member": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "<string>",
"role": "owner",
"createdAt": "2023-11-07T05:31:56Z"
}
}Workspaces
Update workspace member role
PATCH
https://api.memcontext.in
/
api
/
workspaces
/
{workspaceId}
/
members
/
{memberId}
Update workspace member role
curl --request PATCH \
--url https://api.memcontext.in/api/workspaces/{workspaceId}/members/{memberId} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{}'const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.memcontext.in/api/workspaces/{workspaceId}/members/{memberId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.memcontext.in/api/workspaces/{workspaceId}/members/{memberId}"
payload = {}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"member": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "<string>",
"role": "owner",
"createdAt": "2023-11-07T05:31:56Z"
}
}Authorizations
ApiKeyAuthCookieAuth
API key created from the MemContext dashboard. Keys are prefixed with mc_, bound to one workspace, and API-key requests cannot override that workspace.
Body
application/json
Available options:
admin, member, viewer 