Assets

Rename an asset or mark it as a favorite

Send name, favorite or both; only what you send changes, and a body with neither is rejected as an invalid name. The uri stays the same and nothing is copied. Favorites belong to the library, so everyone in a team sees the same ones. Repeating the same request is safe, so no Idempotency-Key is needed. In a team library, billing and readonly members cannot rename or change favorites, and developers can do so only for assets they saved (403, data.reason asset_permission_denied).

patch/api/v1/assets/{assetId}

Request

  • Base URL: https://api.spicyapi.ai
  • URL: https://api.spicyapi.ai/api/v1/assets/{assetId}
  • Auth: HTTP bearer

Request body

namestring
favoriteboolean

Response

The renamed asset.

code200 required
msg'success' required
request_idstring required

Correlation identifier. Include it in support requests.

Changes

No recorded changes to this operation across all 1 revision of this API.