projects
Update an existing project
Changed onUpdate the fields of a project using either its name or id.
patch/v9/projects/{idOrName}
Request
- Base URL: https://api.vercel.com
- URL: https://api.vercel.com/v9/projects/{idOrName}
- Auth: HTTP bearer
Path parameters
idOrNamestring required
The unique project identifier or the project name
Example:prj_12HKQaOmR5t5Uy6vdcQsNIiZgHGB
Query parameters
teamIdstring
Example:team_1a2b3c4d5e6f7g8h9i0j1k2l
The Team identifier to perform the request on behalf of.
slugstring
Example:my-team-url-slug
The Team slug to perform the request on behalf of.
Request body
Example request
{
"name": "a-project-name",
"sandbox": {
"region": "iad1",
"failoverRegions": [
"sfo1",
"cle1"
]
}
}Response
The project was successfully updated
Example response
{
"crons": {
"definitions": [
{
"host": "vercel.com",
"path": "/api/crons/sync-something?hello=world",
"schedule": "0 0 * * *"
}
]
},
"rollingRelease": {
"gate": {
"checks": [
{
"excludePaths": [
"/api/health"
],
"excludeStatusCodes": [
503
],
"ingestWatermarkSeconds": 30,
"significanceLevel": 0.05
}
],
"failureThreshold": 3,
"windowSize": 5
},
"stages": [
{
"duration": 600,
"targetPercentage": 25
}
],
"target": "production"
}
}Changes
- info
added the non-success response with the status
- info
- breaking
added
subschema #2to theresponse propertyoneOflist for the response status
- breaking