The POST /environments/{environmentId}/agreements endpoint creates a new agreement resource in the specified environment.

The request body must include a unique name property value, and it can also include the reconsentPeriodDays property, which is an optional property to specify the number of days before the user must provide consent to the terms of service again.