Update a tenant
Updates a tenant's name, default owner, or report preferences. Only include the fields you want to change — omitted fields are left unchanged.
Set defaultOwnerId to null to clear the default owner. Set defaultCalendarContext to null to clear calendar preferences. Set defaultValueFormatContext to null to clear display-format defaults.
Calendar preferences accept weekStart values of 0 (Sunday), 1 (Monday), or 6 (Saturday), and tz must be a valid IANA timezone identifier (e.g. America/New_York).
Authorization
BearerAuth A project-scoped access token. Generate one via the Token API with your project ID and project secret.
In: header
Path Parameters
The tenant's ID (either auto-generated or a custom ID you provided at creation time).
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X put "https://semaphor.cloud/api/management/v1/tenants/string" \ -H "Content-Type: application/json" \ -d '{}'{
"message": "string",
"tenant": {
"id": "string",
"name": "string",
"organizationId": "string",
"organization": {
"id": "string",
"name": "string"
},
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"defaultOwnerId": "string",
"defaultOwner": {
"name": "string",
"email": "user@example.com"
},
"defaultCalendarContext": {
"tz": "string",
"weekStart": 0
},
"defaultValueFormatContext": {
"locale": "de-DE",
"defaultCurrency": "EUR",
"dateStyle": "short",
"dateTime": {
"dateStyle": "short",
"timeStyle": "short"
}
},
"userCount": 0
}
}{
"error": "string",
"details": "string",
"code": "string",
"fieldErrors": [
{
"field": "string",
"message": "string"
}
]
}{
"error": "string",
"details": "string",
"code": "string",
"fieldErrors": [
{
"field": "string",
"message": "string"
}
]
}{
"error": "string",
"details": "string",
"code": "string",
"fieldErrors": [
{
"field": "string",
"message": "string"
}
]
}{
"error": "string",
"details": "string",
"code": "string",
"fieldErrors": [
{
"field": "string",
"message": "string"
}
]
}{
"error": "string",
"details": "string",
"code": "string",
"fieldErrors": [
{
"field": "string",
"message": "string"
}
]
}{
"error": "string",
"details": "string",
"code": "string",
"fieldErrors": [
{
"field": "string",
"message": "string"
}
]
}