Skip to main content

Create a Status

This endpoint creates a status

info

This operation requires authentication.

HTTP Request

POST /api/v2/status/

Parameters

NameInTypeRequiredDescription
» actionbodystring¦nulltrueThe action of the status
» textbodystringfalseThe content of the status in html format, it can contain some mentions
» categoriesbodylist(integer)trueList of Category ids
» mediasbodylist(integer)falseList of Media (only one media of type share is allowed) ids
» locationbodyobject¦nullfalseThe Location object to associate with the status
»» locationbodystring¦nulltrueLocation name
»» latbodynumber¦nulltrueLocation latitude
»» lngbodynumber¦nulltrueLocation longitude
» addressingbodylist(integer)falseList of Tag ids

Example Body Parameters

{
"action": "string",
"text": "string",
"categories": ["integer"],
"medias": ["integer"],
"location": {
"location": "string",
"lat": "integer",
"lng": "integer"
},
"addressing": ["integer"],
"tags": ["integer"]
}

Example Request

const inputBody = '{
"action": "string",
"text": "string",
"categories": ["integer"],
"medias": ["integer"],
"location": {
"location": "string",
"lat": "integer",
"lng": "integer"
},
"addressing": ["integer"],
"tags": ["integer"]
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization': 'Bearer {access_token}'
};

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

Responses

StatusMeaningDescriptionSchema
201CreatedResponse status codeStatus

Example responses

{
"id": "integer",
"type": "string",
"last_activity_at": "string",
"author": {User},
"added_at": "string",
"last_edited_at": "string",
"html": "string",
"summary": "string",
"deleted": "boolean",
"collapsed": "boolean",
"comment_count": "integer",
"view_count": "integer",
"vote_count": "integer",
"reactions_count": [{Reaction}],
"voted": "boolean",
"reaction": {Reaction},
"follower_count": "integer",
"followed": "boolean",
"suspended": "boolean",
"flag_count": "integer",
"share_count": "integer",
"slug": "string",
"categories": [{Category}],
"medias": [{Media}],
"location": {Location},
"addressing": ["integer"],
"tags": ["integer"]
}