Skip to main content

Change a relation type.

PATCH/api/v1/graph/relation-types/{relation_type_id}custom_fields:write

A merge patch: members left out keep their stored value, null clears an optional one. The code does not change. impact_weight and impact_direction are set or cleared together. Needs Edit Graph Relation Types.

Scopecustom_fields:write
AsynchronousNo
MCP toolupdate_graph_relation_type
Portal permissionsedit_graph_relation_types

Parameters​

NameInTypeRequiredDescription
relation_type_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Request body​

Content typeType
application/jsonGraphRelationTypePatchInput
application/merge-patch+jsonGraphRelationTypePatchInput

Responses​

StatusDescriptionBody
200Success.application/json GraphRelationType or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
412precondition_failedapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

GraphRelationType​

FieldTypeRequiredDescription
categorystring or nullRequired
colorstring or nullRequired
decision_categorystring or nullRequired
derivationstring or nullRequiredSet for a relation type the engine derives (it cannot be deleted).
external_codestring or nullRequired
from_kindsarray of stringRequiredWhat the relation can start from: document, register_row.
impact_directionstring or nullRequiredSet with impact_weight.
impact_weightnumber or nullRequiredAbove 0 up to 1, for an impact edge; null when the relation is not one.
inverse_labelstring or nullRequiredHow the relation reads from the other end; null when it reads the same.
is_activebooleanRequired
is_symmetricbooleanRequired
is_transitivebooleanRequired
labelstringRequired
navigation_audiencestring or nullRequiredWho sees the relation when navigating: all or analyst.
relation_type_idstringRequiredThe code, 2 to 40 capital letters, digits and underscores.
to_custom_field_template_idstring or nullRequiredThe register a relation ends at, when it is fixed.
to_kindsarray of stringRequiredWhat the relation can end at: document, register_row.
used_byarray of GraphUseRequiredThe fields and templates configured to use the relation type.

GraphRelationTypePatchInput​

FieldTypeRequiredDescription
categorystring or nullOptional
colorstring or nullOptional
decision_categorystring or nullOptional
derivationstring or nullOptional
external_codestring or nullOptional
from_kindsarray of string or nullOptional
impact_directionstring or nullOptional
impact_weightnumber or nullOptional
inverse_labelstring or nullOptional
is_activeboolean or nullOptional
is_symmetricboolean or nullOptional
is_transitiveboolean or nullOptional
labelstring or nullOptional
navigation_audiencestring or nullOptional
relation_type_idstring or nullOptional
to_custom_field_template_idstring or nullOptional
to_kindsarray of string or nullOptional
used_byarray of GraphUseInput or nullOptional

GraphUse​

FieldTypeRequiredDescription
custom_field_idstring or nullRequiredThe field; null for a template-level use.
custom_field_template_idstring or nullRequiredThe template; null for a use outside a template.
labelstringRequiredThe template, or the template and field, as the builder names it.
wherestring or nullRequiredFor a normaliser: field_role or document_link, or null.

GraphUseInput​

FieldTypeRequiredDescription
custom_field_idstring or nullOptionalThe field; null for a template-level use.
custom_field_template_idstring or nullOptionalThe template; null for a use outside a template.
labelstringOptionalThe template, or the template and field, as the builder names it.
wherestring or nullOptionalFor a normaliser: field_role or document_link, or null.