---
title: "Set Kind"
method: PATCH
path: "/companies/{company_id}/assets/{asset_id}"
tags: ["assets"]
---

# Set Kind

`PATCH /companies/{company_id}/assets/{asset_id}`

## Request

- Base URL: `https://app.zalster.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.zalster.com/companies/{company_id}/assets/{asset_id}`
- Auth: none declared

Sort a picture as a product photo or a lifestyle one (decision 203).

A person's choice is final: sorting never changes it again. A lifestyle
picture is left out of every cut-out run from now on, and since decision
241 out of review too: a cut-out it has stays stored, unused and unreviewed,
so sorting a picture as lifestyle is the third answer to "is this cut-out
right?". Sorted back as a product photo, its cut-out is reviewed and used
as before; one without a cut-out is waiting to be cut out.

## Path parameters

- `company_id` string, uuid, required: Company id
- `asset_id` string, uuid, required

## Request body

- AssetKindUpdate: A person sorts a picture (decision 203); sorting never changes it again.
  - `kind` 'product' | 'lifestyle', required: What a picture is (decision 203): a product photo is cut out, a lifestyle one is not.

## Response `200`

Successful Response

- AssetKindOut
  - `id` string, uuid, required
  - `kind` 'product' | 'lifestyle', required: What a picture is (decision 203): a product photo is cut out, a lifestyle one is not.
  - `kind_source` 'auto' | 'person', required: Who sorted a picture: sorting again never overrules a person.
  - `status` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/zalster/apis/zalster-feed-processor.md) - [All operations](https://skmtc.dev/zalster/apis/zalster-feed-processor/llms.txt) - [OpenAPI document](https://skmtc.dev/zalster/apis/zalster-feed-processor/revisions/d0b9dc66ad36?raw)
