Update a check
PATCH
https://api.vercel.com/v1/deployments/{deploymentId}/checks/{checkId}Update an existing check. This endpoint must be called with an OAuth2 or it will produce a 400 error.
This endpoint is deprecated
https://api.vercel.com/v1/deployments/{deploymentId}/checks/{checkId}
const response = await fetch('https://api.vercel.com/v1/deployments/deploymentId/checks/checkId?teamId=string&slug=string', { method: 'PATCH', headers: { 'Authorization': 'Bearer YOUR_ACCESS_TOKEN', 'Content-Type': 'application/json', }, body: JSON.stringify({ "name": "Performance Check", "path": "/", "status": "running", "conclusion": "canceled", "detailsUrl": "https://example.com/check/run/1234abc", "output": { "metrics": { "FCP": { "value": "1200", "previousValue": "900", "source": "web-vitals" }, "LCP": { "value": "1200", "previousValue": "1000", "source": "web-vitals" }, "CLS": { "value": "4", "previousValue": "2", "source": "web-vitals" }, "TBT": { "value": "3000", "previousValue": "3500", "source": "web-vitals" }, "virtualExperienceScore": { "value": "30", "previousValue": "35", "source": "web-vitals" } } }, "externalId": "1234abc" }),});
const data = await response.json();console.log(data);Response
{ "id": "icfg_1234567890", "name": "Example Name", "createdAt": "123", "updatedAt": "123", "deploymentId": "example_id", "status": "completed", "conclusion": "canceled", "externalId": "example_id", "output": { "metrics": { "FCP": { "value": "123", "previousValue": "123", "source": "web-vitals" }, "LCP": { "value": "123", "previousValue": "123", "source": "web-vitals" }, "CLS": { "value": "123", "previousValue": "123", "source": "web-vitals" }, "TBT": { "value": "123", "previousValue": "123", "source": "web-vitals" }, "virtualExperienceScore": { "value": "123", "previousValue": "123", "source": "web-vitals" } } }, "completedAt": "123", "path": "string", "blocking": "false", "detailsUrl": "https://example.com", "integrationId": "example_id", "startedAt": "123", "rerequestable": "false"}AuthorizationbearerToken
Default authentication mechanism
application/json
200Success
400One of the provided values in the request body is invalid.
One of the provided values in the request query is invalid.
The provided token is not from an OAuth2 Client
401The request is not authorized.
403You do not have permission to access this resource.
404Check was not found
The deployment was not found
413The output provided is too large