Update a project
PATCH
/api/v1/projects/{projectId}
const url = 'https://api.yggy.tech/api/v1/projects/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","slug":"example","color":"gray","extractionPurpose":"example","extractionInclude":["example"],"extractionSkip":["example"],"expectedGuidanceRevision":1,"entityMergeMode":"auto"}'};
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.yggy.tech/api/v1/projects/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "slug": "example", "color": "gray", "extractionPurpose": "example", "extractionInclude": [ "example" ], "extractionSkip": [ "example" ], "expectedGuidanceRevision": 1, "entityMergeMode": "auto" }'Update project name, slug, color, extraction guidance, or entity-merge mode.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” projectId
required
string
Request Body
Section titled “Request Body ” Media type application/json
object
name
Project name
string
slug
Project slug (used in URLs)
string
color
Project color preset
string
extractionPurpose
What this graph is for
string | null
extractionInclude
Fact types to extract
Array<string>
extractionSkip
Fact types to leave out
Array<string>
expectedGuidanceRevision
Optimistic lock for extraction guidance commits
integer
entityMergeMode
Whether confident same-name entity clusters merge automatically
string
Responses
Section titled “ Responses ”Project updated successfully
Media type application/json
object
success
required
boolean
project
required
object
id
required
string
slug
required
string
name
required
string
color
required
string
organizationId
required
string
externalId
string | null
kind
string
extractionPurpose
string | null
extractionInclude
Array<string>
extractionSkip
Array<string>
extractionGuidanceRevision
integer
entityMergeMode
string
createdAt
string
updatedAt
string
Example
{ "project": { "kind": "shared", "entityMergeMode": "auto" }}Invalid request
Media type application/json
object
success
required
boolean
error
required
object
message
required
string
code
required
string
details
Example
{ "success": false, "error": { "code": "INTERNAL_ERROR" }}Unauthorized
Media type application/json
object
success
required
boolean
error
required
object
message
required
string
code
required
string
details
Example
{ "success": false, "error": { "code": "INTERNAL_ERROR" }}Project not found
Media type application/json
object
success
required
boolean
error
required
object
message
required
string
code
required
string
details
Example
{ "success": false, "error": { "code": "INTERNAL_ERROR" }}Extraction guidance changed
Media type application/json
object
success
required
boolean
error
required
object
message
required
string
code
required
string
details
Example
{ "success": false, "error": { "code": "INTERNAL_ERROR" }}Internal server error
Media type application/json
object
success
required
boolean
error
required
object
message
required
string
code
required
string
details
Example
{ "success": false, "error": { "code": "INTERNAL_ERROR" }}