v13
latestOpenAPI 3.0.32026-07-31359869.4 MBRecord an artifacts cache usage event
Records an artifacts cache usage event. The body of this request is an array of cache usage events. The supported event types are HIT and MISS. The source is either LOCAL the cache event was on the users filesystem cache or REMOTE if the cache event is for a remote cache. When the event is a HIT the request also accepts a number duration which is the time taken to generate the artifact in the cache.
Query parameters
The Team identifier to perform the request on behalf of.
The Team slug to perform the request on behalf of.
Headers
The continuous integration or delivery environment where this artifact is downloaded.
The continuous integration or delivery environment where this artifact is downloaded.
1 if the client is an interactive shell. Otherwise 0
1 if the client is an interactive shell. Otherwise 0
Request body
Example request
[
{
"hash": "12HKQaOmR5t5Uy6vdcQsNIiZgHGB",
"duration": 400
}
]Response
Success. Event recorded.