The POST /environments/{environmentId}/users/{userId}/agreementConsents/{agreementID} operation gives the actor the ability to accept an agreement for the specified user. This operation uses the application/vnd.pingidentity.consent.accept+json custom content type in the request header.

The request body specifies the language ID and the revision ID associated with the agreement ID specified in the request URL. The request also supports the consentedAt property to designate the timestamp to set for the time of consent. If this property is not provided, a value of Date.now is used by default.