Default key-value store
Update default store
Updates the default key-value store's name and general resource access level using a value specified by a JSON object passed in the PUT payload.
This endpoint is a shortcut for getting the run's defaultKeyValueStoreId and then using the Update store endpoint.
put/v2/actor-runs/{runId}/key-value-store
Path parameters
runIdstring required
Example:3KH8gEpp4d8uQSe8T
Actor run ID.
Request body
Example request
{
"name": "new-store-name",
"generalAccess": "RESTRICTED"
}Response
Example response
{
"data": {
"id": "WkzbQMuFYuamGv3YF",
"name": "d7b9MDYsbtX5L7XAj",
"userId": "BPWDBd7Z9c746JAnF",
"username": "janedoe",
"createdAt": "2019-12-12T07:34:14.202Z",
"modifiedAt": "2019-12-13T08:36:13.202Z",
"accessedAt": "2019-12-14T08:36:13.202Z",
"consoleUrl": "https://console.apify.com/storage/key-value-stores/27TmTznX9YPeAYhkC",
"keysPublicUrl": "https://api.apify.com/v2/key-value-stores/WkzbQMuFYuamGv3YF/keys?signature=abc123",
"recordsPublicUrl": "https://api.apify.com/v2/key-value-stores/WkzbQMuFYuamGv3YF/records",
"generalAccess": "RESTRICTED",
"stats": {
"readCount": 9,
"writeCount": 3,
"deleteCount": 6,
"listCount": 2,
"s3StorageBytes": 18,
"storageBytes": 457225
}
}
}