API Reference
/- Shared Resources
- Local API
Add group
Create a profile group.
- Preconditions: the name must be non-empty, at most 100 characters, and not already used by a group in the team. A team is limited to 1000 groups.
- Effect: creates the group. When the team authorizes access per group and the caller is not the owner, the caller is also granted access to the new group.
- Completion: synchronous;
datacarries the new group id. - Retry: a duplicate name is rejected rather than reusing the existing group, so a retry after a successful-but-unseen call fails with a duplicate-name error — that is a signal the first call worked. Confirm with
/envgroup/page.
POST
curl -i -X POST \
http://127.0.0.1:40000/api/envgroup/create \
-H 'Content-Type: application/json' \
-d '{
"groupName": "Group-333"
}'Response
{ "code": 0, "msg": null, "data": { "id": "1673823102599682", "groupName": "example-name" }, "requestId": "0d8b6f1c-9f4e-4d02-9d1a-7c3f5a1b2c3d" }