How to manage Apps
View as MarkdownList, 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:readscope (all operations), plushosting.application:updateorhosting.application:deleteas 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:
| Status | Cause | Action |
|---|---|---|
401 | Expired or revoked PAT, or missing scope | Go to Hosting core concepts for the scopes you need |
403 | Insufficient scope | Verify the token includes hosting.application:update or hosting.application:delete for write operations |
404 | App id not found | Confirm the id from GET /apps |
429 | Rate limit exceeded | Back off and retry. Go to Rate limits for handling guidance |
Agent & Automation Notes
hosting.application:read, hosting.application:update, hosting.application:deleteRelated
API References
Guides
Concepts
Tutorials
Last updated on
How is this guide?