PATCH
/
v1
/
teams
/
{teamId}
/
collections
/
{collectionId}
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.updateCollection({
  teamId: process.env.TX_AGENT_KIT_TEAM_ID ?? "teamId",
  collectionId: process.env.TX_AGENT_KIT_COLLECTION_ID ?? "collectionId",
  body: {},
})
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "teamId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "description": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Path Parameters

teamId
string
required
collectionId
string
required

Body

application/json
name
string

a string at most 128 character(s) long

Required string length: 1 - 128
description
string | null

Response

Success

id
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}$
teamId
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}$
name
string
required
description
string | null
required
createdAt
string
required
updatedAt
string
required