All Products
Search
Document Center

AI Guardrails:Create an individual

Last Updated:Mar 31, 2026

Creates an individual and assigns it to one or more individual groups. If a specified group does not exist, the group is created automatically.

An account can have up to 100 individual groups. A newly created group takes effect the next day. Before the group takes effect, add at least one face to the individual by calling the addFaces operation.

Rate limits

20 requests per second per account. Requests that exceed this limit are throttled.

Request syntax

POST /green/sface/person/add HTTPS|HTTP

Request headers

This operation uses only common request headers.

Request parameters

ParameterTypeRequiredExampleDescription
clientInfoJSONObjectNo{"userId":"120234234","userNick":"Mike","userType":"others"}The client information serialized from the ClientInfo structure in JSON format, including the unique machine identifier (UMID) and IMEI (International Mobile Equipment Identity) of the client. For details, see ClientInfo.

Request body

ParameterTypeRequiredExampleDescription
groupIdsStringArrayYes["group1","group2"]The IDs of the individual groups to assign the new individual to. Each ID can contain only letters, digits, underscores (_), and hyphens (-), and must be no more than 32 characters. If a specified group ID does not exist, the group is created automatically.
personIdStringYesperson1The ID of the individual. The ID can contain only letters, digits, underscores (_), and hyphens (-), and must be no more than 32 characters.
nameStringNoTomThe name of the individual.
noteStringNoMaleThe description of the individual.

Response elements

JSON-formatted data is returned for all requests. For common response parameters, see Common response parameters. Business-related data is returned in the data field.

The data field may be empty if an error occurs.

The following table describes the fields returned in data.

ParameterTypeExampleDescription
codeInteger200The HTTP status code. For more information, see Common error codes.
personIdStringperson1The ID of the individual.
groupIdsStringArray["group1","group2"]The IDs of the individual groups the individual belongs to.

Examples

Sample request

POST /green/sface/person/add HTTP/1.1
Common request headers
{
    "personId": "person1",
    "groupIds": [
        "group1",
        "group2"
    ]
}

Sample success response

{
    "code": 200,
    "requestId": "36D384DA-8023-4E84-BCFD-0C5581352C16",
    "data": {
        "code": 200,
        "personId": "person1",
        "groupIds": [
            "group1",
            "group2"
        ]
    }
}

Error codes

For a list of error codes, see Service error codes.