You will need a user that has admin rights to write the new version of the T&Cs
Panel | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Get an Auth Token |
...
using this guideline: How to get a Token for our APIs |
Use this command to set it:
Code Block |
---|
curl -X POST-location 'https://gateway.<baseUrl>/chat/graphql' \ --Hheader "'Content-Type: application/json"' \ --Hheader "'Authorization: Bearer YOUR_AUTH_TOKEN"{TOKEN}' \ --ddata '{ "query": "mutation CreateTermsAndConditionscreateTermsAndConditions($termsAndConditions: String!) {\n createTermsAndConditions( termsAndConditions: $termsAndConditions) {\"justn a test\nmulti line\n# Titles work as well and markdown\" ) { acceptanceStatus companyId createdAt createdBy id isUniqueTermsAndConditions text } }" }' \ YOUR_REQUEST_URL |
...
id\n text\n isUniqueTermsAndConditions\n createdBy\n createdAt\n companyId\n }\n}","variables":{"termsAndConditions":"just a test\nmulti line\n# Titles work as well and markdown"}}' |
You can use any markdown in the terms and conditions. As , as described here: https://www.markdownguide.org/basic-syntax/
Info |
---|
Setting the Terms & Conditions to an empty string will completely remove the Terms and Conditions upon login. |
...
Author |
---|