Upload a project avatar
Changed onUpload 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.
Request
- Base URL: https://api.vercel.com
- URL: https://api.vercel.com/v1/projects/{idOrName}/avatar
- Auth: HTTP bearer
Path parameters
The unique project identifier or the project name.
Query parameters
The Team identifier to perform the request on behalf of.
The Team slug to perform the request on behalf of.
Request body application/octet-stream
Response
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
- breaking
added
subschema #2to theresponse propertyoneOflist for the response status
- breaking
- info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- info