Endpoint Reference

PUT Phone

Updates the indicated phone to reflect the request data provided.

Request URL

https://{school}.myschoolapp.com/api/user/phone/[phoneId]?t={token}[&userID]

Parameters

ParameterRequiredTypeDescription
phoneIDint The ID of the phone to associate with another user. The phoneID is returned in the GET Phone call.
userIDint The ID of the user to associate the phone entry with. The UserID is returned in the GET Users call.

Request headers

HeaderRequiredTypeDescription
Content-TypestringMedia type of the body sent to the API.

Request body

First call GET Phone, then modify the PhoneNumber element.

PropertyRequiredTypeDescription
PhoneobjectA valid Phone object.
PhoneTypeLinkobjectA valid PhoneTypeLink object.
JSON
{
  "PhoneId": 2250014,
  "PhoneNumber": "377-337-3777",
  "Type": "Business/College",
  "TypeId": 1713,
  "PhoneTypeLink": [
    {
      "TypeId": 1713,
      "Type": "Business/College",
      "PhoneId": null,
      "UserId": 2716843,
      "Shared": false,
      "SharedUser": null,
      "SharedRelationShip": null,
      "InsertDate": null,
      "LastModifyDate": null,
      "LastModifyUserId": null,
      "vendor_external_id": null
    }
  ]
}

Response 200

A Response Message containing the updated phone ID.

JSON
{
  "Message": "2250014"
}

Phone Properties

NameDescriptionType
PhoneIDinteger
PhoneNumberstring

PhoneType Properties

NameDescriptionType
Typestring
TypeIDinteger
NameDescriptionType
UserIDinteger
PhoneIDinteger
Typestring
TypeIDinteger