Skip to main content
POST
/
api
/
v1
/
component
Create component.
curl --request POST \
  --url https://api.revong.com/api/v1/component \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "componentId": "<string>",
  "name": "<string>",
  "category": "<string>",
  "desc": "<string>",
  "type": "<string>",
  "active": true
}'

Authorizations

Authorization
string
header
required

Bearer token with Platform JWT token or API Key.

Body

application/json
componentId
string
required

componentId optionally used for existing components

name
string
required

Name is only used for the presentation.

type
string
required

Type of component must be one of: CODE_JS,CODE_TS,CODE_JS_LIB,CODE_TS_LIB,JSON_VALIDATOR.

active
boolean
required

Activate upon creation.

category
string

Category.

desc
string

Description.

Response

Created.