POST
/
playgrounds
curl --request POST \
  --url https://api.icepanel.io/v1/playgrounds \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "sharing": true
}'
{
  "playground": {
    "name": "<string>",
    "sharing": true,
    "createdAt": "2023-11-07T05:31:56Z",
    "createdBy": "user",
    "createdById": "<string>",
    "id": "<string>",
    "slug": "<string>",
    "updatedAt": "2023-11-07T05:31:56Z",
    "updatedBy": "user",
    "updatedById": "<string>",
    "userIds": [
      "<string>"
    ],
    "users": {},
    "version": 123
  },
  "playgroundContent": {
    "connections": {},
    "createdAt": "2023-11-07T05:31:56Z",
    "createdBy": "user",
    "createdById": "<string>",
    "id": "<string>",
    "objects": {},
    "updatedAt": "2023-11-07T05:31:56Z",
    "updatedBy": "user",
    "updatedById": "<string>",
    "version": 123
  }
}

Headers

Authorization
string
required

Body

application/json
name
string
required
sharing
boolean

Enable sharing of the playground to other users

Response

200
application/json
OK
playground
object
required
playgroundContent
object
required