 | 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.HDSIAssembly: SanteDB.Rest.HDSI (in SanteDB.Rest.HDSI.dll) Version: 3.0.2081-alpha+19f573cdc8c56fbc278c5e41a734f011a9baa699
SyntaxIdentifiedData CreateUpdate(
string resourceType,
string id,
IdentifiedData resource
)
Function CreateUpdate (
resourceType As String,
id As String,
resource As IdentifiedData
) As IdentifiedData
IdentifiedData^ CreateUpdate(
String^ resourceType,
String^ id,
IdentifiedData^ resource
)
abstract CreateUpdate :
resourceType : string *
id : string *
resource : IdentifiedData -> IdentifiedData Parameters
- resourceType String
- The type of resource to be created or updated
- id String
- The identifier of the resource to be created or updated
- resource IdentifiedData
- The resource which is to be created or updated
Return Value
IdentifiedDataThe created or updated resource
RemarksThis 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