Skip to Content
Docs

Change a resource's sharing switches

PUT
/api/resource_settings

Needs manage_settings (owner).

Body: {"resource_type", "resource_id", "settings": {key: bool}}. An unknown key or a non-boolean value is a 400. Returns the GET shape.

Not available to personal access tokens; call it from a signed-in session.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Response Body

Success

Example Request
curl -X PUT 'http://localhost:7091/api/resource_settings'
Example Response200
Empty