Skip to Content
ZITADEL Docs
APIsCore ResourcesV2Instance

Update Instance

Updates instance's name in the current context or by its ID. By default the instance will be determined by the context of the request, e.g. the host header. You can optionally pass an InstanceID to update a specific instance. This requires additional permissions.

Required permissions:

  • iam.write
  • system.instance.write (if InstanceID is set)
POST
/zitadel.instance.v2.InstanceService/UpdateInstance

Header Parameters

Connect-Protocol-Version*1

Define the version of the Connect protocol

Value in1
Connect-Timeout-Ms?Connect-Timeout-Ms

Define the timeout, in ms

Request Body

application/json
  1. body
instanceId?instance_id

InstanceID is the unique ID of the instance to be updated. If not set, the instance in the current context (e.g. identified by the host header) will be changed. If an ID is set, the caller must have additional permissions.

instanceName*instance_name

InstanceName is the new name of the instance to be set.

Response Body

Success

application/json
  1. response
changeDate?change_date

ChangeDate is the timestamp when the instance was last changed. In case the instance was not changed during the call, the previous change date is returned.

Formatdate-time
Example Request
curl -X POST 'https://example.com/zitadel.instance.v2.InstanceService/UpdateInstance' \  -H 'Connect-Protocol-Version: 1' \  -H 'Content-Type: application/json' \  -d '{  "instanceName": "string"}'
Example Response
{  "changeDate": "2023-01-15T01:30:15.01Z"}

Was this page helpful?