Web Call
Assign Allowed Domains
Assign allowed domains for web call application bundle
Assign Allowed Domains
Details
| Description | The "Assign Allowed Domains" Endpoint enables the assignment of domains or origins that will have access to and utilize the web call application bundle. |
|---|---|
| HTTP Method | PATCH |
| Endpoint URL | https://platform.innocalls.com/v1/api-gateway/web-call/:id/assign-allowed-domains |
| Authorization | To access the API endpoints, you need to authenticate using API keys and API secrets. The API supports Basic Authentication for authorization. You need to include your API ID as the username and your API secret as the password in the HTTP header when making requests. Replace API_ID with your API ID and API_SECRET with your API secret, separated by a colon (:). The value after Basic is the Base64 encoding of your API key and API secret concatenated with a colon. |
| Rate Limit | 3 requests per second |
Request Parameters
| Parameter | Description | Location | Constrains |
|---|---|---|---|
| id | The appId that obtained from the initiation process. | Path | Required |
| domains | Origins or domains that will utilize the bundle. | Body | Required At last one element |
Request Example
curl --request PATCH 'https://platform.innocalls.com/api/v1/api-gateway/web-call/:id/assign-allowed-domains' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic <base64-encoded string apiId:apiSecret>' \
--data '{
"domains": [
"https://platform.innocalls.com"
]
}'Success Response Example
A successful response is indicated by the HTTP status code 204.
Possible Errors
| Error Code | Description |
|---|---|
| 401 Unauthorized | Invalid Credential |
| 403 Forbidden | Not Enough Permissions to access the resource |
| 400 BadRequest | This error occurs due to malformed or invalid request parameters |
| 429 Too Many Requests | This occurs when requests exceed the rate limit |