Skip to main content
POST
/
api
/
v1
/
preferences
Create a preference.
curl --request POST \
  --url https://api.revong.com/api/v1/preferences \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "desc": "<string>",
  "type": "<string>",
  "referenceType": "<string>",
  "reference": "<string>",
  "global": true,
  "default": true,
  "autoFit": true,
  "data": [
    [
      "<any>"
    ]
  ]
}'

Authorizations

Authorization
string
header
required

Bearer token with Platform JWT token or API Key.

Body

application/json
name
string
required

You must specify name.

type
string
required

Type of preference

referenceType
string
required

You must specify reference type (e.g. users/groups etc.), allowed pattern: "a-zA-Z-0-9_".

data
any[][]
required

You must provide details.

desc
string

You can specify desc.

reference
string

Id of reference

global
boolean

You can specify if preference is shared with everyone else ('false' by default).

default
boolean

You can specify if preference is default ('false' by default).

autoFit
boolean

You can specify if accessing to this preference force 'Auto fit fill columns' when accessing ('false' by default).

Response

OK.