Create a group
POST
/groups
const url = 'https://api.dropslate.top/v1/groups';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"Shorts channels","accountIds":["acc_01"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.dropslate.top/v1/groups \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "Shorts channels", "accountIds": [ "acc_01" ] }'Requires write.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
required
string
description
string
color
#rrggbb
string
accountIds
Array<string>
Example
{ "name": "Shorts channels", "accountIds": [ "acc_01" ]}Responses
Section titled “ Responses ”The new group.
Media typeapplication/json
object
id
string
name
string
description
string
color
string
accountIds
Array<string>
Examplegenerated
{ "id": "example", "name": "example", "description": "example", "color": "example", "accountIds": [ "example" ]}The plan does not include groups.
Media typeapplication/json
object
code
required
string
message
required
string
hint
string
Example
{ "code": "not_found", "message": "The post does not exist.", "hint": "Check the id and try again."}The key is missing the “write” scope, or this route needs a signed-in session instead of a key.
Media typeapplication/json
object
code
required
string
message
required
string
hint
string
Example
{ "code": "not_found", "message": "The post does not exist.", "hint": "Check the id and try again."}