Skip to content

Reset a setting

DELETE
/api/v1/settings/{key}
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.

key
required
string

E.g. email

context
string
default: organization
Allowed values: organization project

Where

The setting, as it now applies

Media typeapplication/json
object
data
required
object
key
required
string
Allowed values: email branding
label
required
string
context
required
string
Allowed values: organization project
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
Allowed values: project organization environment default
sources
required

Where each property comes from

object
key
additional properties
string
Allowed values: project organization environment default
own
required

Set here: resetting it lets what is above apply

boolean
Example
{
"data": {
"key": "email",
"context": "organization",
"source": "project",
"sources": {
"additionalProperty": "project"
}
}
}

An error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"detail": "example"
}
}