# Update token contract ADMIN: Update token contract information Endpoint: PUT /tokens/{id} Version: 2.0.2 Security: tenantAdminJWT ## Path parameters: - `id` (string, required) ## Request fields (application/json): - `isGallery` (boolean) This indicates if token should be included as a gallery. This is useful for ERC721 or ERC1155 tokens. - `name` (string) The name of the token - `symbol` (string) The symbol of the token ## Response 200 fields (application/json): - `id` (string, required) Id of the token - `contractAddress` (string, required) Address of the token - `metadata` (array) Metadata of the token, this is optional and can be null in case of Point token - `metadata.imageUrl` (string) This is the URL to the image of the item. Can be just about any type of image (including SVGs, which will be cached into PNGs by OpenSea), IPFS or Arweave URLs or paths. We recommend using a minimum 3000 x 3000 image. - `metadata.externalUrl` (string) This is the URL that will appear below the asset's image - `metadata.description` (string) A human-readable description of the item. Markdown is supported. - `metadata.name` (string) Name of the item. - `metadata.expiryDate` (string) expiry date in case of an utility reward - `metadata.animationUrl` (string) A URL to a multi-media attachment for the item. The file extensions GLTF, GLB, WEBM, MP4, M4V, OGV, and OGG are supported, along with the audio-only extensions MP3, WAV, and OGA. Animation_url also supports HTML pages, allowing you to build rich experiences and interactive NFTs using JavaScript canvas, WebGL, and more. Scripts and relative paths within the HTML page are now supported. However, access to browser extensions is not supported. - `metadata.youtubeUrl` (string) A URL to a YouTube video (only used if animation_url is not provide - `metadata.creatorAccountAddress` (string) Creator Address - `metadata.previewUrl` (string) Preview Url - `metadata.id` (string, required) Token Metadata id - `metadata.animationWeb3StorageUrl` (string) web3 storage url for the animation file - `metadata.imageWeb3StorageUrl` (string) web3 storage url for the image - `metadata.web3StorageUrl` (string) Storage Url - `metadata.tokenMetadataIncrementalId` (number, required) Token Metadata Incremental Id - `metadata.isActive` (boolean, required) Is active - `abi` (object, required) this is the abi of the contract, this is the interface of the contract to interact with it - `chainId` (number, required) this is the chain id of the chain where the token is deployed - `abiUrl` (object, required) this is the url of the abi of the contract, to be used to fetch the abi of the contract - `name` (string) this is the name of the token contract - `symbol` (string) this is the symbol of the token contract, this is optional and can be null - `decimals` (number) this is the decimals of the token. This is optional and only used for ERC20 tokens (Points) - `isActive` (boolean, required) This can be used to enable or disable the token - `isGallery` (boolean, required) This can be used to enable or disable the token for gallery - `type` (string, required) This is the underlying web3 native type of the token contract Enum: "ERC20", "ERC1155", "ERC721"