POST Phones/{id}?failOnReassign={failOnReassign}

Assign phone to pool.

Returns

HTTP 200, 404, 400 (with validation errors)

Request Information

Parameters

NameDescriptionAdditional information
apiPhone
Phone object. Only 'DestinationNumber' and 'PoolID' will be used.
            Specify PoolID to assign phone to pool, or set it to 'null' otherwise.

Define this parameter in the request body.

id
Phone ID

Define this parameter in the request URI.

failOnReassign
when set to 'true', this API call will fail if phone is already assigned to pool. default - 'false'

Define this parameter in the request URI.

This parameter is optional.

Request body formats

application/json, text/json, text/html

Sample:
{
  "ID": 1,
  "PoolID": 2,
  "Number": "1300123456",
  "DestinationNumber": "0212345678",
  "Status": "2",
  "CombinedTrackingSource": "Direct",
  "Country": null,
  "State": null
}

application/xml, text/xml

Sample:
<ApiPhone xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CallTracker.Api.Models">
  <CombinedTrackingSource>Direct</CombinedTrackingSource>
  <Country i:nil="true" />
  <DestinationNumber>0212345678</DestinationNumber>
  <ID>1</ID>
  <Number>1300123456</Number>
  <PoolID>2</PoolID>
  <State i:nil="true" />
  <Status>2</Status>
</ApiPhone>