Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

Panel
panelIconId2139
panelIcon:information_source:
panelIconTextℹ️
bgColor#E6FCFF

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.

...