POST
/
v1
/
teams
/
{teamId}
/
collections
/
{collectionId}
/
assets
TypeScript client
import { TxAgentKitClient } from '@tx-agent-kit/sdk'

const client = new TxAgentKitClient({
  token: process.env.TX_AGENT_KIT_TOKEN
})

const response = await client.assets.addAssetToCollection({
  teamId: process.env.TX_AGENT_KIT_TEAM_ID ?? "teamId",
  collectionId: process.env.TX_AGENT_KIT_COLLECTION_ID ?? "collectionId",
  body: {},
})
{
  "deleted": true
}

Path Parameters

teamId
string
required
collectionId
string
required

Body

application/json
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}$

Response

Success

deleted
boolean
required