Update project
Updates the state of a project.
AuthorizationBearer <token>Scope: project.write
project_id*stringThe unique identifier of the project.
^[a-zA-Z0-9_-]+$The new state of the project.
application/json- body
name?|The name of the project.
password_hash?|The method this project's passwords are hashed with. Send null to drop the project's own method and go back to the server default; leave the field out to keep whatever the project has.
Updated project state.
application/json- response
The current state of a project, as returned for that one project. It adds the owning team to the fields every project listing carries.
id*stringThe unique identifier of the project.
name*stringThe name of the project.
origins*array<>The project's origins. An empty list means every origin is admitted until the first pattern is added. Loopback origins are admitted without a pattern.
created_at*stringThe time when the project was created.
date-timeupdated_at*stringThe time when the project was last updated.
date-timepassword_hash?|The method this project's passwords are hashed with. Null when the project uses the server default.
owning_team_id*|The team that owns the project (ADR 054 §2), which is how its members administer it. Null when no team owns the project, for example before it is claimed.
The team lives in the platform project, so its id is an opaque
reference here. GET /projects/{project_id}/admins lists the
people who administer the project through it.
import { configureZitadel, getApi } from "@zitadel/api/config";import { setApiCsrfToken } from "@zitadel/api/runtime/auth";// In the browser, through the SDK proxy: the session cookie authenticates the call.const client = getApi(configureZitadel({ projectId: "proj_01KWH1P4MYS7F0N9WD3P2E4YM5" }));// A write the session cookie authenticates carries the session's CSRF token.setApiCsrfToken((await client.getMySessionCsrfToken()).csrf_token);const project = await client.patchProject("proj_01KWH1P4MYS7F0N9WD3P2E4YM5", {});{ "id": "string", "name": "string", "origins": [ { "pattern": "string", "kind": "primary" } ], "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "password_hash": { "algorithm": "argon2i", "params": { "time": 0, "memory": 0, "threads": 0, "cost": 0, "rounds": 0, "hash": "sha1" } }, "owning_team_id": "string"}Was this helpful?