id in the body is required and must equal the {id} in the URL.If-Match with the version you last read to avoid overwriting someone else's change. If the version has moved on, the server returns 409.Authorization: Bearer ********************{
"resourceType": "Encounter",
"status": "finished",
"class": {
"system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
"code": "AMB",
"display": "ambulatory"
},
"subject": {
"reference": "Patient/example"
},
"period": {
"start": "2026-08-01T09:00:00Z",
"end": "2026-08-01T09:45:00Z"
},
"id": "123"
}{
"resourceType": "Encounter",
"status": "finished",
"class": {
"system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
"code": "AMB",
"display": "ambulatory"
},
"subject": {
"reference": "Patient/example"
},
"period": {
"start": "2026-08-01T09:00:00Z",
"end": "2026-08-01T09:45:00Z"
},
"id": "123",
"meta": {
"versionId": "2",
"lastUpdated": "2026-08-28T10:00:00Z"
}
}