doc-exports/docs/modelarts/api-ref/CreateWorker.html
Beibei 525370b67d
ModelArts GA API 06052022 from R&D (#14)
ModelArts GA API 06052022 from R&D

R&D has provided a right version of ModelArts GA API (06052022)

Reviewed-by: Artem Goncharov <Artem.goncharov@gmail.com>
2022-05-23 16:26:34 +00:00

6.4 KiB

Creating a Labeling Team Member

Function

This API is used to create a labeling team member.

URI

POST /v2/{project_id}/workforces/{workforce_id}/workers

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

workforce_id

Yes

String

ID of a labeling team.

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

description

No

String

Member description. The description contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

emails

Yes

String

Email address of a labeling team member.

role

Yes

Integer

Member role. The options are as follows: - 0: labeling personnel - 1: reviewer - 2: team administrator

Response Parameters

None

Example Requests

Creating a Labeling Team Member

{
  "emails" : "xxx@xxx.com",
  "description" : "",
  "role" : "2"
}

Example Responses

Status code: 201

Created

{ }

Status Codes

Status Code

Description

201

Created

401

Unauthorized

403

Forbidden

404

Not Found

Error Codes

See Error Codes.