I'm trying to build a form using cockpit CMS. Link : http://localhost/misc/cockpit .
As in the docs, I have created a token and given '*' privilage and using it in the endpoint like this: http://localhost/misc/cockpit/api/forms/submit/leads?token=eb29a1e1bc5d90cbd8a6599b3363ee . My form name is 'leads'. When is try to submit form using POST call with JSON object with a form property, i'm getting 404 error.
{
"form": {
"field1": "value1",
"field2": "value2"
}
}
Wanted to know where i'm going wrong.