Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

You will need a user that has admin rights to write the new version of the T&Cs

Get an Auth Token using this guideline: How to get a Token for our APIs

Use this command to set it:

curl --location 'https://gateway.<baseUrl>/chat/graphql' \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_AUTH_TOKEN" \
  -d '{
    "query": "mutation CreateTermsAndConditions { createTermsAndConditions( termsAndConditions: \"just a test\nmulti line\n# Titles work as well and markdown\" ) { acceptanceStatus companyId createdAt createdBy id isUniqueTermsAndConditions text } }"
  }' \

You can use any markdown in the terms and conditions, as described here: https://www.markdownguide.org/basic-syntax/

Setting the Terms & Conditions to an empty string will completely remove the Terms and Conditions upon login.


 

  • No labels