Approve or reject a clip
Это содержимое пока не доступно на вашем языке.
scope clips:reviewwrites
Decides one clip that is waiting for the brand (decidable in clip_detail), exactly as the Approve and Reject buttons do.
Everything the agent is told about this tool
Decides one clip that is waiting for the brand (decidable in clip_detail), exactly as the Approve and Reject buttons do. Approve (no code or note) starts the clip being measured; it then earns from the campaign’s reserve, so approve only what you would pay for. Reject needs a code from the clip’s rejectableFor and a note of at least 20 characters: the creator reads it, and it is kept if they appeal. A decision cannot be taken back by this API. A clip the creator has appealed is answered in the workspace (clip_appealed); a clip already decided is campaign_state; a reason the clip cannot be refused for is invalid_arguments; the key’s daily quota of decisions spent is cap_exceeded. Send an idempotencyKey; dryRun: true checks everything and decides nothing. Example: {"clipId": "<clipId>", "decision": "approve", "idempotencyKey": "decide-<clipId>"}; to reject: {"clipId": "<clipId>", "decision": "reject", "code": "link_missing", "note": "The required link is not in the description.", "idempotencyKey": "decide-<clipId>"}.
Arguments
Section titled “Arguments”| Name | Type | Required | Description |
|---|---|---|---|
clipId |
string |
yes | The clip’s id, as review_queue returns it. |
decision |
"approve" | "reject" |
yes | approve starts the clip earning from the campaign’s reserve; reject refuses it and the creator reads why. |
code |
"duration_too_short" | "platform_not_allowed" | "link_missing" | "hashtags_missing" | "ad_label_missing" | "disclaimer_missing" | "not_original" | "duplicate_submission" | "third_party_ads" | "brand_safety" | "views_anomaly" |
no | Required to reject, forbidden to approve: the reason, one of rejectableFor of the clip. A campaign can only refuse for a rule it set. |
note |
string |
no | Required to reject: what is wrong with the clip, in at least 20 and at most 500 characters. The creator reads it and it is kept if they appeal. No contact details. |
idempotencyKey |
string |
no | Any unique string for this attempt, for example a UUID. Sending the same key and body again returns the first answer instead of writing twice. |
dryRun |
boolean |
no | When true, runs every check and returns what would happen, and keeps nothing: no draft, no log entry, no event. |
A write: send an idempotencyKey (any unique string for this one intent). A call with dryRun: true needs none.
Example
Section titled “Example”curl https://countviews.com/api/public/v1/call \ -H "Authorization: Bearer $COUNTVIEWS_KEY" \ -H "Content-Type: application/json" \ -d '{"name":"clip_decide","arguments":{"clipId":"0199aaaa-bbbb-7ccc-8ddd-eeeeffff0001","decision":"approve","idempotencyKey":"decide-0199aaaa-bbbb-7ccc-8ddd-eeeeffff0001"}}'{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "clip_decide", "arguments": { "clipId": "0199aaaa-bbbb-7ccc-8ddd-eeeeffff0001", "decision": "approve", "idempotencyKey": "decide-0199aaaa-bbbb-7ccc-8ddd-eeeeffff0001" } }}{ "clipId": "0199aaaa-bbbb-7ccc-8ddd-eeeeffff0001", "decision": "approve", "idempotencyKey": "decide-0199aaaa-bbbb-7ccc-8ddd-eeeeffff0001"}