WebAPI/SimplePush: Difference between revisions

Line 185: Line 185:
</p><p>This request requires a X-UserAgent-ID header. If the UserAgent attempts to POST information to the server which already has data for that X-UserAgent-ID, the server will deny the request with a 403 error. In that case, the UserAgent should request re-registration for all Channels.  
</p><p>This request requires a X-UserAgent-ID header. If the UserAgent attempts to POST information to the server which already has data for that X-UserAgent-ID, the server will deny the request with a 403 error. In that case, the UserAgent should request re-registration for all Channels.  
</p>
</p>
<ol><li> Server state <b>MUST</b> be considered the canonical state, <i>unless</i> the server has NO state.
 
</li><li> On an /update call, the server <b>MUST</b> <i>atomically</i> update its state.
</li></ol>
<h5> Arguments </h5>
<h5> Arguments </h5>
<p>The POST body is a JSON encoded block which matches the form and structure of the GET /update/ request.
<p>The POST body is a JSON encoded block which matches the form and structure of the GET /update/ request.
Confirmed users
93

edits