Update folder permission
curl --request PATCH \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/document_folders/{document_folder_id}/permissions/{id} \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"access": "<string>"
}
'const options = {
method: 'PATCH',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({access: '<string>'})
};
fetch('https://app.yampi.ai/api/v1/accounts/{account_id}/document_folders/{document_folder_id}/permissions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.yampi.ai/api/v1/accounts/{account_id}/document_folders/{document_folder_id}/permissions/{id}"
payload = { "access": "<string>" }
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{}{}Document Folders
Update folder permission
Change access level on a shared document folder.
PATCH
/
api
/
v1
/
accounts
/
{account_id}
/
document_folders
/
{document_folder_id}
/
permissions
/
{id}
Update folder permission
curl --request PATCH \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/document_folders/{document_folder_id}/permissions/{id} \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"access": "<string>"
}
'const options = {
method: 'PATCH',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({access: '<string>'})
};
fetch('https://app.yampi.ai/api/v1/accounts/{account_id}/document_folders/{document_folder_id}/permissions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.yampi.ai/api/v1/accounts/{account_id}/document_folders/{document_folder_id}/permissions/{id}"
payload = { "access": "<string>" }
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{}{}