Record an artifacts cache usage event
Changed onRecords 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.
Request
- Base URL: https://api.vercel.com
- URL: https://api.vercel.com/v8/artifacts/events
- Auth: HTTP bearer
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.
1 if the client is an interactive shell. Otherwise 0
Request body
Example request
[
{
"hash": "12HKQaOmR5t5Uy6vdcQsNIiZgHGB",
"duration": 400
}
]Response
Success. Event recorded.
Changes
- info
added the non-success response with the status
- info
- warning
deleted the
headerrequest parameter'x-Artifact-Client-Ci' - warning
deleted the
headerrequest parameter'x-Artifact-Client-Interactive' - info
added the new optional
headerrequest parameterx-artifact-client-ci - info
added the new optional
headerrequest parameterx-artifact-client-interactive
- warning