The Batch API allows you to perform multiple operations on key-value pairs and/or custom entities in a single request. This can improve performance by reducing the number of network calls.
Sets multiple Key-Value Store and/or Custom Entity Store values in a single operation.
Returns a type BatchResponse which contains successfulKeys and failedKeys.
Forge and OAuth2 apps cannot access this REST resource.
array<anyOf [BatchSetTypedItemSchema, BatchSetUntypedItemSchema]>
Successfully set the keys to their corresponding values, returns list of successful and failed keys. Failed keys will contain details of the failure error codes.
1
2
3
4
5
6
7
8
9
10
11
curl --request POST \
--url 'https://api.atlassian.com/forge/storage/kvs/v1/batch/set' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '[
{
"key": "<string>",
"value": "<string>",
"entityName": "<string>"
}
]'1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
"successfulKeys": [
{
"key": "<string>",
"entityName": "<string>"
}
],
"failedKeys": [
{
"key": "<string>",
"entityName": "<string>"
}
]
}Rate this page: