ZITADEL Docs
APIsCore ResourcesV1Instance Objects

SetRestrictions

Sets restrictions

PUT
/restrictions

Request Body

application/json

disallowPublicOrgRegistration?boolean
allowedLanguages?

We have to wrap the languages list into a message so we can serialize empty lists.

[key: string]?never

Response Body

application/json

application/json

curl -X PUT "https://loading/restrictions" \  -H "Content-Type: application/json" \  -d '{}'
{
  "details": {
    "sequence": 0,
    "creationDate": "1s",
    "changeDate": "1s",
    "resourceOwner": "string"
  }
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?