Skip to main content
POST
/
api
/
website_collections
JavaScript
import SnagSolutions from '@snagsolutions/sdk';

const client = new SnagSolutions({
  apiKey: 'My API Key',
});

await client.websites.websiteCollections.create({
  collectionAddress: '0x2c02efDd09B3BA1AEaDd3dCAa7aC7A37C1CBDA8A',
  name: 'x',
  network: 'abstract',
  organizationId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
  sortId: 99999,
  websiteId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
});
This response does not have an example.

Authorizations

X-API-KEY
string
header
required

Body

application/json

Body

Schema representing a website collection create request

organizationId
string<uuid>
required
Minimum length: 1
websiteId
string<uuid>
required
Minimum length: 1
name
string
required
Required string length: 1 - 256
collectionAddress
string
required
Required string length: 1 - 128
network
enum<string>
required
Available options:
abstract,
abstractTestnet,
apechain,
arbitrum,
avalanche,
avalancheFuji,
base,
baseSepolia,
berachain,
berachainArtio,
berachainBepolia,
binance,
bscTestnet,
campTestnet,
fantom,
fantomTestnet,
flowMainnet,
mainnet,
nexusTestnet,
optimism,
polygon,
polygon_mumbai,
skaleNebula,
skaleEuropa,
skaleCalypso,
solana,
sophon,
sophonTestnet,
sui,
superseed,
superseedSepolia,
vanar,
xai,
zksync,
coti,
cotiTestnet,
morph,
morphTestnet,
morphHolesky,
ultra,
ultraTestnet,
nitrograph,
sepolia,
optimism_sepolia,
arbitrumSepolia,
goerli,
optimism_goerli,
arbitrumGoerli,
basecamp,
somnia,
flow_cadence
sortId
integer
required
Required range: x <= 99999
themeId
string<uuid>
Minimum length: 1
royaltyFee
number | null
Required range: 0 <= x <= 100
royaltyFeeAddress
string | null
twitterUsername
string
Maximum length: 128
discordUrl
string
Maximum length: 2048
telegramUrl
string
Maximum length: 2048
instagramUsername
string
Maximum length: 2048
homeUrl
string
Maximum length: 2048
imageUrl
string | null
Maximum length: 2048
stakingAddress
string
Maximum length: 128

Response

200

I