Skip to main content
PATCH
Update digital sample

Authorizations

Authorization
string
header
required

Your organization API key starting with yph_sk_live_…

Path Parameters

id
string<uuid>
required

Body

application/json
title
string

Optional updated title (Max 120 characters).

Maximum string length: 120
description
string | null

Optional description (Max 300 characters).

Maximum string length: 300
status
enum<string>

Optional updated lifecycle status. Updating to ARCHIVED soft-deletes the sample and permanently blocks any new InstaSwap creations for it.

Available options:
DRAFT,
ACTIVE,
ARCHIVED
positiveRenderPrompt
string | null

Optional custom positive render prompt (Max 2000 characters).

Maximum string length: 2000
negativeRenderPrompt
string | null

Optional custom negative render prompt (Max 2000 characters).

Maximum string length: 2000
renderSeedFps
enum<integer>

Optional updated seed FPS tier.

Available options:
16,
24,
30
renderVoiceConversionEnabled
boolean

Optional updated CosyVoice replacement status.

renderEntryWidth
enum<integer>

Optional updatedPortrait 9:16 analysis size.

Available options:
480,
720
seedVideoUrl
string<uri> | null

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.

seedVideoDurationSec
integer | null

Optional duration in seconds for the replaced seed (must be 170 seconds or less).

Required range: x <= 170
accountToken
string | null

Optional updated brand accountToken (pass null to clear).

Maximum string length: 128
productToken
string | null

Optional updated catalog productToken (pass null to clear).

Maximum string length: 128

Response

Updated successfully

digitalSample
object

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): seedVideoUrl repeats the external source URL you submitted (null when the seed was uploaded via presigned PUT or created in the YPH app).
  • Integrator identity: accountToken identifies the brand (your marketplace advertiser). productToken is your internal catalog product id. See Integrator tokens.
  • Credits: Org credit balance is not on this resource — use GET /account (creditBalance).
Example: