POST api/notification/RegisterIOSDevice

Register an IOS device

Request Information

URI Parameters

None.

Body Parameters

The notification model

NotificationModel
NameDescriptionTypeAdditional information
memberId

The member id.

integer

None.

deviceId

The device id

string

None.

token

The device token

string

None.

birthdayEnabled

Are birthday notifications enabled.

boolean

None.

loanEnabled

Are loan notifications enabled.

boolean

None.

taskEnabled

Are task notifications enabled.

boolean

None.

emailEnabled

Are email notifications enabled.

boolean

None.

opportunityEnabled

Are opportunity notifications enabled.

boolean

None.

generalEnabled

Are general notifications enabled.

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "memberId": 1,
  "deviceId": "sample string 2",
  "token": "sample string 3",
  "birthdayEnabled": true,
  "loanEnabled": true,
  "taskEnabled": true,
  "emailEnabled": true,
  "opportunityEnabled": true,
  "generalEnabled": true
}

application/xml, text/xml

Sample:
<NotificationModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UsherpaLO.WebService.Mobile.Models">
  <BirthdayEnabled>true</BirthdayEnabled>
  <DeviceId>sample string 2</DeviceId>
  <EmailEnabled>true</EmailEnabled>
  <GeneralEnabled>true</GeneralEnabled>
  <LoanEnabled>true</LoanEnabled>
  <MemberId>1</MemberId>
  <OpportunityEnabled>true</OpportunityEnabled>
  <TaskEnabled>true</TaskEnabled>
  <Token>sample string 3</Token>
</NotificationModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.