Supported Formats

json

Errors

Code Description
400

Examples

PATCH /instruments/470
{
  "submodel_id": 1893,
  "instrument": {
    "submodel_id": 1893
  }
}
202
{
  "id": 470,
  "approved": false,
  "trait_values": {},
  "type": "Guitars",
  "year_start": null,
  "year_end": null,
  "brand": {
    "id": 4309,
    "name": "Brancea5d4b3f1-112a-4565-b617-711208cc90be",
    "approved": true,
    "type": "Guitars"
  },
  "model": {
    "id": 3432,
    "name": "KO-9560f77a123d-0f8c-4837-934b-4b202623fbf5",
    "approved": false,
    "brand_id": 4309
  },
  "submodel": {
    "id": 1893,
    "name": "Arianna Zemlak5f965600-477c-4b2d-b288-dc1a5a560fd3",
    "approved": true,
    "brand_id": 4309,
    "model_id": 3432
  },
  "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.