Skip to main content
Prisma Documentation Docs

Search documentation

Type to search this documentation.

Update project

PATCH/v1/projects/{id}Update project

Updates the project with the given ID.

Parameters

idstringpathrequired

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

Request body

application/json
object
namestring

maxLength 256 · minLength 1

settingsobject
Example request
{
  "name": "string",
  "settings": {
    "additionalProp1": null
  }
}

Responses

200Project updated.application/json
object
dataobjectrequired
Show child attributes
createdAtstring · date-timerequired
defaultRegionnull | stringrequired
idstringrequired
logicalIdnull | stringrequired
namestringrequired
typestringrequired

const "project"

urlstring · urirequired
workspaceobjectrequired
Show child attributes
idstringrequired
namestringrequired
urlstring · urirequired
Example response
{
  "data": {
    "createdAt": "2026-06-09T00:00:00Z",
    "defaultRegion": "string",
    "id": "string",
    "logicalId": "string",
    "name": "string",
    "type": "project",
    "url": "https://example.com",
    "workspace": {
      "id": "string",
      "name": "string",
      "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"
  }
}
403Actor does not have access to the project.application/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
404Project with the specified ID was not found.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.application/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
Documentation menu