username:passwordAuthorization: Basic *****************Authorization: Bearer ********************{
"branchid": 0,
"name": "string",
"one2one": 0,
"type": "regular",
"durationtype": "hours",
"lessonduration": 0,
"weeklessons": 0,
"hours": 0,
"lessons": 0,
"traininghours": 0,
"description": "string",
"price": "string",
"minstudents": 0,
"maxtudents": 0,
"customfields": [
{
"fieldid": 0,
"value": "string",
"valueid": 0
}
]
}curl --location 'https://prod.your-api-server.comapi/v2/models/create' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"branchid": 0,
"name": "string",
"one2one": 0,
"type": "regular",
"durationtype": "hours",
"lessonduration": 0,
"weeklessons": 0,
"hours": 0,
"lessons": 0,
"traininghours": 0,
"description": "string",
"price": "string",
"minstudents": 0,
"maxtudents": 0,
"customfields": [
{
"fieldid": 0,
"value": "string",
"valueid": 0
}
]
}'{
"success": 0,
"id": 0
}