Create
Create model for component
POST https://mango.protokol.io/v2/api/component/{ref}/model
Header parameters
- X-Client-Id
string
required
- X-Client-Secret
string
required
- X-Auth-Token
string
- if component requires auth - X-Project-Env
string
-dev
||live
Path parameters
- ref
string
required
- Reference to the componentsname
,tag
,uuid
Body parameters
Body params are matching defined fields in component settings
Response
400 Bad Request
Content-Type: application/json
X-Project-Uuid: 4a9c28f9-18bd-4433-be2d-c3bbaf5355cd
{
"code": 0,
"message": "",
"request_id": "",
"status": false
}
417 Conflict - Validation failed
Content-Type: application/json
X-Project-Uuid: 4a9c28f9-18bd-4433-be2d-c3bbaf5355cd
{
"code": 0,
"errors": [],
"status": false
}