---
title: "rename_application"
description: "Generated reference for the management action rename_application: its description, access metadata, payload contract, and registration status."
slug: /reference/actions/rename-application
order: 85
visibility: public
redirects_from: []
---

# rename\_application

Generated automatically from the [published contract sources](/cloud/reference/about/#contract-sources).

A script calls this action over HTTPS at `POST https://tzcloud.dev.turnzero.ai/v1/rename_application`, with a bearer credential and the action's payload as the JSON body. An MCP connection lists this action as the tool `tzcloud_rename_application`.

OAuth access tokens and minted tokens, including the turnzero command's computer token, are bearer credentials. The action determines which kinds, scopes and grants it accepts ([Sign-in, sessions, and tokens](/cloud/concepts/sign-in-sessions-and-tokens/)).

**Build metadata:** Registered in this build. Registration describes the default dispatcher in this build. It does not guarantee that a caller has the required credential or grant, that a tool is listed for that connection, or that the required service is configured.

## Contract description

Rename an application: pass `application` and the new `name`\. The readable name and both platform hostnames change\. Read the new platform addresses in the outcome\. The old platform addresses stop working\. Renaming keeps existing sessions valid\. Browser users sign in again on the new address because their cookie stays on the old address\. An existing session token sent another way, such as a native app's bearer token, keeps working\. To end existing sessions, use `revoke_app_sign_in_keys`\. Passkeys registered on those addresses stop working\. Tell the account's owner this before you call\. The call creates a pending action and returns the approval URL\. A person approves it in the browser\. Read the outcome with `read_approval_status`\. A name another live application of your account uses is refused `name_taken`, and the current name `invalid_request`\.

## More about this action

Use a lowercase slug such as `todo-api` for `name`\. It has 1 to 40 characters, starts with a lowercase letter, and uses only lowercase letters, digits, and hyphens\.

The outcome gives the old and new platform hostnames for production and development\. Passkeys registered on a custom domain that serves as the sign\-in address keep working\. Old invitation links stop responding\. Their invitations can still be redeemed at the new address\. Revoke an invitation you no longer want to accept\.

Read `renamed` in the completed approval result\. `renamed: false` means it changed nothing\. Check `read_status` before deciding whether to request a new rename\.

Pass `request_id` to make a repeat safe\. While the earlier pending action is still live \(requested, approved, or executing\), a call with the same `request_id` from the same account returns that action and creates no second one\. Once the action has completed, failed, been declined, or expired, the same `request_id` starts a new one\.

## Access and action metadata

```json
{
  "name": "rename_application",
  "resource": "application",
  "tier": "destructive",
  "surface": "tzcloud",
  "addresses": [
    "tzcloud"
  ],
  "product": "cloud",
  "summary": "Rename one application through browser approval. Its name and its production and development hostnames on the platform change. The approval describes which addresses stop working and what happens to end users. Passkeys registered on a custom domain that serves as the sign-in address keep working.",
  "annotations": {
    "readOnlyHint": false,
    "destructiveHint": true,
    "openWorldHint": true
  }
}
```

## MCP catalog entry

```json
{
  "name": "rename_application",
  "title": "Rename application",
  "tier": "destructive",
  "summary": "Rename an application: pass `application` and the new `name`. The readable name and both platform hostnames change. Read the new platform addresses in the outcome. The old platform addresses stop working. Renaming keeps existing sessions valid. Browser users sign in again on the new address because their cookie stays on the old address. An existing session token sent another way, such as a native app's bearer token, keeps working. To end existing sessions, use `revoke_app_sign_in_keys`. Passkeys registered on those addresses stop working. Tell the account's owner this before you call. The call creates a pending action and returns the approval URL. A person approves it in the browser. Read the outcome with `read_approval_status`. A name another live application of your account uses is refused `name_taken`, and the current name `invalid_request`.",
  "owners": [
    "SVC-L0-07",
    "MAPI-05"
  ],
  "scenario": "CHI-L0-10"
}
```

## request

| JSON pointer | Description and constraints |
|---|---|
| "" \(root\) | Type: object<br>Required fields: \["application","name"\] |
| /<wbr>properties/<wbr>application | Your account's application `id` from `list_applications`, not its name or label\.<br><br>Type: string |
| /<wbr>properties/<wbr>name | A lowercase slug such as `todo-api`\. It becomes the readable part of the new platform hostnames\. The previous platform hostnames stop working\. A name another live application of the account carries refuses `name_taken`; the current name refuses `invalid_request`\.<br><br>Type: string<br>Pattern: ^\[a\-z\]\[a\-z0\-9\-\]\{0,39\}$ |
| /<wbr>properties/<wbr>request\_id | Any string you choose\. A repeat from the same account while that pending action is live returns it again, creating no second one\. Omitted, every call creates a new one\.<br><br>Type: string |

## response

| JSON pointer | Description and constraints |
|---|---|
| "" \(root\) | The 202 creation envelope: the pending action and its approval link\. Read the outcome on the pending record with read\_approval\_status\. If `renamed` is true, the outcome gives the new name, the old and new labels, and their production and development hostnames, with a receipt for each effect\. If `renamed` is false, nothing changed\. Read the current state before requesting another rename\.<br><br>Type: object<br>Required fields: \["contract\_version","pending\_action","approval\_url"\] |
| /<wbr>properties/<wbr>contract\_version | Required value: 1 |
| /<wbr>properties/<wbr>reference | The short reference the platform recorded your call under: ten lowercase hexadecimal characters, the value in the call’s record row\. Quote it when you report the call\.<br><br>Type: string<br>Pattern: ^\[0\-9a\-f\]\{10\}$ |
| /<wbr>properties/<wbr>pending\_action | $ref: \#/shapes/pending\_action |
| /<wbr>properties/<wbr>approval\_url | Type: string |
| /<wbr>properties/<wbr>detail | Type: string |

## Complete payload contract

```json
{
  "request": {
    "type": "object",
    "required": [
      "application",
      "name"
    ],
    "properties": {
      "application": {
        "type": "string",
        "description": "Your account's application `id` from `list_applications`, not its name or label."
      },
      "name": {
        "type": "string",
        "pattern": "^[a-z][a-z0-9-]{0,39}$",
        "description": "A lowercase slug such as `todo-api`. It becomes the readable part of the new platform hostnames. The previous platform hostnames stop working. A name another live application of the account carries refuses `name_taken`; the current name refuses `invalid_request`."
      },
      "request_id": {
        "type": "string",
        "description": "Any string you choose. A repeat from the same account while that pending action is live returns it again, creating no second one. Omitted, every call creates a new one."
      }
    }
  },
  "response": {
    "type": "object",
    "description": "The 202 creation envelope: the pending action and its approval link. Read the outcome on the pending record with read_approval_status (API-L0-07). If `renamed` is true, the outcome gives the new name, the old and new labels, and their production and development hostnames, with a receipt for each effect. If `renamed` is false, nothing changed. Read the current state before requesting another rename.",
    "required": [
      "contract_version",
      "pending_action",
      "approval_url"
    ],
    "properties": {
      "contract_version": {
        "const": 1
      },
      "reference": {
        "type": "string",
        "pattern": "^[0-9a-f]{10}$",
        "description": "The short reference the platform recorded your call under: ten lowercase hexadecimal characters, the value in the call’s record row. Quote it when you report the call."
      },
      "pending_action": {
        "$ref": "#/shapes/pending_action"
      },
      "approval_url": {
        "type": "string"
      },
      "detail": {
        "type": "string"
      }
    }
  }
}
```

## Shared contracts

- [Refusals](/cloud/reference/refusals/): every refusal, by surface, with its cause and its remedy
- [schemas/wire\_error\.schema\.json](/cloud/reference/sources/schemas/wire-error-schema/)
- [schemas/wire\_errors\.json](/cloud/reference/sources/schemas/wire-errors/)
- [schemas/action\_payloads\.json](/cloud/reference/sources/schemas/action-payloads/) (includes shared shapes)
- [management\_api\_contract\.md](/cloud/reference/sources/management-api-contract/)
