Replace Transactions

This endpoint allows to replace transactions in the storage. Compared to the update-transactions endpoint it replaces transactions instead of updating them which is equivalent to deleting the transactions and creating them again.

If the same transaction is replaced multiple times in the same request they are replaced in the given order.

Request

POST /insights/v1/storage/transactions/replace HTTP/1.1
Content-Type: application/json; charset=utf-8
Authorization: Token <Token>
Host: <Host>
{
    "insights_consumer_id": String,
    "insights_account_id": String,
    "transactions": Array<StorageTransaction>
}

insights_consumer_id String, required

The id identifying the consumer to whom the transactions belong.

insights_account_id String, required

The id identifying the account to which the transactions belong.

transactions StorageTransaction[], required

The transactions to replace in the storage.

Response

{}

results matching ""

    No results matching ""