Websites
Update a website
POST
/api/websites/{websiteId}Updates a website's name, domain, sharing settings, or recording configuration.
Headers
| Name | Type | Description |
|---|---|---|
| Authorizationrequired | string | Authentication credentials, e.g. Bearer <token>. |
Path parameters
| Name | Type | Description |
|---|---|---|
| websiteIdrequired | string | Website ID. |
Request body
| Name | Type | Description |
|---|---|---|
| domain | string | Domain name associated with the resource. |
| name | string | Display name of the resource. |
| replayConfig | anyOf | Session replay and heatmap recording configuration. |
| shareId | string | null | Identifier used to access a shared resource. |
Example request
Responses
200Website updated.
| Name | Type | Description |
|---|---|---|
| createdAtrequired | string | null | Date and time the record was created. |
| createdByrequired | string | null | ID of the user who created the resource. |
| deletedAtrequired | string | null | Date and time the record was deleted, if applicable. |
| domainrequired | string | null | Domain name associated with the resource. |
| idrequired | string | Unique identifier of the resource. |
| namerequired | string | Display name of the resource. |
| recorderEnabledrequired | boolean | Whether recording is enabled for the website. |
| replayConfigrequired | anyOf | Session replay and heatmap recording configuration. |
| resetAtrequired | string | null | Date and time the website analytics were last reset. |
| shareIdrequired | string | null | Identifier used to access a shared resource. |
| teamIdrequired | string | null | ID of the associated team. |
| updatedAtrequired | string | null | Date and time the record was last updated. |
| user | object | |
| userIdrequired | string | null | ID of the associated user. |
200 example
400Bad request.
| Name | Type | Description |
|---|---|---|
| errorrequired | object | Error details returned when the operation fails. |
400 example
401Unauthorized.
| Name | Type | Description |
|---|---|---|
| errorrequired | object | Error details returned when the operation fails. |
401 example
500Server error.
| Name | Type | Description |
|---|---|---|
| errorrequired | object | Error details returned when the operation fails. |
500 example
Code samples
cURL