v8

latestOpenAPI 3.0.1Apache 2.0raw.githubusercontent.com2026-05-061320128.0 KB
RoleAssignments

Create a role assignment

Create a role assignment for the given organization

post/Organizations/{OrganizationSid}/RoleAssignments

Path parameters

OrganizationSidstring OrganizationSid required
Example:ORa36de9717566c7eb6363671f54b87ba9

Request body

role_sidstring IamRoleSid required

Twilio Role Sid representing assigned role

scopestring Sid required

Twilio Sid representing scope of this assignment

identitystring Sid required

Twilio Sid representing identity of this assignment

resource_typestring nullable

The resource type for resource-level role assignments

resource_idstring nullable

The resource id for resource-level role assignments

Example request

{
  "role_sid": "IXc4ddb9d0befdb122b0eff334e3084544",
  "scope": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "identity": "USc4ddb9d0befdb122b0eff334e3084544"
}

Response

Created

sidstring IamRoleAssignmentSid

Twilio Role Assignment Sid representing this role assignment

role_sidstring IamRoleSid

Twilio Role Sid representing assigned role

scopestring Sid

Twilio Sid representing identity of this assignment

identitystring Sid

Twilio Sid representing scope of this assignment

resource_typestring nullable

The resource type for resource-level role assignments

resource_idstring nullable

The resource id for resource-level role assignments

Example response

{
  "sid": "IYc4ddb9d0befdb122b0eff334e3084544",
  "role_sid": "IXc4ddb9d0befdb122b0eff334e3084544",
  "scope": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "identity": "USc4ddb9d0befdb122b0eff334e3084544"
}