Rename a project
PATCH
/projects/{project_id}
const url = 'https://api.perstat.io/projects/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.perstat.io/projects/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example" }'Updates the display name of a project; the name is the only updatable field. The slug stays unchanged, so existing references keep working. Empty names return 400. The change is recorded in the organization audit log. Requires project management rights.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”project_id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
required
string
Examplegenerated
{ "name": "example"}Responses
Section titled “Responses”Media typeapplication/json
object
id
required
string
name
required
string
organization_id
required
string
slug
required
string
Examplegenerated
{ "id": "example", "name": "example", "organization_id": "example", "slug": "example"}