Create a user agreement
POST/user-agreements
Creates a new user agreement. Requires system-settings.fullaccess. The body must include AgreementName, Description, and TermsOfUse and no other keys (IPV-1008). AgreementName must be 3-120 characters, start with a letter, use only letters, digits, and underscores, and be unique case-insensitively (IPV-1004, IPV-1018).TermsOfUse is the markdown file as a base64 string; it is stored and a new Version (unix epoch seconds) is returned. Repeating the same body creates a new version unless the name already exists.
Request
Responses
- 200
- 400
- 500
Fixed Message plus Version unix-epoch string used as the DynamoDB GSI key and S3 object name.
Response Headers
AUTH-1001 missing role_id. AUTH-1030 missing system-settings.fullaccess. IPV-1008 extra or missing body keys (extra keys reuse the missing-key message). IPV-1001 empty AgreementName or TermsOfUse. IPV-1004 invalid AgreementName. IPV-1018 duplicate AgreementName.
Response Headers
Uncaught Exception formatted as RTE-1001 via EMF-1001, including invalid base64 TermsOfUse, S3 upload failure, or DynamoDB put failure.