Websites

Transfer website ownership

POST/api/websites/{websiteId}/transfer

Transfers the specified website to another user or team after checking permission for the destination.

Try it

POST/api/websites/{websiteId}/transfer
Authorization

Credentials stay in this browser tab and are never sent anywhere except the API.

Path parameters
Response

Send a request to see the response.

Headers

NameTypeDescription
AuthorizationrequiredstringToken returned by POST /api/auth/login, or an API key (`umami_…`) created under Settings → API keys (self-hosted only). Bearer <token>.

Path parameters

NameTypeDescription
websiteIdrequiredstringID of the website.

Request body

NameTypeDescription
teamIdstringID of the associated team.
userIdstringID of the associated user.
Example request

Responses

200The operation completed successfully.
NameTypeDescription
createdAtrequiredstringDate and time the record was created.
createdByrequiredstringID of the user who created the resource.
deletedAtrequiredstringDate and time the record was deleted, if applicable.
domainrequiredstringDomain name associated with the resource.
idrequiredstringUnique identifier of the resource.
namerequiredstringDisplay name of the resource.
recorderEnabledrequiredbooleanWhether recording is enabled for the website.
replayConfigrequiredanyOfSession replay and heatmap recording configuration.
resetAtrequiredstringDate and time the website analytics were last reset.
teamIdrequiredstringID of the associated team.
updatedAtrequiredstringDate and time the record was last updated.
userIdrequiredstringID of the associated user.
200 example
400Bad request.
NameTypeDescription
errorrequiredobjectError details returned when the operation fails.
400 example
401Unauthorized.
NameTypeDescription
errorrequiredobjectError details returned when the operation fails.
401 example

Code samples

cURL