Skip to content

Turn public sharing on or off

PUT
/v1/dashboard-links/sharing
curl --request PUT \
--url https://beta-api.plune.ai/v1/dashboard-links/sharing \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "enabled": true }'

The project’s «Public sharing» switch (ADR 0061 §4, Р318). Off, every link of the project answers 404; on again, the links that are still active answer again. Owner only; audited.

Media type application/json
object
enabled
required
boolean
Example
{
"enabled": true
}

The switch as it is now

Media type application/json
object
sharing
required
boolean
Example generated
{
"sharing": true
}

Invalid body

Media type application/json
object
error
required
string
Example generated
{
"error": "example"
}

No / invalid token or session

Not the project’s owner

Media type application/json
object
error
required
string
Example generated
{
"error": "example"
}

Rate-limited: the per-route throttle, or the per-minute request limit of the plan an API token counts by (#1442; the body names the plan, #2092). Retry-After carries the seconds until the window rolls over.

Media type application/json
object
error
required
string
Example generated
{
"error": "example"
}
Retry-After
integer

Seconds until the window rolls over