Reset a setting
DELETE
/api/v1/settings/{key}
const url = 'http://localhost:3000/api/v1/settings/example?context=organization';const options = {method: 'DELETE', 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 DELETE \ --url 'http://localhost:3000/api/v1/settings/example?context=organization' \ --header 'Authorization: Bearer <token>'Forget this place’s own value, so the one above it (or the server’s) applies again.
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”key
required
string
E.g. email
Query Parameters
Section titled “Query Parameters”context
string
Where
Responses
Section titled “Responses”The setting, as it now applies
Media typeapplication/json
object
data
required
object
key
required
string
label
required
string
context
required
string
value
required
As it applies here; secret properties are null
object
key
additional properties
secrets
required
Whether each secret property is set
object
key
additional properties
boolean
source
required
The narrowest place any of it comes from
string
sources
required
Where each property comes from
object
key
additional properties
string
own
required
Set here: resetting it lets what is above apply
boolean
Example
{ "data": { "key": "email", "context": "organization", "source": "project", "sources": { "additionalProperty": "project" } }}default
Section titled “default”An error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}