Description:
Upload a new set of members to the CompetitionLabs database.
We expect a POST request to be in the form of an array. An array can contain a maximum of 10,000 members in one request.
Resource URL:
https://<apphost>.competitionlabs.com/api/<your-space-name>/members
Request headers
| Key | Value | Required |
|---|---|---|
X-API-KEY | Your unique API key | Yes |
Content-Type | application/json | Yes |
Request URL parameters
Parameter | Type | Required | Description |
|---|---|---|---|
space | String | Yes | This is the space name which is linked to the account |
Post body parameters
Parameter | Type | Required | Description |
|---|---|---|---|
memberType | Enum | Yes | Type of member, accepted values: Individual, Team |
name | String | Optional | Display name of the member you want to create |
memberRefId | String | Yes | Member id on customer system |
groups | Array [String] | Optional | Group to which a member might belong |
metadata | Array [Object] | Optional | A list of MetaData |
accountId | String | Yes | Your space id |
EXAMPLE
ERROR CODES
| Code | HTTP Status | Description | Example |
|---|---|---|---|
| 503 | Member Ref Id parameter was excluded; | ||
| 1001 | 400 |
| |
| 1021 | 409 | Duplicate record found | |
| 1006 | 406 | Member with reference Id can not contain empty spaces | |
| 1003 |