Collections

Approve a generated variant reference

Select a completed candidate belonging to this variant. Creates its canvas and makes variant_id usable for generation. Does not generate poses or change active playback. Repeating approval of the same candidate is safe.

post/v1/collections/{id}/variants/{variantId}/approve

Request

  • Base URL: https://api.masko.ai
  • URL: https://api.masko.ai/v1/collections/{id}/variants/{variantId}/approve
  • Auth: HTTP bearer

Path parameters

idstring uuid required
variantIdstring uuid required

Headers

Idempotency-Keystring

Account-scoped key (1 to 255 characters, ideally a UUID). Retries must preserve the credential workspace, effective API version, URL, content type and exact body bytes, including multipart boundaries; different inputs return 409 idempotency_key_reused. Completed responses, including 500 errors, replay for 24 hours after completion with current resource access checked again. Running or unconfirmed executions return 409 idempotency_request_in_progress and do not expire automatically. A receipt persistence failure returns 503 idempotency_persistence_failed: retry only with the same key and inspect the operation outcome before starting a new request.

Request body

candidate_idstring uuid required

Completed candidate from this variant to use as its reference.

Response

Approved variant

Changes

No recorded changes to this operation across all 1 revision of this API.