Versions Compared

Key

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

...

Excerpt

Fetch all sets of terms


Endpoint ID:2100
Method:

Status
colourGreen
titleGET

URL:

/permissions/terms

Request body:None


Span
stylewhite-space:pre
Response body:


JSON data with information about terms.

Code Block
titleExample 1 – Two terms exists
{
	"terms”: [
		{
			"id": "7a6776a3-9411-4d34-9866-99aa9ac7cc27",
			"name": "Some terms",
			"description": "This explains everything",
			"text": "",
            "versions": [
                {
                    "version": "1.0",
                    "state": "draft",
                    "text": "Please accept our terms and conditions"
                }
            ]
		},
		{
			"id": "1f788c79-7dde-407f-a976-6b08ffb4c75a",
			"name": "Some other terms",
			"description": "This explains these terms",
			"text": "Please accept our terms and conditions",
            "versions": [
                {
                    "version": "2.0",
                    "state": "active",
                    "text": "Please accept our terms and conditions"
                },
                {
                    "version": "1.0",
                    "state": "obsolete",
                    "text": "Accept our terms and conditions"
                }

		}
	]
}


Code Block
titleExample 2 – No terms exists
{
	"terms":[]
}