Hi Coda Community!
I am working on the simple client for Coda API and have an issue with using “deletePermission” endpoint.
I always receive:
{
"message" => "Failed to delete the specified permission.",
"statusCode" => 400,
"statusMessage" => "Bad Request"
}
Scenario:
- Create some test document under my Coda account.
- Shared it with other email.
- Check permissions:
get("/docs/vDlXMWJqRU/acl/permissions")
{
"href" => "https://coda.io/apis/v1/docs/vDlXMWJqRU/acls?pageToken=eyJsaW1pdCI6MTAwLCJvZmZzZXQiOjB9",
"items" => [
[0] {
"access" => "write",
"id" => "50e032a3-0150-45e4-90c3-5ba6246c850d",
"principal" => {
"email" => "email@gmail.com",
"type" => "email"
}
},
}
]
}
- Failed to delete permissions:
delete("/docs/vDlXMWJqRU/acl/permissions/50e032a3-0150-45e4-90c3-5ba6246c850d")
I also successfully added permissions with “addPermission” call, but then couldn’t delete them with the same error.