Partially update a project

Update one or more fields on an existing project (supply only the fields you want to change). Returns the updated project. Returns 404 if the project does not exist.

On this page

HTTP request

PATCH https://api.parsewise.ai/api/v1/projects/{id}/

URI Parameters

Name In Required Type Description
id path Yes string (uuid)  

Request Header

Name Required Type Description
X-API-Key Yes string API key with the pw_live_ prefix. See Authentication.

Request Body

Supported content types: application/json, application/x-www-form-urlencoded, multipart/form-data.

Name Required Type Description
name No string Human-readable name shown in the UI and in lists.
description No string Short description of what the project covers.
reference_date No string (date) (nullable) Reference date used by agents that need a “today” anchor (e.g. relative date extractions). Defaults to the date the project was created.
per_document_mode No boolean When true, extraction results are scoped per-document rather than aggregated across the project. Used for projects where each document represents a separate subject (e.g. one contract per file).
per_tag_mode No boolean When true, extraction results are grouped per tag value. Should not be combined with per_document_mode.
is_pinned No boolean Whether the project is pinned to the top of the project list.

Responses

Status Type Description
200 V1Project

Security

  • ApiKeyAuth — apiKey — in X-API-Key header. API key with pw_live_ prefix.

Python example

import os
import requests

API_KEY = os.environ["PARSEWISE_API_KEY"]
BASE_URL = "https://api.parsewise.ai/api/v1"

id = "<uuid>"

body = {
    "name": "...",  # optional
    "description": "...",  # optional
    "reference_date": "YYYY-MM-DD",  # optional
    "per_document_mode": False,  # optional
    "per_tag_mode": False,  # optional
    "is_pinned": False,  # optional
}

resp = requests.patch(
    f"{BASE_URL}/projects/{id}/",
    headers={"X-API-Key": API_KEY},
    json=body,
)
resp.raise_for_status()
print(resp.json() if resp.content else None)

Definitions

PatchedV1ProjectRequest

A project: the top-level container that groups documents, agents, and extraction results.

Returned by GET /projects/ and GET /projects/{project_id}/; also accepted as the request body for PATCH /projects/{project_id}/, where only the fields you supply are updated. Server-managed fields such as id, created_at, last_visited_at, document_count, and agent_count are read-only.

Name Required Type Description
name No string Human-readable name shown in the UI and in lists.
description No string Short description of what the project covers.
reference_date No string (date) (nullable) Reference date used by agents that need a “today” anchor (e.g. relative date extractions). Defaults to the date the project was created.
per_document_mode No boolean When true, extraction results are scoped per-document rather than aggregated across the project. Used for projects where each document represents a separate subject (e.g. one contract per file).
per_tag_mode No boolean When true, extraction results are grouped per tag value. Should not be combined with per_document_mode.
is_pinned No boolean Whether the project is pinned to the top of the project list.

V1Project

A project: the top-level container that groups documents, agents, and extraction results.

Returned by GET /projects/ and GET /projects/{project_id}/; also accepted as the request body for PATCH /projects/{project_id}/, where only the fields you supply are updated. Server-managed fields such as id, created_at, last_visited_at, document_count, and agent_count are read-only.

Name Required Type Description
id Yes string (uuid) Stable identifier for the project (UUID).
name Yes string Human-readable name shown in the UI and in lists.
description No string Short description of what the project covers.
last_visited_at Yes string (date-time) (nullable) Timestamp of the most recent visit to this project.
reference_date No string (date) (nullable) Reference date used by agents that need a “today” anchor (e.g. relative date extractions). Defaults to the date the project was created.
per_document_mode No boolean When true, extraction results are scoped per-document rather than aggregated across the project. Used for projects where each document represents a separate subject (e.g. one contract per file).
per_tag_mode No boolean When true, extraction results are grouped per tag value. Should not be combined with per_document_mode.
document_count Yes integer Number of documents currently in the project.
agent_count Yes integer Number of non-draft agents configured on the project.
is_pinned No boolean Whether the project is pinned to the top of the project list.
project_modules Yes any Per-project overrides for which application modules are enabled, keyed by module name with boolean values. A missing key falls back to the organisation’s default for that module.
target_output_schema Yes any (nullable)  
output_mapping_status Yes string