API-V2 C#_SDK Update objects

Uptade a single object

SDK-Method

Task IApiV2Endpoint<TId>.UpdateByIdAsync( TId id, object newValues, CancellationToken cancellationToken = default )

REST-Equivalent

PATCH /servicedmcore/CoreIdentity/20 { "foreign_id": "Test", "ci_family_name": "Testikus", "ci_given_name": "Peter" }

Example-Code

public async Task UpdateCoreIdentity() { var api = GetService<IApiV2Client>(); var endpoint = api.Dbs.Site.Config.Site; await endpoint.UpdateByIdAsync(20, new { CiFamilyName = "FM", CiGivenName = "GN", }); }

Uptade multiple objects

SDK-Method

REST-Equivalent

Example-Code

Answer DataContracts

 

© ITSENSE AG. Alle Rechte vorbehalten. ITSENSE und CoreOne sind eingetragene Marken der ITSENSE AG.