 | 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.HDSIAssembly: SanteDB.Rest.HDSI (in SanteDB.Rest.HDSI.dll) Version: 3.0.2081-alpha+19f573cdc8c56fbc278c5e41a734f011a9baa699
SyntaxIdentifiedData 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 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)"]
RemarksThis 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