| IHdsiServiceContractCreateUpdate Method |
Creates or updates a resource. That is, creates the resource if it does not exist, or updates it if it does
Namespace:
SanteDB.Rest.HDSI
Assembly:
SanteDB.Rest.HDSI (in SanteDB.Rest.HDSI.dll) Version: 2.2.1
Syntax IdentifiedData CreateUpdate(
string resourceType,
string id,
IdentifiedData body
)
Function CreateUpdate (
resourceType As String,
id As String,
body As IdentifiedData
) As IdentifiedData
IdentifiedData^ CreateUpdate(
String^ resourceType,
String^ id,
IdentifiedData^ body
)
abstract CreateUpdate :
resourceType : string *
id : string *
body : IdentifiedData -> IdentifiedData
Parameters
- resourceType
- Type: SystemString
[Missing <param name="resourceType"/> documentation for "M:SanteDB.Rest.HDSI.IHdsiServiceContract.CreateUpdate(System.String,System.String,SanteDB.Core.Model.IdentifiedData)"]
- id
- Type: SystemString
[Missing <param name="id"/> documentation for "M:SanteDB.Rest.HDSI.IHdsiServiceContract.CreateUpdate(System.String,System.String,SanteDB.Core.Model.IdentifiedData)"]
- body
- Type: SanteDB.Core.ModelIdentifiedData
[Missing <param name="body"/> documentation for "M:SanteDB.Rest.HDSI.IHdsiServiceContract.CreateUpdate(System.String,System.String,SanteDB.Core.Model.IdentifiedData)"]
Return Value
Type:
IdentifiedData[Missing <returns> documentation for "M:SanteDB.Rest.HDSI.IHdsiServiceContract.CreateUpdate(System.String,System.String,SanteDB.Core.Model.IdentifiedData)"]
Remarks This method will attempt to update the resource if it exists (a-la PUT style) however, if a PUT fails the operation will create (a-la POST)
See Also