Create Widget
Request
name | value |
---|---|
url | https://dev.pulsoid.net/api/v1/widgets |
method | POST |
scope | widgets:update |
Body Param Accepts JSON object with the following fields
name | value |
---|---|
configuration | Json representing new widget's configuration |
name | Name of the widget |
meta_id | Currently only basic bpm is supported so the value should be hardcoded to bf6bdf21-10a7-4a28-97ec-a239e6c77f8b |
Response
Curl Request Example
curl --request POST \
--url https://pulsoid.net/api/v1/widgets \
--header 'Authorization: Bearer 47ee2a9f-624d-4ed3-84db-8104b229f21c' \
--header 'Content-Type: application/json' \
--data '{
"meta_id": "bf6bdf21-10a7-4a28-97ec-a239e6c77f8b",
"name": "Test",
"configuration": {
"heartEnabled": false
}
}'
Response Example
{
"widget": {
"id": "a9b9768c-b907-40b7-9530-ae515d8df6b0",
"meta_id": "bf6bdf21-10a7-4a28-97ec-a239e6c77f8b",
"configuration": {
"heartEnabled": false
},
"name": "Test"
}
}
Last modified 6mo ago