Dokumentation
ReferenzProjects

Rename a project, or change its description or color.

PATCH
/projects/{projectId}

Change the name, the description, the color, or any of them. Omitted properties stay unchanged. A changed description takes effect with the next answer in every chat assigned to the project.

The short description is Galilea's and cannot be set; the directory, the members and the memory are not changed here.

Requires project.edit, which only managers of the project hold.

Authorization

apiKey
headerX-API-Key<token>

API key issued in the Galilea settings.

Path Parameters

projectId*string

The id of the project, as returned by GET /projects.

Formatuuid

Request Body

application/json
  1. body

Changes to a project. Omitted properties stay unchanged; at least one property is given.

Properties1 <= properties
name?string

New display name.

Length1 <= length <= 200
description?string

New project description. It takes effect with the next answer in every assigned chat, since the agent receives the description anew with every run.

Length1 <= length
color?string

New display color as #RRGGBB.

Match^#[0-9A-Fa-f]{6}$

Response Body

The changed project.

application/json
  1. response

A project: a shared workspace of a team within one tenant. It holds a flat directory of documents, the chats its members assign to it, its own memory and the artifacts created in those chats. Through this API a project is read with its name, its description, its color, its directory and what the calling user may do with it; chats, memory and artifacts are managed in the Galilea application only.

id*string

Identifier of the project. It does not change when the project is renamed.

Formatuuid
name*string

Display name of the project. Not unique within the tenant: two teams may give their projects the same name, and each member only sees the projects they belong to.

Lengthlength <= 200
description*string

The project brief as Markdown, which Galilea keeps up to date. Required on creation; a project cannot be created without it. Right after creation, and from then on at most once a day when the project had activity, Galilea rewrites it from the current description, the recaps of the last 100 chats of all members and all memories of the project, in sections: what it is about, goal, status, next steps, dates, people involved, decisions, open points and risks, key documents, key figures. A manager may still edit it by hand at any time, in the Galilea application or with PATCH /projects/{projectId}; the next run takes that version as its input. If a run fails, the previous description stays.

It is not an instruction to the agent and not a text for the card: every run of a chat assigned to the project receives it together with the name and the directory of the project as context, so a change takes effect with the next answer in every assigned chat. The text for the card is shortDescription.

shortDescription?string

The short description, one sentence, written by Galilea and never by a person. It is generated in the same run that rewrites description: right after creation and then at most once a day when the project had activity. If a run fails, the previous text stays. Empty until the first run has finished; it cannot be set through this API.

It is written in the most common preferred language of the project's members, ties broken by their activity in the project, not in the language of the description.

color*string

Display color of the project in the Galilea application, as #RRGGBB.

Match^#[0-9A-Fa-f]{6}$
directoryId*string

ID of the project directory, the flat document store of the project. Upload documents into the project by passing this id as directory to POST /uploads, and read which documents it holds with GET /directories/{directoryId}.

The directory is hidden: GET /directories never lists it, it has no subdirectories and allows none, it cannot be renamed, moved, deleted or shared on its own, and it is no target for sync jobs. Its rights mirror the project: every member reads it, members with the permission edit or manage add documents to it, capped by their role in the tenant.

Formatuuid
userPermissions*array<>

What the calling user may do with this project, derived from the highest permission the user holds through any of their groups, capped by their role in the tenant:

  • project.view open the project, read its description, documents and artifacts
  • project.view_permissions see the members and their permissions
  • project.assign_chat assign own chats to the project (Galilea application only)
  • project.view_memory read the memory of the project (Galilea application only)
  • project.remove_artifact remove artifacts from the project (Galilea application only)
  • project.manage_memory add, change and delete memories (Galilea application only)
  • project.edit change name, description and color
  • project.manage add and remove members and change their permissions
  • project.delete delete the project

A member with the permission view holds the first five, a member with edit additionally project.manage_memory, a member with manage all nine. A user whose role in the tenant is viewer holds the first four whatever permission they were given.

createdBy?|

The user who created the project; null once that user was deleted.

createdAt*string

Creation timestamp of the project.

Formatdate-time
lastModifiedAt*string

Last change of name, description or color.

Formatdate-time
curl -X PATCH "https://example.com/projects/0b7c2f4e-5a61-4d3b-9f0e-6c1d2a3b4c5d" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "0b7c2f4e-5a61-4d3b-9f0e-6c1d2a3b4c5d",  "name": "Neubau Werk Süd",  "description": "Planung und Genehmigung des Neubaus Werk Süd, Bauherr ist die Stadtwerke GmbH. Termine, Auflagen und Entscheidungen des Bauausschusses stehen im Vordergrund.",  "shortDescription": "Neubau Werk Süd mit Bauantrag, Brandschutzauflagen und Terminplan bis Q2 2027.",  "color": "#2F6FDE",  "directoryId": "9c4e1b2a-7d3f-4a5e-8b6c-1f2e3d4c5b6a",  "userPermissions": [    "project.view",    "project.view_permissions",    "project.assign_chat",    "project.view_memory",    "project.remove_artifact",    "project.manage_memory"  ],  "createdBy": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "name": "string"  },  "createdAt": "2019-08-24T14:15:22Z",  "lastModifiedAt": "2019-08-24T14:15:22Z"}