POST notifications/createorupdateregistration
Request Information
URI Parameters
None.
Body Parameters
DeviceRegistrationName | Description | Type | Additional information |
---|---|---|---|
ApiKey | globally unique identifier |
Required |
|
ApplicationVersion | integer |
Required |
|
OSVersion | string |
Required |
|
ZoneID | integer |
Required |
|
Udid | string |
Required |
|
UserID | globally unique identifier |
Required |
|
RegistrationID | string |
Required |
|
Handle | string |
Required |
|
FavoritesLeafletRetailers | Collection of globally unique identifier |
Required |
Request Formats
application/json, text/json
Sample:
{ "ApiKey": "45903478-e69b-4ad2-afcf-cfadd3c91030", "ApplicationVersion": 2, "OSVersion": "sample string 3", "ZoneID": 4, "Udid": "sample string 5", "UserID": "979bb919-d60e-4d49-a3cd-968497dddf49", "RegistrationID": "sample string 7", "Handle": "sample string 8", "FavoritesLeafletRetailers": [ "394fc1fd-7b42-4305-8842-cd287e85eb9c", "5f7284fa-d8ad-4e25-95bd-f535eee16670" ] }
application/xml, text/xml
Sample:
<DeviceRegistration xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/agilys.myshopi.services.Notifications.Models"> <ApiKey>45903478-e69b-4ad2-afcf-cfadd3c91030</ApiKey> <ApplicationVersion>2</ApplicationVersion> <FavoritesLeafletRetailers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>394fc1fd-7b42-4305-8842-cd287e85eb9c</d2p1:guid> <d2p1:guid>5f7284fa-d8ad-4e25-95bd-f535eee16670</d2p1:guid> </FavoritesLeafletRetailers> <Handle>sample string 8</Handle> <OSVersion>sample string 3</OSVersion> <RegistrationID>sample string 7</RegistrationID> <Udid>sample string 5</Udid> <UserID>979bb919-d60e-4d49-a3cd-968497dddf49</UserID> <ZoneID>4</ZoneID> </DeviceRegistration>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
CreateOrUpdateRegistrationResultName | Description | Type | Additional information |
---|---|---|---|
Success | boolean |
None. |
|
IsGone | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": true, "IsGone": true }
application/xml, text/xml
Sample:
<CreateOrUpdateRegistrationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/agilys.myshopi.mvc.leaflets.services.Models.Notifications"> <IsGone>true</IsGone> <Success>true</Success> </CreateOrUpdateRegistrationResult>