Update PERSON tags
Replaces the full ITEM_TAG list for the target PERSON identified by uid_based_id
with the supplied list. Send an empty list to clear all tags.
- Type: string Format: uuidrequired
An identifier in the form of a HIER_OBJECT_ID identifier taken from VERSIONED_OBJECT.uid.value (i.e. a
versioned_object_uid).Cadasto exception: unlike the upstream openEHR ITS-REST specification, Cadasto only accepts the
versioned_object_uidform on/tagsendpoints. Targeting a specific version with an OBJECT_VERSION_ID is not supported — tags are scoped to the versioned object as a whole.
- Type: string
RFC 7240 preference header. Multiple tokens may be sent in a single header as a comma-separated list (e.g.
Prefer: return=representation, include_item_tags) or as repeated headers. Cadasto recognises the following tokens:Token Where it applies Effect return=representationwrite endpoints Return the full updated resource in the response body. return=identifierwrite endpoints Return only the resource identifier (e.g. the uid).return=minimal(default on writes)write endpoints Empty response body. include_item_tags(Cadasto extension)read endpoints, and write endpoints when the request does not already carry an openehr-item-tagheaderEmit the openehr-item-tagresponse header with the current tags. On writes that shipopenehr-item-tagin the request, the token is implied — the response always echoes the tags. Omitted by default on reads. See the ITEM_TAG guide for details.The
Preference-Appliedresponse header echoes the tokens the server actually honoured (return=, plusinclude_item_tags/resolve_refswhen applied).
The full new ITEM_TAG list for the target.
- Type: array object[] ·
- application/json
- 204
204 No Contentis returned when the tag list was successfully replaced and thePreferheader is missing or set toreturn=minimal. - application/json
- 404
404 Not Foundis returned when, based on the request parameters, the server did not find a current representation of a target resource, or is not willing to disclose that one exists.
curl https://cataniamc.prod.cadasto.com/v1/demographic/person/123e4567-e89b-12d3-a456-426614174000/tags \
--request PUT \
--header 'Content-Type: application/json' \
--data '[
{
"key": "",
"value": "",
"target_path": ""
}
]'
[
{
"key": "string",
"value": "string",
"target_path": "string",
"target": {
"id": {
"_type": "OBJECT_VERSION_ID",
"value": "fb458d9c-1323-42bc-b7f8-787f3660a0b5::cataniamc.prod.cadasto.com::1"
},
"namespace": "local",
"type": "COMPOSITION"
},
"owner_id": "[Circular]"
}
]