Create a Project
This endpoint allows you to create a new Project.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
namestringRequiredExample:
Name stored as on-chain metadata
NFT #1symbolstringOptionalExample:
Symbol stored as on-chain metadata
NFTdescriptionstringOptionalExample:
Description stored in the metadata
This is my first NFTimagestringRequiredExample:
Image URL for your NFT
https://example.com/image.pngtransferablebooleanRequired
Whether or not the NFTs in this project can be transferred
animationUrlstringOptionalExample:
Animation URL for your NFT
https://example.com/animation.mp4Responses
202Success
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
404
Not Found
application/json
post
/v2/projectsExample
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
}'const axios = require('axios');
let data = JSON.stringify({
"name": "Project #420",
"image": "https://hatrabbits.com/wp-content/uploads/2017/01/random-word-1.jpg",
"transferable": false
});
let config = {
method: 'post',
url: 'https://dev.underdogprotocol.com/v2/projects',
headers: {
'Authorization': 'Bearer {token}',
'Content-Type': 'application/json'
},
data : data
};
axios(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
Last updated