Update digital sample
Update configuration, prompts, advanced render parameters, or title/description of an existing digital sample. All fields in the body are optional.
Seed Video Replacement Policy:
If seedVideoUrl is provided, it replaces the current seed video. Note that replacing the seed video of a digital sample with active collaborations is blocked (returns 409 Conflict) to safeguard operational consistency. If a seed video is successfully replaced, any existing unlinked or old seed video is safely replaced in the database.
On an ACTIVE sample, replacing the seed may demote the sample to DRAFT and disable collab/public flags until the new seed is re-validated.
Authorizations
Your organization API key starting with yph_sk_live_…
Path Parameters
Body
Optional updated title (Max 120 characters).
120Optional description (Max 300 characters).
300Optional updated lifecycle status. Updating to ARCHIVED soft-deletes the sample and permanently blocks any new InstaSwap creations for it.
DRAFT, ACTIVE, ARCHIVED Optional custom positive render prompt (Max 2000 characters).
2000Optional custom negative render prompt (Max 2000 characters).
2000Optional updated seed FPS tier.
16, 24, 30 Optional updated CosyVoice replacement status.
Optional updatedPortrait 9:16 analysis size.
480, 720 Optional public HTTPS URL of a new seed video. YPH securely ingests and validates the file. Echoed in responses; use signedSeedVideoUrl to preview. Pass null to clear the seed.
Optional duration in seconds for the replaced seed (must be 170 seconds or less).
x <= 170Optional updated brand accountToken (pass null to clear).
128Optional updated catalog productToken (pass null to clear).
128Response
Updated successfully
Digital sample resource returned by GET, POST, and PATCH.
- Write-only (POST/PATCH body):
seedVideoUrl— your public HTTPS source URL. YPH ingests a copy into private storage. Use the presigned upload flow (/seed/upload-url+/seed/register) when uploading directly. - Read-only (responses):
signedSeedVideoUrl— short-lived presigned GET URL for preview/download. Never send this back on PATCH. - Echo (responses):
seedVideoUrlrepeats the external source URL you submitted (null when the seed was uploaded via presigned PUT or created in the YPH app). - Integrator identity:
accountTokenidentifies the brand (your marketplace advertiser).productTokenis your internal catalog product id. See Integrator tokens. - Credits: Org credit balance is not on this resource — use
GET /account(creditBalance).
