Create resource association
Create a resource association.
Authorizations:
Scopes:
Request rate limit:
Request Body schema:
application/jsonresourceType required | string Enum: "NUMBER" "DOMAIN" "ALPHA" The type of resource to be used. |
channel required | string Enum: "SMS" "MMS" "EMAIL" The channel for which the resource will be used. |
applicationId required | string <= 255 characters The unique identifier of the application. This ID will be a URL path parameter. We recommend using values that do not need URL encoding for easier interaction with other API endpoints. |
entityId required | string <= 255 characters The unique identifier of the entity. This ID will be a URL path parameter. We recommend using values that do not need URL encoding for easier interaction with other API endpoints. If no entity is associated with this resource, set the entityId to |
resourceId required | string <= 255 characters The unique identifier of the resource. It depends on both the |
Responses
Created
Bad Request
Unauthorized
Forbidden
Not Found
Conflict
Too Many Requests
Internal Server Error
Request samples
- Payload
- cURL
- Java
- C#
- Go
- Python
- PHP
- JavaScript
- NodeJs
- Ruby
{- "resourceType": "NUMBER",
- "channel": "SMS",
- "applicationId": "test-application",
- "entityId": "test-entity",
- "resourceId": "test-resource"
}
Response samples
- 400
- 401
- 403
- 404
- 409
- 429
- 500
{- "requestError": {
- "serviceException": {
- "messageId": "BAD_REQUEST",
- "text": "Bad request"
}
}
}
Need assistance
Encountering issues
What's new? Check out
Unsure about a term? See