Apps

Updating an app

Updating an existing app is done via the PUT request on the /apps/{:aid} endpoint.

Important! You don't need to pass on the APNS certificates every time. Only do so if there’s a need to update the certificate values.

  • JSON
  • XML

Updating apps

The following endpoints allow users to update contact’s devices using the Whispir API:

{{codeStart}}

HTTP 1.1 PUT https://api.<region>.whispir.com/apps/{:aid}?apikey=<your_api_key>

Authorization: Basic am9obi5zbWl0aDpteXBhc3N3b3Jk

x-api-key: your_api_key

Content-Type: application/vnd.whispir.app-v1+json

{

"id": "521BBA863C2C230BD0E1BBA86",

"name": "My Push App",

"description": "Description of the App",

"options": {

"apiKey": "A valid UUID value",

"deviceLimit": "3",

"workspaces": "EBDCE9A46FE0398D",

"contactDescriptionField" : "jobTitle"

},

"gcm": {

"gcmProjectNumber": 0

},

"apns": {

"certificateDate": "2019-03-21T00:59:08.930Z"

},

"apnsSandbox": {

"certificateDate": "2017-03-21T00:59:08.930Z"

},

"registrationTypes": [

"SELF"

],

"managedBySystem": false,

"defaultWorkspaceEnabled": true,

}

{{codeEnd}}

The response to the PUT request upon success is a 204 No Content response with no content being provided.