diff --git a/apify-api/openapi/components/objects/datasets/dataset-items.yaml b/apify-api/openapi/components/objects/datasets/dataset-items.yaml index 212a50d100..37684af855 100644 --- a/apify-api/openapi/components/objects/datasets/dataset-items.yaml +++ b/apify-api/openapi/components/objects/datasets/dataset-items.yaml @@ -93,6 +93,8 @@ sharedGet: &sharedGet example: barbar2 "400": $ref: ../../responses/BadRequest.yaml + "402": + $ref: ../../responses/PaymentRequired.yaml deprecated: false listById: diff --git a/apify-api/openapi/components/objects/datasets/dataset-statistics.yaml b/apify-api/openapi/components/objects/datasets/dataset-statistics.yaml index 2f00866dac..ae5d920af2 100644 --- a/apify-api/openapi/components/objects/datasets/dataset-statistics.yaml +++ b/apify-api/openapi/components/objects/datasets/dataset-statistics.yaml @@ -10,6 +10,8 @@ sharedGet: &sharedGet $ref: ../../responses/BadRequest.yaml "401": $ref: ../../responses/Unauthorized.yaml + "402": + $ref: ../../responses/PaymentRequired.yaml "403": $ref: ../../responses/Forbidden.yaml "404": diff --git a/apify-api/openapi/components/objects/datasets/dataset.yaml b/apify-api/openapi/components/objects/datasets/dataset.yaml index e1b85bbe11..4943bedd9f 100644 --- a/apify-api/openapi/components/objects/datasets/dataset.yaml +++ b/apify-api/openapi/components/objects/datasets/dataset.yaml @@ -52,6 +52,8 @@ sharedTaskLastRun: &sharedTaskLastRun sharedGet: &sharedGet responses: <<: [*common200, *commonErrors] + "402": + $ref: ../../responses/PaymentRequired.yaml deprecated: false getById: diff --git a/apify-api/openapi/components/objects/key-value-stores/key-value-store-keys.yaml b/apify-api/openapi/components/objects/key-value-stores/key-value-store-keys.yaml index dd468b58e1..fda7bc1711 100644 --- a/apify-api/openapi/components/objects/key-value-stores/key-value-store-keys.yaml +++ b/apify-api/openapi/components/objects/key-value-stores/key-value-store-keys.yaml @@ -31,6 +31,8 @@ sharedTagTaskLastRun: &sharedTagTaskLastRun sharedGet: &sharedGet responses: <<: *commonErrors + "402": + $ref: ../../responses/PaymentRequired.yaml "200": description: "" headers: {} diff --git a/apify-api/openapi/components/objects/key-value-stores/key-value-store-record.yaml b/apify-api/openapi/components/objects/key-value-stores/key-value-store-record.yaml index c2ecc8236a..d03d0058ce 100644 --- a/apify-api/openapi/components/objects/key-value-stores/key-value-store-record.yaml +++ b/apify-api/openapi/components/objects/key-value-stores/key-value-store-record.yaml @@ -31,6 +31,8 @@ sharedTagTaskLastRun: &sharedTagTaskLastRun sharedGet: &sharedGet responses: <<: *commonErrors + "402": + $ref: ../../responses/PaymentRequired.yaml "200": description: "" headers: {} diff --git a/apify-api/openapi/components/objects/key-value-stores/key-value-store.yaml b/apify-api/openapi/components/objects/key-value-stores/key-value-store.yaml index ca09ec0799..e6861631ae 100644 --- a/apify-api/openapi/components/objects/key-value-stores/key-value-store.yaml +++ b/apify-api/openapi/components/objects/key-value-stores/key-value-store.yaml @@ -52,6 +52,8 @@ sharedTaskLastRun: &sharedTaskLastRun sharedGet: &sharedGet responses: <<: [*common200, *commonErrors] + "402": + $ref: ../../responses/PaymentRequired.yaml deprecated: false getById: diff --git a/apify-api/openapi/components/objects/request-queues/request-queue-head.yaml b/apify-api/openapi/components/objects/request-queues/request-queue-head.yaml index 47b3ec0121..30275b0148 100644 --- a/apify-api/openapi/components/objects/request-queues/request-queue-head.yaml +++ b/apify-api/openapi/components/objects/request-queues/request-queue-head.yaml @@ -37,6 +37,8 @@ sharedGet: &sharedGet application/json: schema: $ref: ../../schemas/request-queues/HeadResponse.yaml + "402": + $ref: ../../responses/PaymentRequired.yaml <<: *commonErrors deprecated: false diff --git a/apify-api/openapi/components/objects/request-queues/request-queue-request.yaml b/apify-api/openapi/components/objects/request-queues/request-queue-request.yaml index 37970ff65a..798ff86046 100644 --- a/apify-api/openapi/components/objects/request-queues/request-queue-request.yaml +++ b/apify-api/openapi/components/objects/request-queues/request-queue-request.yaml @@ -37,6 +37,8 @@ sharedGet: &sharedGet application/json: schema: $ref: ../../schemas/request-queues/RequestResponse.yaml + "402": + $ref: ../../responses/PaymentRequired.yaml <<: *commonErrors deprecated: false diff --git a/apify-api/openapi/components/objects/request-queues/request-queue-requests.yaml b/apify-api/openapi/components/objects/request-queues/request-queue-requests.yaml index 97d3ee7ee4..5ee27fbb2f 100644 --- a/apify-api/openapi/components/objects/request-queues/request-queue-requests.yaml +++ b/apify-api/openapi/components/objects/request-queues/request-queue-requests.yaml @@ -37,6 +37,8 @@ sharedGet: &sharedGet application/json: schema: $ref: ../../schemas/request-queues/ListOfRequestsResponse.yaml + "402": + $ref: ../../responses/PaymentRequired.yaml <<: *commonErrors deprecated: false diff --git a/apify-api/openapi/components/objects/request-queues/request-queue.yaml b/apify-api/openapi/components/objects/request-queues/request-queue.yaml index 4fa32c9f7a..61c870be84 100644 --- a/apify-api/openapi/components/objects/request-queues/request-queue.yaml +++ b/apify-api/openapi/components/objects/request-queues/request-queue.yaml @@ -52,6 +52,8 @@ sharedTaskLastRun: &sharedTaskLastRun sharedGet: &sharedGet responses: <<: [*common200, *commonErrors] + "402": + $ref: ../../responses/PaymentRequired.yaml deprecated: false getById: diff --git a/apify-api/openapi/components/schemas/actor-runs/RunOptions.yaml b/apify-api/openapi/components/schemas/actor-runs/RunOptions.yaml index dc4b9a3f59..44bd4b8afb 100644 --- a/apify-api/openapi/components/schemas/actor-runs/RunOptions.yaml +++ b/apify-api/openapi/components/schemas/actor-runs/RunOptions.yaml @@ -24,9 +24,9 @@ properties: examples: [2048] maxItems: type: [integer, "null"] - minimum: 1 + minimum: 0 examples: [1000] maxTotalChargeUsd: - type: number + type: [number, "null"] minimum: 0 examples: [5] diff --git a/apify-api/openapi/components/schemas/actors/Actor.yaml b/apify-api/openapi/components/schemas/actors/Actor.yaml index 4cacd68d4e..6d609ab92d 100644 --- a/apify-api/openapi/components/schemas/actors/Actor.yaml +++ b/apify-api/openapi/components/schemas/actors/Actor.yaml @@ -94,7 +94,7 @@ properties: type: [string, "null"] examples: ["https://my-actor.apify.actor"] notice: - type: string + type: [string, "null"] examples: [NONE] categories: type: array diff --git a/apify-api/openapi/components/schemas/key-value-stores/KeyValueStoreStats.yaml b/apify-api/openapi/components/schemas/key-value-stores/KeyValueStoreStats.yaml index 2bf4db71b5..e1c063b9eb 100644 --- a/apify-api/openapi/components/schemas/key-value-stores/KeyValueStoreStats.yaml +++ b/apify-api/openapi/components/schemas/key-value-stores/KeyValueStoreStats.yaml @@ -2,8 +2,6 @@ title: KeyValueStoreStats required: - readCount - writeCount - - deleteCount - - listCount type: object properties: readCount: diff --git a/apify-api/openapi/components/schemas/store/StoreListActor.yaml b/apify-api/openapi/components/schemas/store/StoreListActor.yaml index 5b4505c5e1..f988b492b5 100644 --- a/apify-api/openapi/components/schemas/store/StoreListActor.yaml +++ b/apify-api/openapi/components/schemas/store/StoreListActor.yaml @@ -5,7 +5,6 @@ required: - name - username - stats - - currentPricingInfo type: object properties: id: @@ -34,7 +33,7 @@ properties: - MARKETING - LEAD_GENERATION notice: - type: string + type: [string, "null"] pictureUrl: type: [string, "null"] format: uri diff --git a/apify-api/openapi/components/schemas/users/UserPrivateInfo.yaml b/apify-api/openapi/components/schemas/users/UserPrivateInfo.yaml index 4443cc5d8d..5f4b8b2b09 100644 --- a/apify-api/openapi/components/schemas/users/UserPrivateInfo.yaml +++ b/apify-api/openapi/components/schemas/users/UserPrivateInfo.yaml @@ -1,7 +1,6 @@ title: UserPrivateInfo required: - username - - proxy - plan - effectivePlatformFeatures - isPaying diff --git a/apify-api/openapi/components/schemas/webhooks/Webhook.yaml b/apify-api/openapi/components/schemas/webhooks/Webhook.yaml index 3f52936ae8..6ef6faf7c8 100644 --- a/apify-api/openapi/components/schemas/webhooks/Webhook.yaml +++ b/apify-api/openapi/components/schemas/webhooks/Webhook.yaml @@ -45,7 +45,7 @@ properties: type: [boolean, "null"] examples: [false] requestUrl: - type: string + type: [string, "null"] format: uri examples: ["http://example.com/"] payloadTemplate: diff --git a/apify-api/openapi/paths/actor-tasks/actor-tasks@{actorTaskId}@run-sync-get-dataset-items.yaml b/apify-api/openapi/paths/actor-tasks/actor-tasks@{actorTaskId}@run-sync-get-dataset-items.yaml index 5f15d9ebdd..40e71a7888 100644 --- a/apify-api/openapi/paths/actor-tasks/actor-tasks@{actorTaskId}@run-sync-get-dataset-items.yaml +++ b/apify-api/openapi/paths/actor-tasks/actor-tasks@{actorTaskId}@run-sync-get-dataset-items.yaml @@ -67,6 +67,8 @@ get: $ref: ../../components/responses/BadRequest.yaml "401": $ref: ../../components/responses/Unauthorized.yaml + "402": + $ref: ../../components/responses/PaymentRequired.yaml "403": $ref: ../../components/responses/Forbidden.yaml "404": @@ -175,6 +177,8 @@ post: $ref: ../../components/responses/BadRequest.yaml "401": $ref: ../../components/responses/Unauthorized.yaml + "402": + $ref: ../../components/responses/PaymentRequired.yaml "403": $ref: ../../components/responses/Forbidden.yaml "404": diff --git a/apify-api/openapi/paths/actor-tasks/actor-tasks@{actorTaskId}@runs.yaml b/apify-api/openapi/paths/actor-tasks/actor-tasks@{actorTaskId}@runs.yaml index 707d0d3f32..3bd2fc8bce 100644 --- a/apify-api/openapi/paths/actor-tasks/actor-tasks@{actorTaskId}@runs.yaml +++ b/apify-api/openapi/paths/actor-tasks/actor-tasks@{actorTaskId}@runs.yaml @@ -133,6 +133,8 @@ post: $ref: ../../components/responses/BadRequest.yaml "401": $ref: ../../components/responses/Unauthorized.yaml + "402": + $ref: ../../components/responses/PaymentRequired.yaml "403": $ref: ../../components/responses/Forbidden.yaml "404": diff --git a/apify-api/openapi/paths/actors/acts@{actorId}@builds@default.yaml b/apify-api/openapi/paths/actors/acts@{actorId}@builds@default.yaml index 3d230cc0e9..9be94d9d95 100644 --- a/apify-api/openapi/paths/actors/acts@{actorId}@builds@default.yaml +++ b/apify-api/openapi/paths/actors/acts@{actorId}@builds@default.yaml @@ -25,6 +25,9 @@ get: $ref: ../../components/schemas/actor-builds/BuildResponse.yaml "400": $ref: ../../components/responses/BadRequest.yaml + "401": + # Although the endpoint does not require a token, the API still validates any token that is supplied and returns 401 for an invalid one. + $ref: ../../components/responses/Unauthorized.yaml "403": # It should be 404, but is 403 for backwards compatibility. https://github.com/apify/apify-core/pull/17414 $ref: ../../components/responses/Forbidden.yaml diff --git a/apify-api/openapi/paths/actors/acts@{actorId}@run-sync-get-dataset-items.yaml b/apify-api/openapi/paths/actors/acts@{actorId}@run-sync-get-dataset-items.yaml index 8f8d9ef4d5..070a912d43 100644 --- a/apify-api/openapi/paths/actors/acts@{actorId}@run-sync-get-dataset-items.yaml +++ b/apify-api/openapi/paths/actors/acts@{actorId}@run-sync-get-dataset-items.yaml @@ -87,6 +87,8 @@ post: myOtherValue: some other value "400": $ref: ../../components/responses/BadRequest.yaml + "401": + $ref: ../../components/responses/Unauthorized.yaml "402": $ref: ../../components/responses/PaymentRequired.yaml "403": diff --git a/apify-api/openapi/paths/store/store.yaml b/apify-api/openapi/paths/store/store.yaml index 5052105282..6efd4591d0 100644 --- a/apify-api/openapi/paths/store/store.yaml +++ b/apify-api/openapi/paths/store/store.yaml @@ -115,6 +115,8 @@ get: $ref: ../../components/schemas/store/ListOfActorsInStoreResponse.yaml "400": $ref: ../../components/responses/BadRequest.yaml + "401": + $ref: ../../components/responses/Unauthorized.yaml "405": $ref: ../../components/responses/MethodNotAllowed.yaml "429":