Grant another organization read-only access to this vault. Only the vault owner can create shares. Idempotent: re-sharing to the same org updates the existing share.
curl --request POST \
--url https://api.case.dev/vault/{id}/shares \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"target_org_id": "<string>",
"permission": "read",
"expires_at": "2023-11-07T05:31:56Z"
}
'API key starting with sk_case_
Vault ID
Share created or updated successfully
Was this page helpful?
curl --request POST \
--url https://api.case.dev/vault/{id}/shares \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"target_org_id": "<string>",
"permission": "read",
"expires_at": "2023-11-07T05:31:56Z"
}
'