curl --request POST \
--url https://api.supernotes.app/v1/sharing/{card_id} \
--header 'Api-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"granted_perms": -1
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"card_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"code": "<string>",
"granted_perms": -1
}
Create a new share code (if user has permission)
curl --request POST \
--url https://api.supernotes.app/v1/sharing/{card_id} \
--header 'Api-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"granted_perms": -1
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"card_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"code": "<string>",
"granted_perms": -1
}
Successful Response
The response is of type object
.