saveEntity

open fun saveEntity(entity: EntityValue)

See saveEntity(EntityValue, HttpHeaders?, RequestOptions?).

Parameters

entity

Entity parameter.


open fun saveEntity(entity: EntityValue, headers: HttpHeaders?)

See saveEntity(EntityValue, HttpHeaders?, RequestOptions?).

Parameters

entity

Entity parameter.

headers

Headers parameter.


open fun saveEntity(entity: EntityValue, headers: HttpHeaders?, options: RequestOptions?)

Call {@link com.sap.cloud.mobile.kotlin.odata.ChangeSet#createEntity(com.sap.cloud.mobile.kotlin.odata.EntityValue, com.sap.cloud.mobile.kotlin.odata.http.HttpHeaders?, com.sap.cloud.mobile.kotlin.odata.RequestOptions?) ChangeSet.createEntity}, if entity.isNew == true, otherwise call {@link com.sap.cloud.mobile.kotlin.odata.ChangeSet#updateEntity(com.sap.cloud.mobile.kotlin.odata.EntityValue, com.sap.cloud.mobile.kotlin.odata.http.HttpHeaders?, com.sap.cloud.mobile.kotlin.odata.RequestOptions?) ChangeSet.updateEntity}.

Parameters

entity

Entity to be created or updated.

headers

(nullable) Request-specific headers.

options

(nullable) Request-specific options.