Create an Incubator
This endpoint creates an incubator.
info
This operation requires authentication.
HTTP Request
POST /api/v2/incubator/
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
name | body | string | true | A unique name for this incubator |
slug | body | string | false | A unique slug (url valid string) for this incubator |
slogan | body | string | false | A short text |
Example Request
- JavaScript
- Bash
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);
});
# You can also use wget
curl -X POST /api/v2/incubator/ \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access_token}' \
--data-raw '{
"name": "string",
"slug": "string",
"slogan": "string"
}'
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
201 | Created | Response status code | Incubator |
Example responses
- 201
{
"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"
}