Versions Compared

Key

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

...

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 CreateTermsAndConditions createTermsAndConditions($termsAndConditions: String!) {\n  createTermsAndConditions( termsAndConditions: \"just a test\nmulti line\n# Titles work as well and markdown\" ) { acceptanceStatus companyId createdAt createdBy id isUniqueTermsAndConditions text } }"
  }' \
  YOUR_REQUEST_URL
$termsAndConditions) {\n    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 described here: https://www.markdownguide.org/basic-syntax/

...