Update a build
⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
Records progress on a build. Any holder of the workspace token may patch any field — the webhook, the CI run and Composer each report the part of a deploy they can see, and the token is the boundary. Reaching running stamps startedAt and reaching a terminal state stamps finishedAt, both only if unset, so re-reporting the same state does not move the clock. Once a build has finished, its state no longer changes: a later report updates the other fields and leaves the state as the finishing report set it.
projectId, branchId, deployedUrl and applicationTopologyContentHash can each be set once and never changed: a reporter that resolves them partway through a deploy sets them here, but a value already recorded cannot be changed and the attempt is a conflict. Sending the value already recorded is accepted and changes nothing. projectId and branchId must belong to the caller's workspace, and a branch must belong to the build's project, so a branch from another project is refused.
Request
- Base URL: https://api.prisma.io
- URL: https://api.prisma.io/v1/builds/{buildId}
- Auth: one of:
- OAuth 2 (authorization code, authorization URL https://auth.prisma.io/authorize, token URL https://auth.prisma.io/token, scopes: workspace:admin, offline_access)
- HTTP bearer
Path parameters
Request body
Response
The updated build.
Changes
No recorded changes to this operation across all 1 revision of this API.