Abort build
POST/v2/acts/:actorId/builds/:buildId/abort
This endpoint has been deprecated and may be replaced or removed in future versions of the API.
[DEPRECATED] API endpoints related to build of the Actor were moved
under new namespace actor-builds. Aborts an
Actor build and returns an object that contains all the details about the
build.
Only builds that are starting or running are aborted. For builds with status
FINISHED, FAILED, ABORTING and TIMED-OUT this call does nothing.
Request
Path Parameters
Actor ID or a tilde-separated owner's username and Actor name.
Example:janedoe~my-actorBuild ID.
Example:3KH8gEpp4d8uQSe8TStatus 200
Response Headers
{
"data": {
"id": "HG7ML7M8z78YcAPEB",
"actId": "janedoe~my-actor",
"userId": "klmdEpoiojmdEMlk3",
"startedAt": "2019-11-30T07:34:24.202Z",
"finishedAt": "2019-12-12T09:30:12.202Z",
"status": "ABORTED",
"meta": {
"origin": "WEB",
"userAgent": "Mozilla/5.0 (iPad)"
},
"stats": {
"durationMillis": 1000,
"runTimeSecs": 5.718,
"computeUnits": 0.012699444444444444
},
"options": {
"useCache": false,
"memoryMbytes": 1024,
"diskMbytes": 2048
},
"usage": {
"ACTOR_COMPUTE_UNITS": 0.08
},
"usageTotalUsd": 0.02,
"usageUsd": {
"ACTOR_COMPUTE_UNITS": 0.02
},
"buildNumber": "0.1.1"
}
}
Schema
data object required
- id string requiredExample:
HG7ML7M8z78YcAPEB - actId string requiredExample:
janedoe~my-actor - userId string requiredExample:
klmdEpoiojmdEMlk3 - startedAt string<date-time> requiredExample:
2019-11-30T07:34:24.202Z - finishedAt string,null<date-time> nullableExample:
2019-12-12T09:30:12.202Z - status ActorJobStatus (string) required
Status of an Actor job (run or build).
Possible values: [
READY,RUNNING,SUCCEEDED,FAILED,TIMING-OUT,TIMED-OUT,ABORTING,ABORTED] meta object required
- origin RunOrigin (string) required
Possible values: [
DEVELOPMENT,WEB,API,SCHEDULER,TEST,WEBHOOK,ACTOR,CLI,STANDBY] - clientIp string
IP address of the client that started the build.
Example:172.234.12.34 - userAgent string
User agent of the client that started the build.
Example:Mozilla/5.0 (iPad)
- origin RunOrigin (string) required
stats object
- anyOf
- BuildStats
- null
- durationMillis integerExample:
1000 - runTimeSecs numberExample:
45.718 - computeUnits number requiredExample:
0.0126994444444444
options object
- anyOf
- BuildOptions
- null
- useCache boolean | null nullableExample:
false - betaPackages boolean | null nullableExample:
false - memoryMbytes integer | null nullableExample:
1024 - diskMbytes integer | null nullableExample:
2048
usage object
- anyOf
- BuildUsage
- null
- ACTOR_COMPUTE_UNITS number | null nullableExample:
0.08
- usageTotalUsd number | null nullableExample:
0.02 usageUsd object
- anyOf
- BuildUsage
- null
- ACTOR_COMPUTE_UNITS number | null nullableExample:
0.08
- inputSchema string | null nullable deprecatedExample:
{\n "title": "Schema for ... } - readme string | null nullable deprecatedExample:
# Magic Actor\nThis Actor is magic. - buildNumber string requiredExample:
0.1.1 actorDefinition object
- anyOf
- ActorDefinition
- null
- actorSpecification integer
The Actor specification version that this Actor follows. This property must be set to 1.
Possible values: [
1] - name string
The name of the Actor.
- version string
The version of the Actor, specified in the format [Number].[Number], e.g., 0.1, 1.0.
Possible values: Value must match regular expression
^[0-9]+\.[0-9]+$ - buildTag string
The tag name to be applied to a successful build of the Actor. Defaults to 'latest' if not specified.
environmentVariables object
A map of environment variables to be used during local development and deployment.
- property name* string
- dockerfile string
The path to the Dockerfile used for building the Actor on the platform.
- dockerContextDir string
The path to the directory used as the Docker context when building the Actor.
- readme string
The path to the README file for the Actor.
- input object
The input schema object, the full specification can be found in Apify docs
- changelog string
The path to the CHANGELOG file displayed in the Actor's information tab.
storages object
- dataset object
Defines the schema of items in your dataset, the full specification can be found in Apify docs
- dataset object
defaultMemoryMbytes object
Specifies the default amount of memory in megabytes to be used when the Actor is started. Can be an integer or a dynamic memory expression.
- oneOf
- string
- integer
- stringExamples:
- Example 1
- Example 2
- Example 3
Example:get(inputExample:startUrls.lengthExample:1) * 1024
- minMemoryMbytes integer
Specifies the minimum amount of memory in megabytes required by the Actor.
Possible values:
>= 256 - maxMemoryMbytes integer
Specifies the maximum amount of memory in megabytes required by the Actor.
Possible values:
>= 256 - usesStandbyMode boolean
Specifies whether Standby mode is enabled for the Actor.
- id string requiredExample:
Status 400
Bad request - invalid input parameters or request body.
{
"error": {
"type": "invalid-input",
"message": "Invalid input: The request body contains invalid data."
}
}
Schema
error object required
- type string requiredExample:
run-failed - message string requiredExample:
Actor run did not succeed (run ID: 55uatRrZib4xbZs, status: FAILED)
- type string requiredExample: