Skip to content

Rename a group ​

Rename a group by its group ID.

Definition: ApiFox POST · Checked on 2026-10-21.

Request ​

http
POST /api/updateGroup

Use the base URL and api-key shown on the client API screen. All examples use 9000 only as a placeholder port; see Overview for authentication.

JSON body ​

FieldTypeRequiredDescription
idintegerYesNumeric ID from group list; strict matching, not a numeric string
namestringYesUse a nonempty string; the API does not strictly validate it and omission may leave incomplete data

cURL example ​

bash
curl --request POST 'http://127.0.0.1:9000/api/updateGroup' \
  --header 'api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1,
  "name": "new name"
}'

Response example ​

json
{
  "success": true
}

Current client response fields ​

FieldTypeUsage
successbooleanRequest processing succeeded; not a guarantee that every item was written

For failed requests, check both HTTP status and the error body. See Errors & troubleshooting.

Use a numeric id and a nonempty string name. The current implementation does not fully validate the name; omission does not guarantee a 400 and may write incomplete data.

Temporary groups and profile membership

The group list combines stored groups with names derived from existing profile group values. Derived IDs may be temporary and are not necessarily persisted; they may change and update/delete by such an ID may return 404. Updating or deleting a group changes group configuration only, not profiles’ group values; a name still referenced by a profile may reappear. To move profiles, query and update their configurations explicitly.