Turn public sharing on or off
PUT
/v1/dashboard-links/sharing
const url = 'https://beta-api.plune.ai/v1/dashboard-links/sharing';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"enabled":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
enabled
required
boolean
Example
{ "enabled": true}Responses
Section titled “ Responses ”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"}Headers
Section titled “Headers ” Retry-After
integer
Seconds until the window rolls over