Skip to content
Local APIProfile groups

Create a group ​

Version overview
POST
/api/v1/groups

Create a regular profile group for the current team. The default group is managed by the system.

Request parameters

Authorization Bearer Token

Include your API Key as a Bearer token in the Authorization request header.

Authorization: Bearer <api-key>

Body parameters

requiredapplication/jsonGroupMutationRequest
Fields
stringrequired
Group name, unique within the current team
minLength: 1maxLength: 64
string | null
Group notes
maxLength: 500
Example

Generated from the schema; not a live response.

{
  "name": "string"
}

Request code examples

JavaScript / TypeScript: Node.js 18+ with fetch; PHP: cURL extension; Go: 1.16+; Java: JDK 11+. Replace the token and example parameter values before running.

curl -X POST -H 'Authorization: Bearer <TOKEN>' -H 'Content-Type: application/json' -d '{
  "name": "string"
}' 'http://local.zhongyibrowser.com:39025/api/v1/groups'

Responses

Success: code = 0. Failure: code > 0. Select a status to view its fields and example. Expand objects to inspect nested fields. Optional fields may be omitted.

Details of the created group

Body

application/jsonGroupDetailSuccessResponse
Fields
numberrequired
Business status code; always 0 on success
Enum
stringrequired
Business status message; always success on success
Enum
objectrequired
Endpoint business data

Additional fields are not allowed.

Example

Generated from the schema; not a live response.

{
  "code": 0,
  "message": "success",
  "data": {
    "id": "group_01JABCDEF1234567890",
    "name": "string",
    "remark": "string",
    "is_default": true,
    "browser_count": 0,
    "created_at": "2024-01-15T09:30:00Z",
    "updated_at": "2024-01-15T09:30:00Z",
    "browsers": [
      {
        "env_id": "env_01JABCDEF1234567890",
        "env_sn": "string",
        "env_name": "string",
        "remark": "string"
      }
    ]
  }
}

View all business error codes and HTTP statuses

ZYBrowser Local API documentation