Transaction
Metadata
Alter information of a transaction.
Alter a transaction with a list of actions such as setting status or properties. The server should either succeed and apply all actions, or fail and apply no action.
post/v1/transaction/{id}/alter
Path parameters
idstring required
string identifier of an object in a namespace, following the Lance Namespace spec. When the value is equal to the delimiter, it represents the root namespace. For example, v1/namespace/$/list performs a ListNamespace on the root namespace.
Query parameters
delimiterstring
An optional delimiter of the string identifier, following the Lance Namespace spec. When not specified, the $ delimiter must be used.
Request body
Example request
{
"identity": {
"api_key": "api_key",
"auth_token": "auth_token"
},
"context": {
"key": "context"
},
"id": [
"id",
"id"
],
"actions": [
{
"setStatusAction": {
"status": "status"
},
"unsetPropertyAction": {
"mode": "mode",
"key": "key"
},
"setPropertyAction": {
"mode": "mode",
"value": "value",
"key": "key"
}
},
{
"setStatusAction": {
"status": "status"
},
"unsetPropertyAction": {
"mode": "mode",
"key": "key"
},
"setPropertyAction": {
"mode": "mode",
"value": "value",
"key": "key"
}
}
]
}Response
Response of AlterTransaction
Example response
{
"context": {
"key": "context"
},
"properties": {
"key": "properties"
},
"status": "status"
}