projects
Update project
Update an existing project in your workspace, identified by its id.
The project name, slug, and delete protection setting can be changed. Omitted fields are left unchanged. Changing the slug affects the deployment domains generated for this project.
Required Permissions
Your root key must have one of the following permissions:
- project.*.update_project (to update any project)
- project.<project_id>.update_project (to update a specific project)
post/v2/projects.updateProject
Request body
Example request
{
"project": "proj_1234abcd",
"slug": "proj_1234abcd",
"name": "Payments Service",
"deleteProtection": true
}Response
Successfully updated the project.
Example response
{
"meta": {
"requestId": "req_123"
},
"data": {
"id": "proj_1234abcd",
"name": "Payments Service",
"slug": "payments-service",
"createdAt": 1704067200000,
"updatedAt": 1704153600000
}
}