The Transaction API allows you to perform multiple operations on key-value pairs and/or custom entities in a single atomic transaction. This ensures that either all operations succeed or none do, maintaining data integrity.
Lets you perform a series of Key-Value Store and/or Custom Entity Store operations that must all succeed or fail together. This method supports 3 types of operations:
Forge and OAuth2 apps cannot access this REST resource.
array<anyOf [SetTransactionTypedItemSchema, SetTransactionUntypedItemSchema]>
array<anyOf [BaseTransactionTypedItemSchema, BaseTransactionUntypedItemSchema]>
array<allOf [BaseTransactionTypedItemSchema, object]>
Successfully completed all the node operations
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
curl --request POST \
--url 'https://api.atlassian.com/forge/storage/kvs/v1/transaction' \
--header 'Content-Type: application/json' \
--data '{
"set": [
{
"key": "<string>",
"value": "<string>",
"entityName": "<string>",
"conditions": {}
}
],
"delete": [
{
"key": "<string>",
"entityName": "<string>",
"conditions": {}
}
],
"check": [
{
"key": "<string>",
"entityName": "<string>",
"conditions": {}
}
]
}'Rate this page: