Skip to main content
POST
/
api
/
v1
/
resources
Create resource.
curl --request POST \
  --url https://api.revong.com/api/v1/resources \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "desc": "<string>",
  "category": "<string>",
  "type": "<string>",
  "restricted": true,
  "active": true,
  "metaSchemaId": "<string>",
  "groups": [
    "<string>"
  ],
  "users": [
    "<string>"
  ],
  "parentId": "<string>"
}'

Authorizations

Authorization
string
header
required

Bearer token with Platform JWT token or API Key.

Body

application/json
name
string
required

Name.

restricted
boolean
required

Provide if access should be restricted.

active
boolean
required

Provide if should be active/visible to users.

desc
string

Description.

category
string

Category.

type
string

You can provide type of resource (view schema) [DATA,BIG_DATA,TABLE,BIG_TABLE].

metaSchemaId
string

You must set default schematic from schema.

groups
string[]

Provide which groups should have access to it, once restricted is true.

users
string[]

Provide which users should have access to it, once restricted is true.

parentId
string

Provide if resource has parent resource.

Response

OK.