Assets

Rename an asset or mark it as a favorite

Changed on

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.popnow.ai
  • URL: https://api.popnow.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

    • warning

      added the new agent_project_budget enum value to the // response property for the response status

    • warning

      added the new agent_project_budget enum value to the // response property for the response status

    • warning

      added the new agent_project_budget enum value to the // response property for the response status

    • warning

      added the new agent_project_budget enum value to the // response property for the response status

    • warning

      added the new agent_project_budget enum value to the // response property for the response status

    • warning

      added the new agent_quota enum value to the // response property for the response status

    • warning

      added the new agent_quota enum value to the // response property for the response status

    • warning

      added the new agent_quota enum value to the // response property for the response status

    • warning

      added the new agent_quota enum value to the // response property for the response status

    • warning

      added the new agent_quota enum value to the // response property for the response status

    • warning

      added the new agent_rate enum value to the // response property for the response status

    • warning

      added the new agent_rate enum value to the // response property for the response status

    • warning

      added the new agent_rate enum value to the // response property for the response status

    • warning

      added the new agent_rate enum value to the // response property for the response status

    • warning

      added the new agent_rate enum value to the // response property for the response status

    • warning

      added the new agent_skill_invalid enum value to the // response property for the response status

    • warning

      added the new agent_skill_invalid enum value to the // response property for the response status

    • warning

      added the new agent_skill_invalid enum value to the // response property for the response status

    • warning

      added the new agent_skill_invalid enum value to the // response property for the response status

    • warning

      added the new agent_skill_invalid enum value to the // response property for the response status

    • warning

      added the new agent_skill_turns enum value to the // response property for the response status

    • warning

      added the new agent_skill_turns enum value to the // response property for the response status

    • warning

      added the new agent_skill_turns enum value to the // response property for the response status

    • warning

      added the new agent_skill_turns enum value to the // response property for the response status

    • warning

      added the new agent_skill_turns enum value to the // response property for the response status

    • warning

      added the new agent_turns enum value to the // response property for the response status

    • warning

      added the new agent_turns enum value to the // response property for the response status

    • warning

      added the new agent_turns enum value to the // response property for the response status

    • warning

      added the new agent_turns enum value to the // response property for the response status

    • warning

      added the new agent_turns enum value to the // response property for the response status

    • warning

      added the new price_changed enum value to the // response property for the response status

    • warning

      added the new price_changed enum value to the // response property for the response status

    • warning

      added the new price_changed enum value to the // response property for the response status

    • warning

      added the new price_changed enum value to the // response property for the response status

    • warning

      added the new price_changed enum value to the // response property for the response status

    • warning

      added the new team_allowance_reached enum value to the // response property for the response status

    • warning

      added the new team_allowance_reached enum value to the // response property for the response status

    • warning

      added the new team_allowance_reached enum value to the // response property for the response status

    • warning

      added the new team_allowance_reached enum value to the // response property for the response status

    • warning

      added the new team_allowance_reached enum value to the // response property for the response status

    • warning

      added the new team_limit_reached enum value to the // response property for the response status

    • warning

      added the new team_limit_reached enum value to the // response property for the response status

    • warning

      added the new team_limit_reached enum value to the // response property for the response status

    • warning

      added the new team_limit_reached enum value to the // response property for the response status

    • warning

      added the new team_limit_reached enum value to the // response property for the response status

    • warning

      added the new team_role_cannot_spend enum value to the // response property for the response status

    • warning

      added the new team_role_cannot_spend enum value to the // response property for the response status

    • warning

      added the new team_role_cannot_spend enum value to the // response property for the response status

    • warning

      added the new team_role_cannot_spend enum value to the // response property for the response status

    • warning

      added the new team_role_cannot_spend enum value to the // response property for the response status

    • warning

      added the new team_wallet_empty enum value to the // response property for the response status

    • warning

      added the new team_wallet_empty enum value to the // response property for the response status

    • warning

      added the new team_wallet_empty enum value to the // response property for the response status

    • warning

      added the new team_wallet_empty enum value to the // response property for the response status

    • warning

      added the new team_wallet_empty enum value to the // response property for the response status

    • warning

      added the new web_fetch enum value to the // response property for the response status

    • warning

      added the new web_fetch enum value to the // response property for the response status

    • warning

      added the new web_fetch enum value to the // response property for the response status

    • warning

      added the new web_fetch enum value to the // response property for the response status

    • warning

      added the new web_fetch enum value to the // response property for the response status