Edit a group
PATCH
/groups/{id}
const url = 'https://api.dropslate.top/v1/groups/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","description":"example","color":"example","accountIds":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.dropslate.top/v1/groups/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "description": "example", "color": "example", "accountIds": [ "example" ] }'accountIds replaces membership; it does not merge. Requires write.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”id
required
string
Request Body
Section titled “Request Body”Media typeapplication/json
object
name
string
description
string
color
string
accountIds
Array<string>
Examplegenerated
{ "name": "example", "description": "example", "color": "example", "accountIds": [ "example" ]}Responses
Section titled “ Responses ”The group as edited.
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 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."}Does not exist, or belongs to a different workspace - the two look identical from here.
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."}