Add a Network resource to the Network Access Profile resource.

POST /v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks

Mobile operator networks which Network Access Profiles allow access to

Add a Network resource to the Network Access Profile resource.

Path parameters

  • NetworkAccessProfileSid string Required

    The unique string that identifies the Network Access Profile resource.

application/x-www-form-urlencoded

Body

  • Network string Required

    The SID of the Network resource to be added to the Network Access Profile resource.

    Minimum length is 34, maximum length is 34. Format should match the following pattern: ^HW[0-9a-fA-F]{32}$.

Responses

  • 201 application/json

    Created

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • sid string | null

      The unique string that identifies the Network resource.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^HW[0-9a-fA-F]{32}$.

    • network_access_profile_sid string | null

      The unique string that identifies the Network resource's Network Access Profile resource.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^HA[0-9a-fA-F]{32}$.

    • friendly_name string | null

      A human readable identifier of the Network this resource refers to.

    • iso_country string | null

      The ISO country code of the Network resource.

    • identifiers array | null

      Array of objects identifying the MCC-MNCs that are included in the Network resource.

    • url string(uri) | null

      The absolute URL of the Network resource.

POST /v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks
curl \
 --request POST 'https://supersim.twilio.com/v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks' \
 --user "username:password" \
 --header "Content-Type: application/x-www-form-urlencoded" \
 --data 'Network=HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
Request example
{"Network"=>"HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
Response examples (201)
{
  "sid": "HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "url": "https://supersim.twilio.com/v1/NetworkAccessProfiles/HAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Networks/HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "identifiers": [
    {
      "mcc": "310",
      "mnc": "410"
    }
  ],
  "iso_country": "us",
  "friendly_name": "AT&T",
  "network_access_profile_sid": "HAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}