---
title: "Convert a temporary domain to a registered domain"
method: POST
path: "/Domain/convert_temporary_to_registered"
tags: ["Domain", "Temporary Domains"]
---

# Convert a temporary domain to a registered domain

`POST /Domain/convert_temporary_to_registered`

This function converts a temporary domain into a registered domain and moves its document root files
to the new document root location.

**Note:**

* For more information about temporary domains, read our [Temporary Domains](https://go.cpanel.net/cp-temporary-domain) documentation.
* You cannot use this function to convert a cPanel account's main domain.

## Query parameters

- `domain` string, domain, required
- `registered` string, domain, required
- `docroot` string

## Response `200`

Request was successful.

- object
  - `apiversion` integer — The version of the API.
  - `func` string — The name of the method called.
  - `module` string — The name of the module called.
  - `result` object
    - `data` object
      - `message` string — A message describing the result of the conversion.
    - `errors` string[], nullable — List of errors if the API failed.
    - `messages` string[], nullable — List of messages generated by the API.
    - `status` 0 | 1 — - 1 - Success. - 0 - Failed: Check the errors field for more details.
    - `warnings` string[], nullable — List of warnings generated by the API.

---

[API](https://skmtc.net/cpanel/apis/cpanel-uapi.md) · [All operations](https://skmtc.net/cpanel/apis/cpanel-uapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cpanel/cpanel-uapi/revisions/632e2f8e6d04/schema)
