identityPut

suspend fun identityPut(call: ApplicationCall, create: Boolean)

Handles create or update POST requests.

Creates a new or updates existing Identity in the storage.

Request format:

{
"token": "...", // only when updating
"core": { "field1": "value1", ... }
"records": {
"recordType1": record1,
...
}
}

When updating, new data is merged with existing one, see IdentityData.merge for details.

Response:

{
"token": "...."
}