Comment on page
Create a Project
post
https://api.underdogprotocol.com
/v2/projects
Create a Project
This endpoint allows you to create a new Project.
Parameters
No parameters
Body
Example
Schema
{
"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"
}
Responses
202: Accepted
401: Unauthorized
Unauthorized
403: Forbidden
Forbidden
404: Not Found
Not Found
cURL
JavaScript
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);
});
Response
{
"projectId": 4,
"transferable": false,
"transactionId": "f6818014-838c-45db-bf9e-70a55ffb14d6",
"mintAddress": "7eq4L3mxaaZxLw5JGP2dDtoYA71vPoRvszSUYSbqxGgF"
}
Last modified 8mo ago