| 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: 2.2.1
Syntax IdentifiedData Update(
string resourceType,
string id,
IdentifiedData body
)
Function Update (
resourceType As String,
id As String,
body As IdentifiedData
) As IdentifiedData
IdentifiedData^ Update(
String^ resourceType,
String^ id,
IdentifiedData^ body
)
abstract Update :
resourceType : string *
id : string *
body : IdentifiedData -> IdentifiedData
Parameters
- resourceType
- Type: SystemString
[Missing <param name="resourceType"/> documentation for "M:SanteDB.Rest.HDSI.IHdsiServiceContract.Update(System.String,System.String,SanteDB.Core.Model.IdentifiedData)"]
- id
- Type: SystemString
[Missing <param name="id"/> documentation for "M:SanteDB.Rest.HDSI.IHdsiServiceContract.Update(System.String,System.String,SanteDB.Core.Model.IdentifiedData)"]
- body
- Type: SanteDB.Core.ModelIdentifiedData
[Missing <param name="body"/> documentation for "M:SanteDB.Rest.HDSI.IHdsiServiceContract.Update(System.String,System.String,SanteDB.Core.Model.IdentifiedData)"]
Return Value
Type:
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