go
rr, err := client.Tenancy.Create(context.Background(), &v1.TenantCreateRequest{
Id: "",
Name: ""
})client.tenancy.create({
id: "",
name: ""
}).then((response) => {
// handle response
})curl --location --request POST 'http://localhost:3476/v1/tenants/create' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "",
"name": ""
}'{
"tenant": {
"id": "<string>",
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}Tenancy Service
Create Tenant
POST
/
v1
/
tenants
/
create
go
rr, err := client.Tenancy.Create(context.Background(), &v1.TenantCreateRequest{
Id: "",
Name: ""
})client.tenancy.create({
id: "",
name: ""
}).then((response) => {
// handle response
})curl --location --request POST 'http://localhost:3476/v1/tenants/create' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "",
"name": ""
}'{
"tenant": {
"id": "<string>",
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}Permify Multi Tenancy support you can create custom schemas for tenants and manage them in a single place. You can create a tenant with following API.
We have a pre-inserted tenant - t1 - by default for the ones that don’t use multi-tenancy.
Body
application/json
TenantCreateRequest is the message used for the request to create a tenant.
Response
A successful response.
TenantCreateResponse is the message returned from the request to create a tenant.
Tenant represents a tenant with an id, a name, and a timestamp indicating when it was created.
Show child attributes
Show child attributes