 | HdsiServiceBehaviorPatch Method |
Updates the specified resource according to the instructions in the PATCH file
Namespace: SanteDB.Rest.HDSIAssembly: SanteDB.Rest.HDSI (in SanteDB.Rest.HDSI.dll) Version: 3.0.2081-alpha+19f573cdc8c56fbc278c5e41a734f011a9baa699
Syntaxpublic virtual void Patch(
string resourceType,
string id,
Patch body
)
Public Overridable Sub Patch (
resourceType As String,
id As String,
body As Patch
)
public:
virtual void Patch(
String^ resourceType,
String^ id,
Patch^ body
)
abstract Patch :
resourceType : string *
id : string *
body : Patch -> unit
override Patch :
resourceType : string *
id : string *
body : Patch -> unit Parameters
- resourceType String
- The type of resource to be patched
- id String
- The identifier of the resource to be patched
- body Patch
- The patch body which contains update instructions on the object referenced by id
Implements
IHdsiServiceContractPatch(String, String, Patch)
RemarksThe PATCH operation allows for partial updating of a resource.
This method must be used in conjunction with an If-Match header indicating the version that you would like apply the patch against.
The server will load the most recent version and compre the version code with If-Match, if the match is successful the instructions in the PATCH are applied to the loaded version.
See Also