Rename a project
PATCH
/projects/{projectId}
import { FloraClient } from '@flora-ai/flora';
const client = new FloraClient({ apiKey: process.env['FLORA_API_KEY'] });
const project = await client.projects.update({ projectId: '<projectId>', name: 'Spring Campaign',});console.log(project);curl -X PATCH 'https://app.flora.ai/api/v1/projects/<projectId>' \ -H 'Authorization: Bearer $FLORA_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "name": "Spring Campaign"}'Renames a single project when the authenticated caller can edit it. name is the only field this operation writes; workspace write access is required and missing or inaccessible projects return 404. Projects managed by a Generation Table or backing a Production cannot be renamed here — rename them from the owning surface. Mutating public API requests support an optional Idempotency-Key header for client retries; duplicate keys within two hours return idempotency_duplicate.
Error responses use the standard error body.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” projectId
required
Project identifier
string
Project identifier
Request Body required
Section titled “Request Body required ” Media type application/json
object
name
required
Project name
string
Responses
Section titled “ Responses ”Project renamed.
Media type application/json
object
project_id
required
Project identifier
string
name
required
Project name
string
is_private
True when only the creator sees the project, rather than the whole workspace. Absent when the API cannot tell.
boolean
workspace_id
required
Workspace identifier
string
created_at
required
number
Example
{ "project_id": "prj_abc123", "name": "Spring Campaign", "workspace_id": "ws_abc123", "origin": "api"}