Update ORGANISATION
Updates ORGANISATION identified by uid_based_id.
The uid_based_id can take only a form of an HIER_OBJECT_ID identifier taken from VERSIONED_OBJECT.uid.value (i.e. a versioned_object_uid).
If the request body already contains a ORGANISATION.uid.value, it must match the uid_based_id in the URL.
The existing latest version_uid of ORGANISATION resource (i.e. the preceding_version_uid) must be specified in the If-Match header.
- Type: stringFormat: uuid
uid _based _id requiredAn identifier in a form of a HIER_OBJECT_ID identifier taken from VERSIONED_OBJECT.uid.value (i.e. a
versioned_object_uid).
- Type: string
If - Match requiredHeader to make the request conditional. Together with
ETagrequest tag, it helps to prevent simultaneous updates of a resource from overwriting each other ("mid-air collisions"). The format is always anversion_uididentifier enclosed by double quotes. The operation will be performed only if the existing latestversion_uidof the resource (i.e. thepreceding_version_uid) matches this header's value. - Type: stringenum
Prefer Request header to indicate the preference over response details. The response will contain the entire resource when the
Preferheader has a value ofreturn=representation, or only the resource identifier (e.g., theuid) when the value isreturn=identifier.valuesreturn=representation return=minimal return=identifier
The new ORGANISATION.
- Type: string
archetype _node _id required - Type: array object[] · ListOfPartyIdentity
identities required - Type: object · DV_TEXT
name requiredPolymorphic DV_TEXT wrapper. See concrete leaf schemas:
UMDvTextUMDvCodedText
- enum
_type const:ORGANISATIONvaluesO R G A N I S A T I O N
- Type: object · ARCHETYPED
archetype _details - Type: array object[] · ListOfContact
contacts - Type: object · ITEM_STRUCTURE
details Polymorphic ITEM_STRUCTURE wrapper. See concrete leaf schemas:
ItemSingleItemListItemTableItemTree
- Type: object · FEEDER_AUDIT
feeder _audit - Type: array object[] · DV_TEXT[]
languages Empty object - Type: array object[] · LINK[]
links - Type: array object[] · ListOfPartyRelationShip
relationships - Type: array object[] · PARTY_REF[]
roles Identifier for parties in a demographic or identity service.
- application/json
- 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.422 422 Unprocessable Entityis returned when the content type and syntax is correct, could be converted to a resource, but there are semantic validation errors, such as the underlying template is not known or is not validating the supplied resource.
curl https://cataniamc.prod.cadasto.com/v1/demographic/organisation/123e4567-e89b-12d3-a456-426614174000 \ --request PUT \ --header 'If-Match: ' \ --header 'Prefer: return=minimal' \ --header 'Content-Type: application/json' \ --data '{ "_type": "ORGANISATION", "name": {}, "archetype_node_id": "", "uid": {{ "_type": "ORGANISATION", "name": {}, "archetype_node_id": "string", "uid": { "_type": "HIER_OBJECT_ID", "value": "123e4567-e89b-12d3-a456-426614174000" }, "links": [ {