Retry a build - Spacefast Docs
Retry a build
Creates a build from the original build’s source, settings snapshot, and target, and returns it. A repository build is queued straight away; an archive build starts waiting for source with a fresh upload target, because the original archive is not reused. Only a build that already settled can be retried.
Request
POST /v1/builds/{buildId}/retry
Authorization
Authorization: Bearer <token> · header required
Path parameters
buildId: string required
Responses
200 Response for status 200
{
"$schema": "string<uri>",
"data": {
"build": {
"id": "string",
"spaceId": "string",
"status": "waiting_for_source",
"input": {
"kind": "archive"
},
"source": null,
"settingsSnapshot": {
"rootDirectory": null,
"installDirectory": null,
"installCommand": null,
"buildCommand": null,
"outputDirectory": null,
"ignoredBuildCommand": null,
"frameworkPreset": null,
"platformPreset": null,
"allowUnsupportedPlatformFeatures": false,
"timeoutSeconds": 900
},
"target": {
"channel": null,
"preview": false
},
"retryOfBuildId": null,
"producedVersionId": "string",
"reusedVersionId": null,
"diagnostics": [],
"createdAt": "2019-08-24T14:15:22Z",
"startedAt": "2019-08-24T14:15:22Z",
"finishedAt": "2019-08-24T14:15:22Z"
},
"upload": null
}
}
Example Request
curl -X POST "https://api.spacefast.com/v1/builds/string/retry" \
-H "Authorization: Bearer YOUR_TOKEN"
const response = await fetch("https://api.spacefast.com/v1/builds/string/retry", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});
import requests
response = requests.post(
"https://api.spacefast.com/v1/builds/string/retry",
headers={
"Authorization": "Bearer YOUR_TOKEN"
},
)