You can just send POST request:
POST: https://api.hubapi.com/content/api/v4/custom-widgets/?hapikey=YOUR-KEY
BODY:
{
“name”: “nameOfCustomModule”,
“fields”:[],
“source”:“<h1>Hello world!</h1>”
}
You can just send POST request:
POST: https://api.hubapi.com/content/api/v4/custom-widgets/?hapikey=YOUR-KEY
BODY:
{
“name”: “nameOfCustomModule”,
“fields”:[],
“source”:“<h1>Hello world!</h1>”
}