DIRECTORY

Update directory

Changed on

Updates directory FOLDER associated with the EHR identified by ehr_id.

The existing latest version_uid of directory FOLDER resource (i.e. the preceding_version_uid) must be specified in the If-Match header.

put/ehr/{ehr_id}/directory

Request

  • Base URL
    https://openEHRSys.example.com/v1
  • Auth
    none required

Path parameters

ehr_idstring uuid required
Example:7d44b88c-4199-4bad-97dc-d78268e01398

EHR identifier taken from EHR.ehr_id.value.

Headers

If-Matchstring required
Example:"6cb19121-4307-4648-9da0-d62e4d51f19b::openEHRSys.example.com::1"

Header to make the request conditional. Together with ETag request tag, it helps to prevent simultaneous updates of a resource from overwriting each other ("mid-air collisions"). The format is always an version_uid identifier enclosed by double quotes. The operation will be performed only if the existing latest version_uid of the resource (i.e. the preceding_version_uid) matches this header's value.

Prefer'return=representation' | 'return=minimal' | 'return=identifier'

Request header to indicate the preference over response details. The response will contain the entire resource when the Prefer header has a value of return=representation, or only the resource identifier (e.g., the uid) when the value is return=identifier.

Accept'application/json' | 'application/xml' | 'application/openehr.wt.flat+json' | 'application/openehr.wt.structured+json'
Content-Type'application/json' | 'application/xml' | 'application/openehr.wt.flat+json' | 'application/openehr.wt.structured+json'

Request body

_typestring

Response

200 OK is returned when directory was successfully updated, with the full resource in the response body when Prefer header is return=representation, or only its identifiers when Prefer header is return=identifier.

OR

Example response

{
  "uid": "6cb19121-4307-4648-9da0-d62e4d51f19b::openEHRSys.example.com::2"
}

Changes

    • breaking

      added the new required request property ///////

    • breaking

      added the new required request property ///////

    • warning

      changed the pattern of the request property /////////////// from /^[><=?]$/ to ^[><=?]$

    • warning

      changed the pattern of the request property ///////////// from /^[><=?]$/ to ^[><=?]$

    • warning

      changed the pattern of the request property /////////////// from /^[><=?]$/ to ^[><=?]$

    • warning

      changed the pattern of the request property ///////////// from /^[><=?]$/ to ^[><=?]$

    • warning

      changed the pattern of the request property /////// from /^[><=?]$/ to ^[><=?]$

    • warning

      changed the pattern of the request property /////// from /^[><=?]$/ to ^[><=?]$

    • warning

      changed the pattern of the request property ///// from /^[><=?]$/ to ^[><=?]$

    • info

      added SECTION discriminator mapping keys to the / request property

    • info

      added SECTION discriminator mapping keys to the // request property

    • info

      added SECTION discriminator mapping keys to the // response property for the response status

    • info

      added SECTION discriminator mapping keys to the /// response property for the response status

    • info

      the //////////////// response's property pattern was changed from /^[><=?]$/ to ^[><=?]$ for the status

    • info

      the ////////////// response's property pattern was changed from /^[><=?]$/ to ^[><=?]$ for the status

    • info

      the //////////////// response's property pattern was changed from /^[><=?]$/ to ^[><=?]$ for the status

    • info

      the ////////////// response's property pattern was changed from /^[><=?]$/ to ^[><=?]$ for the status

    • info

      the //////// response's property pattern was changed from /^[><=?]$/ to ^[><=?]$ for the status

    • info

      the //////// response's property pattern was changed from /^[><=?]$/ to ^[><=?]$ for the status

    • info

      the ////// response's property pattern was changed from /^[><=?]$/ to ^[><=?]$ for the status

    • info

      added the required property //////// to the response with the status

    • info

      added the required property //////// to the response with the status

    • info

      added the new optional header request parameter Accept

    • info

      added the new optional header request parameter Content-Type