Create or Update Domain Group

Use this API to create a new domain group or update an existing domain group.

Path Params
string
required

ID of the domain in OneTrust Admin Portal. This string is obtained from the URL on the specific pages in OneTrust Admin Portal relating to that domain. (Example- The script page or the scan results page for that domain.)

Body Params
boolean

Flag to remove all domains from an existing group. Passing False instructs the API to append the incoming URL list to the existing one.

urls
array of strings
Defaults to

A list of urls to be added to the group.

urls
Responses
200

OK

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal Server Error.

Possible reason: Incorrect domain Id or if removeExisting flag is false and a url from the list is already there in the group

Language
Credentials
OAuth2
Missing 1 required scope
Response
Choose an example:
*/*