Body Required
-
tenantId string
Maximum length is
21
. -
The name of the organization.
Minimum length is
1
, maximum length is128
. -
description string | null
The description of the organization.
Maximum length is
256
. -
customData object
arbitrary
Additional properties are allowed.
-
isMfaRequired boolean
-
branding object
Additional properties are allowed.
-
createdAt number
POST /api/organizations
curl \
-X POST https://[tenant_id].logto.app/api/organizations \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"tenantId":"string","name":"string","description":"string","customData":{},"isMfaRequired":true,"branding":{"logoUrl":"string","darkLogoUrl":"string","favicon":"string","darkFavicon":"string"},"createdAt":42.0}'
Request examples
{
"tenantId": "string",
"name": "string",
"description": "string",
"customData": {},
"isMfaRequired": true,
"branding": {
"logoUrl": "string",
"darkLogoUrl": "string",
"favicon": "string",
"darkFavicon": "string"
},
"createdAt": 42.0
}
Response examples (201)
{
"tenantId": "string",
"id": "string",
"name": "string",
"description": "string",
"customData": {},
"isMfaRequired": true,
"branding": {
"logoUrl": "string",
"darkLogoUrl": "string",
"favicon": "string",
"darkFavicon": "string"
},
"createdAt": 42.0
}