Update a Tenant

You can rename tenants with a PUT request.

Update Tenant Request
cURL
PUT- /workspaces/:workspaceSlug/databases/:databaseName/tenants/:tenantId
curl 'https://api.thenile.dev/workspaces/<string>/databases/<string>/tenants/<string>' \
--header 'Authorization: Bearer <string>' \
--data '{
  "name": "<string>"
}'

The response includes the generated tenant id and the name you provided.

Update Tenant Response
200
{
  "id": "018b61ec-af9e-77e5-b27f-77239cd4a0bc",
  "name": "VIP Customer"
}