v13
OpenAPI 3.0.32026-07-31359869.4 MBprojects
Upload a project avatar
Upload an image as the avatar of the project identified by idOrName. The request body is the raw bytes of a JPG, PNG, or SVG image; the Content-Type header must declare which. SVG payloads are sanitized and optimized server-side before storage. The final SHA-1 of the stored bytes becomes the project's avatar value. The actual upload pipeline (validation, sanitization, S3 write, conditional updateProject, and event emission) lives in the shared @api/project-avatar-upload helper so it can be reused by background workers.
post/v1/projects/{idOrName}/avatar
Path parameters
idOrNamestring required
The unique project identifier or the project name.
The unique project identifier or the project name.
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.
Response
Example response
{
"crons": {
"definitions": [
{
"host": "vercel.com",
"path": "/api/crons/sync-something?hello=world",
"schedule": "0 0 * * *"
}
]
},
"rollingRelease": {
"target": "production",
"stages": [
{
"targetPercentage": 25,
"duration": 600
}
]
}
}