REST API - updatePushDestination - using updatePushDestination element

The table summarizes the REST API - updatePushDestination.

Request

Format
PUT <baseurl>/orgmodel/pushdestination
Body updatePushDestinations element: Specifies an organization model entity and one or more push destinations to update. Pass the set-destination element to assign a new, or update an existing, push destination for the identified entity. Pass the remove-destination element to remove the identified push destination from the identified entity.

Response

JSON If successful, returns 200 OK in the response header, and an empty response body.
XML If successful, returns 200 OK in the response header, and an empty response body.

Example

Request
PUT <baseurl>/orgmodel/pushdestination
Request body
<updatePushDestinations model-version="-1" entity-type="RESOURCE" guid="0D954794-9DEF-4B99-9F12-F0B7A96D0F8E" >
         <set-destination name="Email" channel-type="EmailChannel" channel-id="openspaceEmailPush_DefaultChannel" enabled="true">
            <value>supportManager@megaCorp.com</value>
         </set-destination>
</updatePushDestinations>