PATCH /analyze/claim/:token

PATCH /analyze/claim/{token}

Marks an unowned ingredient analysis as owned by the logged in user

Path parameters

  • token string(uuid) Required

    token reference to desired resource

Responses

PATCH /analyze/claim/{token}
curl \
 -X PATCH https://api.cosmily.com/api/v1/analyze/claim/{token} \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "result": "claimed",
  "share_token": "string",
  "owner_user": {
    "id": 42,
    "username": "string"
  },
  "ingredient_group": "string",
  "permissions": {
    "can_create_product": true
  }
}