Change workspace subscription plan
curl --request POST \
--url https://api.memcontext.in/api/subscription/change-plan \
--header 'Content-Type: application/json' \
--cookie better-auth.session_token= \
--data '
{
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {cookie: 'better-auth.session_token=', 'Content-Type': 'application/json'},
body: JSON.stringify({workspaceId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://api.memcontext.in/api/subscription/change-plan', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.memcontext.in/api/subscription/change-plan"
payload = { "workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
headers = {
"cookie": "better-auth.session_token=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"message": "<string>"
}Subscription
Change workspace subscription plan
POST
https://api.memcontext.in
/
api
/
subscription
/
change-plan
Change workspace subscription plan
curl --request POST \
--url https://api.memcontext.in/api/subscription/change-plan \
--header 'Content-Type: application/json' \
--cookie better-auth.session_token= \
--data '
{
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {cookie: 'better-auth.session_token=', 'Content-Type': 'application/json'},
body: JSON.stringify({workspaceId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://api.memcontext.in/api/subscription/change-plan', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.memcontext.in/api/subscription/change-plan"
payload = { "workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
headers = {
"cookie": "better-auth.session_token=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"message": "<string>"
}Authorizations
Dashboard session cookie used for workspace/company endpoints.
Body
application/json
