Change a setting
PATCH
/api/v1/settings/{key}
const url = 'http://localhost:3000/api/v1/settings/example?context=organization';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"additionalProperty":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url 'http://localhost:3000/api/v1/settings/example?context=organization' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "additionalProperty": "example" }'Starts from what applies now. A blank secret keeps the stored one; null clears it. Admin on that place.
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
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
Properties to change; a blank secret keeps it, null clears it
object
key
additional properties
Examplegenerated
{ "additionalProperty": "example"}Responses
Section titled “Responses”The setting
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" }}