Supported Formats

json

Errors

Code Description
400

Examples

POST /instruments
{
  "brand_id": 4308,
  "model_id": 3431,
  "submodel_id": 1891,
  "instrument": {
    "brand_id": 4308,
    "model_id": 3431,
    "submodel_id": 1891
  }
}
201
{
  "id": 469,
  "approved": false,
  "trait_values": {},
  "type": "Guitars",
  "year_start": null,
  "year_end": null,
  "brand": {
    "id": 4308,
    "name": "Casyncf6b8974f-617e-455d-8421-c2ef5d15baae",
    "approved": true,
    "type": "Guitars"
  },
  "model": {
    "id": 3431,
    "name": "M-27843c87b952-eb42-4f0a-a918-94bc3834e25b",
    "approved": false,
    "brand_id": 4308
  },
  "submodel": {
    "id": 1891,
    "name": "Tyree Reynoldscc50590a-f42a-4c85-a097-c5dd79eef14b",
    "approved": false,
    "brand_id": 4308,
    "model_id": 3431
  },
  "images": []
}

Params

Param name Description
name
optional

Validations:

  • Must be a String

brand_id
optional

Validations:

  • Must be Integer.

model_id
optional

Validations:

  • Must be Integer.

submodel_id
optional

Validations:

  • Must be Integer.