Code | Description |
---|---|
400 |
curl -X POST -H "Authorization: XXXXX" -H "Content-Type: application/json" -d '{"name": "New Submodel B", "brand_id": 549, "model_id": 5052}' "https://api.axefax.com/submodels" Response: { "submodel":{ "id": 7977, "brand_id":478, "model_id":12432, "name":"Electric Lap Steel", "approved":true } }
POST /submodels { "name": "Lourdes Prohaska699354e4-9c69-49b8-bba6-3f529a053b82", "model_id": 3447, "submodel": { "name": "Lourdes Prohaska699354e4-9c69-49b8-bba6-3f529a053b82", "model_id": 3447 } } 201 { "id": 1900, "name": "Lourdes Prohaska699354e4-9c69-49b8-bba6-3f529a053b82", "approved": false, "brand_id": 4322, "model_id": 3447 }
Param name | Description |
---|---|
name optional |
Validations:
|
brand_id optional |
Validations:
|
model_id optional |
Validations:
|