Skip to main content
POST
/
v1
/
assessment-groups
/
{assessmentGroupId}
/
members
/
batchAdd
Add users to an Assessment Group
curl --request POST \
  --url https://client.synack.com/api/assessment/v1/assessment-groups/{assessmentGroupId}/members/batchAdd \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "members": [
    {
      "userUid": "u_5f3c8b2a",
      "role": "assessment_member"
    },
    {
      "userUid": "u_9e1d4f0c",
      "role": "rbac_group_admin"
    }
  ]
}
'
{
  "results": [
    {
      "userUid": "<string>",
      "id": 123,
      "errorDetail": "<string>"
    }
  ],
  "metadata": {
    "processedAt": "2023-11-07T05:31:56Z",
    "counts": {
      "added": 1,
      "removed": 1,
      "noop": 1,
      "error": 1
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

assessmentGroupId
integer
required

Numeric identifier of the Assessment Group.

Required range: x >= 1

Body

application/json
members
object[]
required
Required array length: 1 - 100 elements

Response

Batch processed. Inspect per-row status for outcomes.

results
object[]
required
metadata
object
required