System-level – Add CORS
URL: /admin/api/v1/system/tenants/cors
Method: POST
Authentication: Super AdminRequest body
Field |
Data type |
Mandatory |
Description |
Validations |
---|---|---|---|---|
domain |
String |
Y |
Request origin domain |
Can’t be null or empty. Must not contain white-spaces or special characters other than a full stop (.), dash (-), or asterisk (*). |
Context |
String |
Y |
Request API context |
Can’t be null or empty. Must not contain white-spaces or special characters other than a forward slash (/) or asterisk (*). |
POST /admin/api/v1/systems/tenants/cors
{
"domain":"outlook.vidyocloud.com",
"context":"/api/admin"
}
Response body
Field |
Data type |
Mandatory |
Description |
---|---|---|---|
id |
int |
Y |
CORS identifier |
domain |
String |
Y |
Request origin domain |
context |
String |
Y |
Request API context |
{
"id":1,
"domain":"outlook.vidyocloud.com",
"context": "/api/admin"
}
HTTP status codes, error codes, and messages
HTTP response code |
Error code |
Error message |
---|---|---|
400 |
2003 |
Domain is required |
400 |
2004 |
Context is required |
500 |
2005 |
Internal server error |
{
"message": "Something went wrong",
"errorCode": 2005
}