GET /facets/:id

GET /facets/{id}

Returns a single facet

Path parameters

  • id integer(int64) Required

    ID of the resource to fetch

Responses

GET /facets/{id}
curl \
 -X GET https://api.cosmily.com/api/v1/facets/{id} \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "data": {
    "id": 1,
    "facet_type": "skin_types",
    "facet_value": "dry skin",
    "menuindex": 0,
    "created_at": "2021-10-04T13:24:22.000Z",
    "updated_at": "2021-11-13T20:23:18.000Z"
  }
}
Response examples (200)
{
  "data": {
    "id": 1,
    "menuindex": 0,
    "created_at": "2021-10-04T13:24:22.000Z",
    "facet_type": "skin_types",
    "updated_at": "2021-11-13T20:23:18.000Z",
    "facet_value": "dry skin"
  }
}