Skip to main content
PATCH
/
teams
/
groups
/
{id}
Update a permission group
curl --request PATCH \
  --url https://app.autoposting.ai/api-proxy/teams/groups/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Content Editor",
  "permissions": [
    "posts:read",
    "posts:write",
    "brands:read"
  ]
}
'
{
  "success": true,
  "data": {
    "id": "group_01HXYZ",
    "name": "Content Editor",
    "permissions": [
      "posts:read",
      "posts:write",
      "brands:read"
    ],
    "memberCount": 0
  }
}

Authorizations

Authorization
string
header
required

API key as Authorization: Bearer sk-social-...

Path Parameters

id
string
required

Body

application/json
name
string
Example:

"Content Editor"

permissions
string[]
Example:
["posts:read", "posts:write", "brands:read"]

Response

Success

success
boolean
required
Example:

true

data
object
required