-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feat/code-samples-webhooks
- Loading branch information
Showing
19 changed files
with
158 additions
and
26 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
apify-api/openapi/components/schemas/actor-runs/ChargeRunRequest.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
title: ChargeRunRequest | ||
required: | ||
- eventName | ||
- eventCount | ||
type: object | ||
properties: | ||
eventName: | ||
type: string | ||
example: ANALYZE_PAGE | ||
eventCount: | ||
type: number | ||
example: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
apify-api/openapi/paths/actor-runs/actor-runs@{runId}@charge.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
post: | ||
tags: | ||
- Actor runs/Charge events in run | ||
summary: Charge events in run | ||
description: | | ||
Charge for events in the run of your [pay per event Actor](https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event). | ||
The event you are charging for must be one of the configured events in your Actor. If the Actor is not set up as pay per event, or if the event is not configured, | ||
the endpoint will return an error. The endpoint must be called from the Actor run itself, with the same API token that the run was started with. | ||
Note that pay per events Actors are still in alpha. Please, reach out to us with any questions or feedback. | ||
operationId: PostChargeRun | ||
parameters: | ||
- name: runId | ||
in: path | ||
required: true | ||
schema: | ||
type: string | ||
example: 3KH8gEpp4d8uQSe8T | ||
description: Run ID. | ||
- name: idempotency-key | ||
in: header | ||
required: false | ||
schema: | ||
type: string | ||
example: 2024-12-09T01:23:45.000Z-random-uuid | ||
description: Always pass a unique idempotency key (any unique string) for each charge to avoid double charging in case of retries or network errors. | ||
requestBody: | ||
description: 'Define which event, and how many times, you want to charge for.' | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "../../components/schemas/actor-runs/ChargeRunRequest.yaml" | ||
example: | ||
eventName: 'ANALYZE_PAGE' | ||
eventCount: 1 | ||
required: true | ||
responses: | ||
'201': | ||
description: 'The charge was successful. Note that you still have to make sure in your Actor that the total charge for the run respects the maximum value set by the user, as the API does not check this. Above the limit, the charges reported as successful in API will not be added to your payouts, but you will still bear the associated costs. Use the Apify charge manager or SDK to avoid having to deal with this manually.' | ||
deprecated: false | ||
x-js-parent: RunClient | ||
x-js-name: charge | ||
x-js-doc-url: https://docs.apify.com/api/client/js/reference/class/RunClient#charge | ||
x-py-parent: RunClientAsync | ||
x-py-name: charge | ||
x-py-doc-url: https://docs.apify.com/api/client/python/reference/class/RunClientAsync#charge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+59.8 KB
(170%)
sources/platform/integrations/images/api-token-organization.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+30.6 KB
sources/platform/integrations/images/api-token-scoped-default-storage-access.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+72.9 KB
sources/platform/integrations/images/api-token-scoped-restricted-access-active.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1012 Bytes
(100%)
sources/platform/integrations/images/api-token-scoped-run-modes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters