Create a Project
This endpoint allows you to create a new Project.
Authorizations
Body
namestringRequiredExample:
Name stored as on-chain metadata
NFT #1
symbolstringOptionalExample:
Symbol stored as on-chain metadata
NFT
descriptionstringOptionalExample:
Description stored in the metadata
This is my first NFT
imagestringRequiredExample:
Image URL for your NFT
https://example.com/image.png
transferablebooleanRequired
Whether or not the NFTs in this project can be transferred
animationUrlstringOptionalExample:
Animation URL for your NFT
https://example.com/animation.mp4
Responses
202Success
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
404
Not Found
application/json
post
POST /v2/projects HTTP/1.1
Host: api.underdogprotocol.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 180
{
"name": "NFT #1",
"symbol": "NFT",
"description": "This is my first NFT",
"image": "https://example.com/image.png",
"transferable": true,
"animationUrl": "https://example.com/animation.mp4"
}
{
"transactionId": "text",
"projectId": 1,
"transferable": true,
"mintAddress": "EBeLw5jEdrEgDe17BdKGW2MizzGxtxigEuAGvYC7VzDp"
}
Example
curl --location --request POST 'https://dev.underdogprotocol.com/v2/projects' \
--header 'Authorization: Bearer {token}' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Project #420",
"image": "https://hatrabbits.com/wp-content/uploads/2017/01/random-word-1.jpg",
"transferable": false
}'
{
"projectId": 4,
"transferable": false,
"transactionId": "f6818014-838c-45db-bf9e-70a55ffb14d6",
"mintAddress": "7eq4L3mxaaZxLw5JGP2dDtoYA71vPoRvszSUYSbqxGgF"
}
Last updated