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.
| Scope | custom_fields:write |
| Asynchronous | No |
| MCP tool | update_graph_relation_type |
| Portal permissions | edit_graph_relation_types |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
relation_type_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
If-Match | header | string | Optional |
Request body
| Content type | Type |
|---|---|
application/json | GraphRelationTypePatchInput |
application/merge-patch+json | GraphRelationTypePatchInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json GraphRelationType or object |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
412 | precondition_failed | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
GraphRelationType
| Field | Type | Required | Description |
|---|---|---|---|
category | string or null | Required | |
color | string or null | Required | |
decision_category | string or null | Required | |
derivation | string or null | Required | Set for a relation type the engine derives (it cannot be deleted). |
external_code | string or null | Required | |
from_kinds | array of string | Required | What the relation can start from: document, register_row. |
impact_direction | string or null | Required | Set with impact_weight. |
impact_weight | number or null | Required | Above 0 up to 1, for an impact edge; null when the relation is not one. |
inverse_label | string or null | Required | How the relation reads from the other end; null when it reads the same. |
is_active | boolean | Required | |
is_symmetric | boolean | Required | |
is_transitive | boolean | Required | |
label | string | Required | |
navigation_audience | string or null | Required | Who sees the relation when navigating: all or analyst. |
relation_type_id | string | Required | The code, 2 to 40 capital letters, digits and underscores. |
to_custom_field_template_id | string or null | Required | The register a relation ends at, when it is fixed. |
to_kinds | array of string | Required | What the relation can end at: document, register_row. |
used_by | array of GraphUse | Required | The fields and templates configured to use the relation type. |
GraphRelationTypePatchInput
| Field | Type | Required | Description |
|---|---|---|---|
category | string or null | Optional | |
color | string or null | Optional | |
decision_category | string or null | Optional | |
derivation | string or null | Optional | |
external_code | string or null | Optional | |
from_kinds | array of string or null | Optional | |
impact_direction | string or null | Optional | |
impact_weight | number or null | Optional | |
inverse_label | string or null | Optional | |
is_active | boolean or null | Optional | |
is_symmetric | boolean or null | Optional | |
is_transitive | boolean or null | Optional | |
label | string or null | Optional | |
navigation_audience | string or null | Optional | |
relation_type_id | string or null | Optional | |
to_custom_field_template_id | string or null | Optional | |
to_kinds | array of string or null | Optional | |
used_by | array of GraphUseInput or null | Optional |
GraphUse
| Field | Type | Required | Description |
|---|---|---|---|
custom_field_id | string or null | Required | The field; null for a template-level use. |
custom_field_template_id | string or null | Required | The template; null for a use outside a template. |
label | string | Required | The template, or the template and field, as the builder names it. |
where | string or null | Required | For a normaliser: field_role or document_link, or null. |
GraphUseInput
| Field | Type | Required | Description |
|---|---|---|---|
custom_field_id | string or null | Optional | The field; null for a template-level use. |
custom_field_template_id | string or null | Optional | The template; null for a use outside a template. |
label | string | Optional | The template, or the template and field, as the builder names it. |
where | string or null | Optional | For a normaliser: field_role or document_link, or null. |