Update project
Changed onUpdate 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)
Request
- Base URLhttps://api.unkey.com
- URLhttps://api.unkey.com/v2/projects.updateProject
- AuthHTTP bearer
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
}
}Changes
- info
the endpoint scheme security
bearerwas added to the API - info
the endpoint scheme security
rootKeywas removed from the API
- info
- breaking
added the new required request property
- breaking
the
request property's maxLength was decreased to255 - breaking
the
request property's minLength was increased from1to3 - warning
changed the pattern of the request property
from^[a-z0-9]+(-[a-z0-9]+)*$to^[a-zA-Z0-9_-]+$ - warning
removed the request property
- breaking