Support

How to manage Apps

View as Markdown

List, update, and delete hosting apps using the REST API.

Overview

This page covers managing your deployed apps: listing all apps, reading a single app, updating its metadata, and deleting it. These operations use the hosting.application:read, hosting.application:update, and hosting.application:delete scopes.

Go to Deploy your Node.js app for the initial create-and-deploy flow. Go to Hosting core concepts for the scopes you need.

Prerequisites

The following prerequisites are required before you can manage your apps:

  • a Personal Access Token with the hosting.application:read scope (all operations), plus hosting.application:update or hosting.application:delete as needed

List apps

GET /apps?appType=NODEJS returns all Node.js apps for your account.

The following procedure lists all apps.

  • List all Node.js apps:

    curl -s "$BASE_URL/v1/hosting/apps?appType=NODEJS" \
      -H "Authorization: Bearer $GODADDY_PAT" | jq .

The response is an array of app objects. Each includes the app id, name, creation status, and variant details.

Read an app

GET /apps/{appId} returns the full record for a single app.

The following procedure reads a specific app.

  • Read the app:

    curl -s "$BASE_URL/v1/hosting/apps/$APP_ID" \
      -H "Authorization: Bearer $GODADDY_PAT" | jq .

Update app metadata

PATCH /apps/{appId} updates the app's name or root path. The operation is synchronous and returns 200 with the updated app object.

The following procedure updates the app name.

  • Update the app name:

    curl -s -X PATCH "$BASE_URL/v1/hosting/apps/$APP_ID" \
      -H "Authorization: Bearer $GODADDY_PAT" \
      -H "Content-Type: application/json-patch+json" \
      -d '[{"op":"replace","path":"/name","value":"my-renamed-app"}]' | jq .

Delete an app

Irreversible

Deleting an app removes both variants and all associated deployments, secrets, and logs. This can't be undone.

DELETE /apps/{appId} removes the app. The response is 204 No Content on success.

The following procedure deletes an app.

  • Delete the app:

    curl -s -X DELETE "$BASE_URL/v1/hosting/apps/$APP_ID" \
      -H "Authorization: Bearer $GODADDY_PAT"

Common errors

The following table lists common errors and recommended actions:

StatusCauseAction
401Expired or revoked PAT, or missing scopeGo to Hosting core concepts for the scopes you need
403Insufficient scopeVerify the token includes hosting.application:update or hosting.application:delete for write operations
404App id not foundConfirm the id from GET /apps
429Rate limit exceededBack off and retry. Go to Rate limits for handling guidance

Agent & Automation Notes

Scopeshosting.application:read, hosting.application:update, hosting.application:delete
Rate limit60 req/min per credential
DestructiveYes — confirm before executing
On failureList and read operations are safe to retry. Deletes are irreversible — confirm the app id before submitting.

Last updated on

How is this guide?

On this page