Turn the sign-up restrictions on or off
PATCH
/v1/backend/instance/restrictions
const url = 'https://api.zautha.com/v1/backend/instance/restrictions';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"allowlist":true,"blocklist":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.zautha.com/v1/backend/instance/restrictions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "allowlist": true, "blocklist": true }'Turns the allowlist and the blocklist on or off; changes only the flags sent. The lists themselves are managed with the allowlist and blocklist identifiers. Takes effect at once.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
allowlist
required
null | boolean
blocklist
required
null | boolean
Example generated
{ "allowlist": true, "blocklist": true}Responses
Section titled “Responses”OK
Media typeapplication/json
object
allowlist
required
boolean
blocklist
required
boolean
Example generated
{ "allowlist": true, "blocklist": true}The request is malformed, or a field is not valid (validation_failed names each one in errors).
Media typeapplication/problem+json
object
type
required
string
title
required
string
status
required
integer format: int32
detail
string
code
required
string
trace_id
required
string
reverification
object
level
required
string
after_minutes
required
integer format: int32
tasks
Array<string>
errors
Array<object>
object
field
required
string
code
required
string
message
required
string
Example
{ "code": "bad_request", "reverification": { "level": "first_factor" }, "tasks": [ "setup_mfa" ], "errors": [ { "code": "bad_request" } ]}The secret key is missing or not valid.
Media typeapplication/problem+json
object
type
required
string
title
required
string
status
required
integer format: int32
detail
string
code
required
string
trace_id
required
string
reverification
object
level
required
string
after_minutes
required
integer format: int32
tasks
Array<string>
errors
Array<object>
object
field
required
string
code
required
string
message
required
string
Example
{ "code": "bad_request", "reverification": { "level": "first_factor" }, "tasks": [ "setup_mfa" ], "errors": [ { "code": "bad_request" } ]}Unsupported Media Type.
Media typeapplication/problem+json
object
type
required
string
title
required
string
status
required
integer format: int32
detail
string
code
required
string
trace_id
required
string
reverification
object
level
required
string
after_minutes
required
integer format: int32
tasks
Array<string>
errors
Array<object>
object
field
required
string
code
required
string
message
required
string
Example
{ "code": "bad_request", "reverification": { "level": "first_factor" }, "tasks": [ "setup_mfa" ], "errors": [ { "code": "bad_request" } ]}Too many requests with this secret key. Retry after the seconds in Retry-After.
Media typeapplication/problem+json
object
type
required
string
title
required
string
status
required
integer format: int32
detail
string
code
required
string
trace_id
required
string
reverification
object
level
required
string
after_minutes
required
integer format: int32
tasks
Array<string>
errors
Array<object>
object
field
required
string
code
required
string
message
required
string
Example
{ "code": "bad_request", "reverification": { "level": "first_factor" }, "tasks": [ "setup_mfa" ], "errors": [ { "code": "bad_request" } ]}Headers
Section titled “Headers”Retry-After
integer format: int32
Seconds to wait before retrying.
The service is temporarily unavailable. Try again shortly.
Media typeapplication/problem+json
object
type
required
string
title
required
string
status
required
integer format: int32
detail
string
code
required
string
trace_id
required
string
reverification
object
level
required
string
after_minutes
required
integer format: int32
tasks
Array<string>
errors
Array<object>
object
field
required
string
code
required
string
message
required
string
Example
{ "code": "bad_request", "reverification": { "level": "first_factor" }, "tasks": [ "setup_mfa" ], "errors": [ { "code": "bad_request" } ]}