Skip to main content
POST
/
api
/
v1
/
accounts
/
{accountId}
/
projects
/
{projectId}
/
widgets
Create Widget
curl --request POST \
  --url https://api.example.com/api/v1/accounts/{accountId}/projects/{projectId}/widgets \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "type": "<string>",
  "configuration": {}
}
'
{
  "widget": {
    "id": "<string>",
    "projectId": "<string>",
    "description": "<string>",
    "name": "<string>"
  },
  "widgetConfiguration": {
    "id": "<string>",
    "description": "<string>",
    "name": "<string>",
    "configuration": {},
    "version": "<string>"
  }
}

Path Parameters

accountId
string
required

The ID of the account

projectId
string
required

The ID of the project

Body

application/json
name
string
required
type
string
required
configuration
object
required

Response

widget
object
required
widgetConfiguration
object
required