Skip to main content

Create an Incubator

This endpoint creates an incubator.

info

This operation requires authentication.

HTTP Request

POST /api/v2/incubator/

Parameters

NameInTypeRequiredDescription
namebodystringtrueA unique name for this incubator
slugbodystringfalseA unique slug (url valid string) for this incubator
sloganbodystringfalseA short text

Example Request


const inputBody = '{
"name": "string",
"slug": "string",
"slogan": "string"
}';
const headers = {
'Content-Type':'application/x-www-form-urlencoded',
'Accept':'application/json'
};

fetch('/api/v2/incubator/',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
201CreatedResponse status codeIncubator

Example responses

{
"id": "integer",
"name": "string",
"slug": "string",
"slogan": "string",
"status": "integer",
"approved_category": {Category},
"added_at": "string",
"user": {User},
"subscribers_count": "integer",
"subscribers_threshold": "integer",
"subscribed": "boolean"
}