Create a new internal number

This action will create a new internal number in the given unit.

Try this request in your browser

/api/ /internal_numbers/create

Headers

X-Auth-App
X-Auth-Token
X-Auth-Secret
X-Auth-Extension
X-Auth-Password
X-Proxy-Auth-Token
X-Proxy-Auth-Secret

Parameters

unit_id Integer
number String
name String
destination_type
destination_id
caller_id_prefix String
caller_id_passthrough Boolean

The request output will be shown here...

URL

https://connectapi.dial9.co.uk/api/v2/internal_numbers/create

Access

Must be authenticated as a user or API token. If not authorised, a AccessDenied error will be returned.

Parameters

Parameter Type Default

unit_id

The ID of the unit

Integer null

number

The number

String null

name

The name for the number

String null

destination_type

null

destination_id

null

caller_id_prefix

The prefix to add on calls from this number

String null

caller_id_passthrough

Whether or not caller IDs should pass through when unanswered

Boolean null

Errors

Error Attributes

UnitNotFound

The given unit was not found

  • id

    The provided ID

ValidationError

A validation error occurred

  • errors

    An array of errors

Response Data

This action will return a internal number structure.

You'll receive all attributes for this structure (basic and extended attributes). You'll receive all expansions for this stucture.