SupportWidget
Update Trusted Domains
Replaces the hostnames the Support widget is allowed to render on. Entries are bare hostnames such as example.com, with no scheme, path, or wildcard. Subdomains of a listed host are included.
Authorization
Authorization AuthorizationBearer <token>
In: header
Path Parameters
projectIdrequiredstring
ID of the project whose trusted domains to replace.
Request Body
application/json
trustedDomainsrequiredarray<string>
Bare hostnames, such as example.com. Replaces the current list.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://www.saasco.com/api/v2/projects/string/support/trusted-domains" \ -H "Content-Type: application/json" \ -d '{ "trustedDomains": [ "string" ] }'{
"trustedDomains": [
"string"
]
}{
"code": "BAD_REQUEST",
"message": "Invalid input data",
"issues": []
}{
"code": "UNAUTHORIZED",
"message": "Authorization not provided",
"issues": []
}{
"code": "FORBIDDEN",
"message": "Insufficient access",
"issues": []
}{
"code": "NOT_FOUND",
"message": "Not found",
"issues": []
}{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error",
"issues": []
}