Versions Compared

Key

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

...

Below is a curl command to post a GraphQL query to specify a set of organisation specific acronyms. Just replace the following placeholders: <baseUrl> / <yourToken> and add additional acronyms to the input.

To get the token and the URL check this: How to get a Token for our APIs

Code Block
languagebash
curl --location 'https://gateway.<baseUrl>/chat/graphql' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <yourToken>' \
--data '{"query":"mutation CompanyUpdateData($input: CompanyUpdateInput!) {\n  companyUpdateData(input: $input) {\n    id\n    acronyms\n  }\n}","variables":{"input":{"acronyms":[{"acronym":"ARB","text":"Allgemeine Rechtschutzbedingungen (ARB)"}]}}}'

A similar GraphQL query in postman looks as shown in the below screenshot.

...