POST
/
playgrounds
/
{playgroundId}
/
shares
curl --request POST \
  --url https://api.icepanel.io/v1/playgrounds/{playgroundId}/shares \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "expiresAt": "2023-11-07T05:31:56Z",
  "permission": "read"
}'
{
  "playgroundShare": {
    "expiresAt": "2023-11-07T05:31:56Z",
    "permission": "read",
    "createdAt": "2023-11-07T05:31:56Z",
    "createdBy": "user",
    "createdById": "<string>",
    "id": "<string>",
    "playgroundId": "<string>",
    "slug": "<string>"
  }
}

Headers

Authorization
string
required

Path Parameters

playgroundId
string
required

Body

application/json
expiresAt
string
required

Share will be invalidated at this date

permission
enum<string>
required
Available options:
read,
write,
admin

Response

200
application/json
OK
playgroundShare
object
required