Body
-
Values are
channel
ordeployment
.
POST /v2/Services/{ServiceSid}/Roles
curl \
-X POST https://ip-messaging.twilio.com/v2/Services/{ServiceSid}/Roles \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'FriendlyName=string&Permission=string&Type=channel'
Request example
{
"FriendlyName": "string",
"Permission": [
"string"
],
"Type": "channel"
}
Request examples
{
"FriendlyName": "string",
"Permission": [
"string"
],
"Type": "channel"
}
Response examples (201)
{
"account_sid": "string",
"date_created": "2023-05-04T09:42:00+00:00",
"date_updated": "2023-05-04T09:42:00+00:00",
"friendly_name": "string",
"permissions": [
"string"
],
"service_sid": "string",
"sid": "string",
"type": "channel",
"url": "https://example.com"
}
Response examples (201)
{
"account_sid": "string",
"date_created": "2024-05-04T09:42:00+00:00",
"date_updated": "2024-05-04T09:42:00+00:00",
"friendly_name": "string",
"permissions": [
"string"
],
"service_sid": "string",
"sid": "string",
"type": "channel",
"url": "https://example.com"
}