PATCH /brands/:id_or_alias

PATCH /brands/{id_or_alias}

Updates brand

Path parameters

  • id_or_alias string Required

    ID of the resource to return

  • title string

Responses

  • 200

    successful operation

    Hide response attribute Show response attribute object
    • data object
      Hide data attributes Show data attributes object
      • id integer
      • alias string
      • title string
      • created_at string(DateTime)
      • updated_at string(DateTime)
      • owner_user_id integer
      • owner object
        Hide owner attributes Show owner attributes object
        • id integer
        • username string
        • user_type string
        • last_active string
  • 400

    Bad Request

  • 401

    Authorization information is missing or invalid.

  • 404

    Brand Not Found

  • 500

    Server Error

PATCH /brands/{id_or_alias}
curl \
 -X PATCH https://api.cosmily.com/api/v1/brands/{id_or_alias} \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "data": {
    "id": 1,
    "alias": "pasjel",
    "title": "PasJel",
    "owner": {
      "id": 1,
      "username": "admin",
      "last_active": "2021-10-04T13:24:22.000Z"
    },
    "created_at": "2021-10-04T13:24:22.000Z",
    "updated_at": "2021-11-13T20:23:18.000Z"
  }
}
Response examples (200)
{
  "data": {
    "id": 1,
    "alias": "pasjel",
    "owner": {
      "id": 1,
      "username": "admin",
      "last_active": "2021-10-04T13:24:22.000Z"
    },
    "title": "PasJel",
    "created_at": "2021-10-04T13:24:22.000Z",
    "updated_at": "2021-11-13T20:23:18.000Z"
  }
}