Click or drag to resize

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: 3.0.2081-alpha+19f573cdc8c56fbc278c5e41a734f011a9baa699
Syntax
IdentifiedData CreateUpdate(
	string resourceType,
	string id,
	IdentifiedData resource
)

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

IdentifiedData
The created or updated resource
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