API-V2 C#_SDK Create objects

Create a single object

SDK-Method

Task<TId> IApiV2Endpoint<TId>.CreateAsync( object entity, CancellationToken cancellationToken = default )

REST-Equivalent

POST /servicedmcore/CoreIdentity { "ci_family_name": "Testikus", "ci_given_name": "Peter", "active": true, "tenant_id": 1, "core_identity_type.id": 1, "anonymization_status.id": 1 }

Example-Code

public async Task CreateCoreIdentity() { var api = GetService<IApiV2Client>(); var endpoint = api.DmcoreService.Servicedmcore.CoreIdentity; var entityId = await endpoint.CreateAsync(new { CiFamilyName = "Testikus", CiGivenName = "Peter", TenantId = 1, Active = true, CoreIdentityType = new { Id = 1 }, AnonymizationStatus = new { Id = 1 } }); }

Create multiple objects

SDK-Method

REST-Equivalent

Example-Code

Answer DataContracts

 

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