|
3 | 3 | - Actors |
4 | 4 | summary: Validate Actor input |
5 | 5 | description: | |
6 | | - Validates the provided input against the Actor's input schema for the specified build. |
| 6 | + Validates the JSON payload against the Actor's |
| 7 | + [input schema](https://docs.apify.com/actors/development/actor-definition/input-schema) |
| 8 | + defined in the specified build. |
7 | 9 |
|
8 | | - The endpoint checks whether the JSON payload conforms to the input schema |
9 | | - defined in the Actor's build. If no `build` query parameter is provided, |
10 | | - the `latest` build tag is used by default. |
| 10 | + If the specified build has no input schema, any input is considered valid. |
11 | 11 | operationId: actor_validateInput_post |
12 | 12 | parameters: |
13 | 13 | - $ref: "../../components/parameters/runAndBuildParameters.yaml#/actorId" |
14 | 14 | - name: build |
15 | 15 | in: query |
16 | 16 | description: | |
17 | | - Optional tag or number of the Actor build to use for input schema validation. |
18 | | - By default, the `latest` build tag is used. |
| 17 | + Actor build whose input schema is used for validation. Can be a build tag or build number. |
| 18 | + Defaults to the `latest` build tag. |
19 | 19 | required: false |
20 | 20 | style: form |
21 | 21 | explode: true |
22 | 22 | schema: |
23 | 23 | type: string |
24 | | - example: latest |
| 24 | + example: 0.1.234 |
25 | 25 | requestBody: |
26 | | - description: JSON input to validate against the Actor's input schema. |
| 26 | + description: | |
| 27 | + The Actor input as a JSON object. |
| 28 | +
|
| 29 | + You can omit fields that have a `default` in the input schema. They're |
| 30 | + filled in before validation. |
27 | 31 | content: |
28 | 32 | application/json: |
29 | 33 | schema: |
|
42 | 46 | properties: |
43 | 47 | valid: |
44 | 48 | type: boolean |
45 | | - description: Whether the input is valid according to the Actor's input schema. |
| 49 | + description: | |
| 50 | + Always `true`. The endpoint responds with `200` only when the input |
| 51 | + passes validation. Invalid input returns a `400` error. |
46 | 52 | "400": |
47 | 53 | $ref: ../../components/responses/BadRequest.yaml |
48 | 54 | "401": |
|
0 commit comments