POST
/
v1
/
teams
/
{teamId}
/
personas
/
{personaId}
/
media
/
{assetId}
/
promote
TypeScript client
import { OctosparkClient } from '@octospark/sdk'

const client = new OctosparkClient({
  token: process.env.OCTOSPARK_TOKEN
})

const response = await client.personas.promotePersonaMedia({
  teamId: process.env.OCTOSPARK_TEAM_ID ?? "teamId",
  personaId: process.env.OCTOSPARK_PERSONA_ID ?? "personaId",
  assetId: process.env.OCTOSPARK_ASSET_ID ?? "assetId",
})
{
  "personaId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "assetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "generationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "portrayedAge": 123,
  "isReference": true,
  "isPrimary": true,
  "sortOrder": 123,
  "promotedAt": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

teamId
string
required

Team (workspace) id (UUID). Discover ids via the list teams endpoint or the agent context.

personaId
string
required

Persona id (UUID), returned by list or create persona.

assetId
string
required

Persona-linked media asset id.

Response

Success

personaId
string<uuid>
required

a Universally Unique Identifier

Pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
assetId
string<uuid>
required

a Universally Unique Identifier

Pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
assignmentSource
enum<string>
required
Available options:
imported,
generated,
manual,
agent
generationId
string<uuid> | null
required

a Universally Unique Identifier

Pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
portrayedAge
integer | null
required

an integer

cameraView
enum<string> | null
required
Available options:
front,
three_quarter,
profile
framing
enum<string> | null
required
Available options:
headshot,
portrait,
half_body,
full_body
isReference
boolean
required
isPrimary
boolean
required
sortOrder
integer
required

an integer

promotedAt
string | null
required
createdAt
string
required
updatedAt
string
required