Overview

Force-agree to an agreement on behalf of a specific user. This is accomplished by PUTting a JSON object with an agreed property set to true to /dc/api/v5/users/{userId}/agreements/{type}. On success, the server will return 204 No Content.

Examples

This example shows forcing agreement for a particular user by sending a JSON object with agreed: true.

Request
PUT /dc/api/v5/users/782ecb882901dfa239247b1cd48a89b2/agreements HTTP/1.1
Host: org.digitalchalk.com
Accept: application/json
Content-Type: application/json

{ "agreed": true }

Response
HTTP/1.1 204 No Content
Content-Type: application/json

References