 | 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.HDSIAssembly: SanteDB.Rest.HDSI (in SanteDB.Rest.HDSI.dll) Version: 3.0.2081-alpha+19f573cdc8c56fbc278c5e41a734f011a9baa699
Syntaxpublic virtual IdentifiedData CreateUpdate(
string resourceType,
string id,
IdentifiedData body
)
Public Overridable Function CreateUpdate (
resourceType As String,
id As String,
body As IdentifiedData
) As IdentifiedData
public:
virtual IdentifiedData^ CreateUpdate(
String^ resourceType,
String^ id,
IdentifiedData^ body
)
abstract CreateUpdate :
resourceType : string *
id : string *
body : IdentifiedData -> IdentifiedData
override CreateUpdate :
resourceType : string *
id : string *
body : 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
- body IdentifiedData
[Missing <param name="body"/> documentation for "M:SanteDB.Rest.HDSI.HdsiServiceBehavior.CreateUpdate(System.String,System.String,SanteDB.Core.Model.IdentifiedData)"]
Return Value
IdentifiedDataThe created or updated resource
Implements
IHdsiServiceContractCreateUpdate(String, String, IdentifiedData)
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