ZITADEL Docs
APIsCore ResourcesV1Instance Objects

SetUpOrg

Setup Organization

Deprecated: use organization service v2 AddOrganization instead.

Create a new organization with an administrative user. If no specific roles are sent for the first user, the user will get the role ORG_OWNER.

POST
/orgs/_setup

Request Body

application/json

org?
roles?roles

specify Org Member Roles for the provided user (default is ORG_OWNER if roles are empty)

human*

oneof field for the user managing the organization

[key: string]?never

Response Body

application/json

application/json

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

Was this page helpful?