Skip to main content

Update a Tenant

Update a tenant given its tenantId.

caution

This endpoint has been deprecated and will be phased out at the end of 2023. Please update any existing usages of it to use the Update Object endpoint instead.

Endpoint

PUT /v1/tenants/:tenantId

Parameters

ParameterDescriptionTypeRequired
tenantIdThe id of the tenant to update. Note that id cannot be changed.URL paramyes
nameAn optional displayable name for this tenant.JSON bodyno

Request

curl "https://api.warrant.dev/v1/tenants/d6ed6474-784e-407e-a1ea-42a91d4c52b9" \
-X POST \
-H "Authorization: ApiKey YOUR_KEY" \
--data-raw \
'{"name": "New name"}'

Response

{
"tenantId": "d6ed6474-784e-407e-a1ea-42a91d4c52b9",
"name": "New name"
}