What switching a feature would do
const url = 'http://localhost:3000/api/v1/features/example/impact?context=organization&state=on';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:3000/api/v1/features/example/impact?context=organization&state=on' \ --header 'Authorization: Bearer <token>'A dry run of PUT /api/v1/features/{id}: the projects it would turn on or off and, for what reaches outside the admin’s view (API keys in use, share links, portals and sites, public BrandHub listings, counting that can’t be made up later, the server’s own warning), what will happen, counted. Nothing changes. Admin there.
Any caller; the scope needed is checked on what it acts on.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”E.g. portals
Query Parameters
Section titled “Query Parameters”Where
The change to weigh (required)
Responses
Section titled “Responses”What it would do
object
object
How many projects it turns on or off
Whether to ask before doing it: what it does reaches outside, or overrides projects’ own choice
The question to ask, e.g. Turn off Portals and sites?
What will happen, a sentence each: the projects it changes, and what reaches outside, counted
The confirming button’s label
Examplegenerated
{ "data": { "changes": 1, "confirm": true, "title": "example", "says": [ "example" ], "action": "example" }}default
Section titled “default”An error
object
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}