Record that something uses an asset
post/assets/{id}/usage
Before you call
- Credential
Authorization: Bearer $KEY- Scope
files:write- Mcp
rivier_assets_record_usage- Graphql
Mutation.filesUsageRecord- Sdk
files.usage.record- Cli
files usage record
Parameters
- idstring (uuid)requiredIn the path
Request bodyapplication/json, required
- userKindstringrequiredOne of: post, content_item, content_variant, campaign, agent, channel, page, persona, product, property, area, unit, amenity, rate_plan, extra, poi, policy, cms_entry, mail_message, other.
- userIdstringrequiredAt most 200 characters.
- rolestringAt most 40 characters.
- notestringAt most 300 characters.
- versionIdstring (uuid)
Responses
- 201application/jsonSuccess
object - 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring