Click or drag to resize

IHdsiServiceContractUpdate Method

Updates the specified resource. If the resource does not exist than a 404 is thrown, if there is a conflict (such a mismatch of data) a 409 is thrown

Namespace: SanteDB.Rest.HDSI
Assembly: SanteDB.Rest.HDSI (in SanteDB.Rest.HDSI.dll) Version: 3.0.2081-alpha+19f573cdc8c56fbc278c5e41a734f011a9baa699
Syntax
IdentifiedData Update(
	string resourceType,
	string id,
	IdentifiedData body
)

Parameters

resourceType  String
The type of resource which should be updated
id  String
The identifier of the resource to be updated
body  IdentifiedData
The new contents of the resource to be updated

Return Value

IdentifiedData

[Missing <returns> documentation for "M:SanteDB.Rest.HDSI.IHdsiServiceContract.Update(System.String,System.String,SanteDB.Core.Model.IdentifiedData)"]

Remarks
This operation will update an existing resource on the server such that the data in the database exactly matches the data passed via the API. Note: If you post an incomplete object (such as one missing identifiers, or addresses) then the current resource will have those attributes removed. For partial updates, use the PATCH operation instead.
See Also