🔐

POST /communities/:communityId/nftTypes

Allows you to upload an NFT type asset programmatically.

Caveat

Body

Note that the POST format should be form-data here since you are uploading an asset.
Field
Type
Description
name
string
Name of the NFT type. Must be unique to the community that the NFT type belongs to.
nftTypeId
string
ID of the NFT type. Must be globally unique and less than or equal to 50 characters in length.
assetFile
file
File of the NFT type asset. The file must be below 20MB, and the file must be of the type .png, .jpg, .jpeg, .gif, .mp4.
hasTextOverlay
boolean?
Optional boolean to indicate that there should be text overlay of the headline when the NFT image is uploaded. The logic to overlay the text is specific so please note that you must construct your NFT image in a certain way so the text is properly overlayed. Example NFT image with an overlay looks like this: https://images.mintkudos.xyz/nft/default/greenPurplePreview.png Default: false

Example Response

{
"assetUrl": "<https://images.mintkudos.xyz/nft/kudos/testNFTType.png>"
}