Click or drag to resize

HdsiServiceBehaviorCreateUpdate 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
public virtual IdentifiedData CreateUpdate(
	string resourceType,
	string id,
	IdentifiedData body
)

Parameters

resourceType  String
The type of resource to be created or updated
id  String
The identifier of the resource to be created or updated
body  IdentifiedData

[Missing <param name="body"/> documentation for "M:SanteDB.Rest.HDSI.HdsiServiceBehavior.CreateUpdate(System.String,System.String,SanteDB.Core.Model.IdentifiedData)"]

Return Value

IdentifiedData
The created or updated resource

Implements

IHdsiServiceContractCreateUpdate(String, String, 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