Skip to main content
PUT
/
trust-centers
/
{slugId}
/
subscribers
/
{subscriberId}
/
groups
Set groups for a Trust Center subscriber
curl --request PUT \
  --url https://api.vanta.com/v1/trust-centers/{slugId}/subscribers/{subscriberId}/groups \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "groupIds": [
    "<string>"
  ]
}
'
{
  "id": "a2f7e1b9d0c3f4e5a6c7b8d9",
  "email": "subscriber@example.com",
  "isEmailVerified": true,
  "creationDate": "2020-01-01T00:00:00.000Z",
  "customerTrustAccountId": null,
  "groups": [
    {
      "id": "b3e8f2c0d1a4f5e6b7d8c9e0",
      "name": "Security Managers"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://vanta.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Path Parameters

slugId
string
required
subscriberId
string
required

Body

application/json
groupIds
string[]
required

Group IDs to set for the subscriber. The subscriber will be removed from any groups not included in this list.

Response

200 - application/json

Trust Center subscriber assigned to groups

id
string
required

Unique identifier for the subscriber.

email
string
required

Email of the subscriber.

isEmailVerified
boolean
required

Whether the subscriber's email has been verified.

creationDate
string<date-time>
required

When the subscriber was created.

customerTrustAccountId
string | null
required

The ID of the customer trust account this subscriber is linked to, if any.

groups
object[]
required

Groups this subscriber belongs to.