Skip to main content
Prisma Documentation Docs

Search documentation

Type to search this documentation.

Update app

PATCH/v1/apps/{appId}Update app

⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️

Deprecated: use PATCH /v1/services/{serviceId} instead.

Updates the display name, logical id, or branch of an app. logicalId cannot be combined with branchId or branchGitName in one request; move the app first, then set its logicalId.

Parameters

appIdstringpathrequired

pattern ^(cps_)?([cC][^\s-]{8,}|[a-z0-9]+)$

Request body

application/json
object
branchGitNamenull | string

minLength 1

branchIdnull | string

pattern ^(br_)?([cC][^\s-]{8,}|[a-z0-9]+)$

displayNamestring

maxLength 256 · minLength 1

logicalIdstring

Declared identity of the resource, unique within its branch. Set by the tool that declares the resource.

maxLength 255 · pattern ^[A-Za-z0-9][A-Za-z0-9._-]*$

Example request
{
  "branchGitName": "string",
  "branchId": "string",
  "displayName": "string",
  "logicalId": "string"
}

Responses

200App updated.application/json
object
dataobjectrequired
Show child attributes
appEndpointDomainstringrequired
branchIdnull | stringrequired
createdAtstring · date-timerequired
idstringrequired
latestDeploymentIdnull | stringrequired
logicalIdnull | stringrequired
namestringrequired
projectIdstringrequired
regionobjectrequired
Show child attributes
idstringrequired
namestringrequired
typestringrequired

const "app"

urlstring · urirequired
Example response
{
  "data": {
    "appEndpointDomain": "string",
    "branchId": "string",
    "createdAt": "2026-06-09T00:00:00Z",
    "id": "string",
    "latestDeploymentId": "string",
    "logicalId": "string",
    "name": "string",
    "projectId": "string",
    "region": {
      "id": "string",
      "name": "string"
    },
    "type": "app",
    "url": "https://example.com"
  }
}
401Missing or invalid authorization token.application/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
403Insufficient permissions to access this resource.application/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
404App not found.application/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
409An app with the same `logicalId` already exists on the branch.application/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
413Request body exceeds this endpoint's size cap.application/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
422Validation failed (e.g. empty display name).application/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
429Rate limit exceeded.application/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
Documentation menu