Update an inventory item
PATCH/v1/inventory/{id}Portal sign-in
Changes the note, or what the item names (level and slug, sent together). The item keeps its ID. Fields you leave out don’t change. A new target follows the same rules as adding one: unknown slugs are 400, one already in your inventory 409.
Authorization
Portal sign-in Authorization: Bearer $MA_ACCESS_TOKEN
Sign in to the portal and send its access token. Portal sign-in isn't available yet, so you can read this endpoint but not call it.
Parameters
| Parameter | Type | Description |
|---|---|---|
idpathrequired | string | The ID the resource was listed or created with: a ULID for events and deliveries, a UUID for API keys, webhook endpoints and webhook subscriptions. An unknown or malformed ID, or another account’s, is
|
Request body
Required, application/json.
levelstringWhat
slugnames: aprovider, amodelfamily, amodel_version, or anoffering(a version on one platform).- Allowed
provider,model,model_version,offering
slugstringThe new target’s slug at
level.- Range
- 1 to 300 characters
- Example
claude-sonnet-4-5-20250929
notestringA new note. An empty string clears it.
- Range
- up to 500 characters
- Example
Support chatbot, prod
{ "level": "model_version", "slug": "claude-sonnet-4-5-20250929"}Responses
The updated item.
application/json · InventoryItem
idstring (uuid)requiredThe item’s ID, to get, update or delete it.
- Example
9d4e7b21-0c3f-4a8e-b6d2-7f1a5c9e3b08
levelstringrequiredWhat
slugnames: aprovider, amodelfamily, amodel_version, or anoffering(a version on one platform).- Allowed
provider,model,model_version,offering
slugstringrequiredThe entity’s slug now (the item follows the entity, not the slug you sent).
- Example
bedrock/anthropic.claude-sonnet-4-5-20250929-v1:0
notestringrequiredYour note. Empty when there’s none.
- Example
Support chatbot, prod
created_atstring (date-time)requiredWhen the item was added.
- Example
2026-12-02T14:05:00Z
updated_atstring (date-time)requiredWhen the item was last changed.
- Example
2026-12-02T14:05:00Z
{ "id": "9d4e7b21-0c3f-4a8e-b6d2-7f1a5c9e3b08", "level": "model_version", "slug": "claude-sonnet-4-5-20250929", "note": "Support chatbot, prod", "created_at": "2026-12-02T14:05:00Z", "updated_at": "2026-12-02T15:20:00Z"}400 Bad Request, code: invalid_parameter. A parameter or the request body is invalid.
application/problem+json · Problem
typestringrequiredAlways about:blank for now. Use
code.titlestringrequiredThe HTTP status’s standard name.
statusintegerrequiredThe HTTP status code, the same as the response’s.
detailstringWhat went wrong with this request, in plain language: which parameter, which slug. Absent when there’s nothing to add (an internal error).
codestringrequiredThe error, for your code to act on. Branch on this, not on
titleordetail.- Allowed
not_found,invalid_parameter,unauthorized,forbidden,conflict,rate_limited,not_implemented,internal
401 Unauthorized. No valid portal access token. API Gateway checks it before the API runs, so this body is API Gateway’s, not a Problem.
404 Not Found, code: not_found. Nothing with that ID or slug, or not yours.
application/problem+json · Problem
typestringrequiredAlways about:blank for now. Use
code.titlestringrequiredThe HTTP status’s standard name.
statusintegerrequiredThe HTTP status code, the same as the response’s.
detailstringWhat went wrong with this request, in plain language: which parameter, which slug. Absent when there’s nothing to add (an internal error).
codestringrequiredThe error, for your code to act on. Branch on this, not on
titleordetail.- Allowed
not_found,invalid_parameter,unauthorized,forbidden,conflict,rate_limited,not_implemented,internal
409 Conflict, code: conflict. It conflicts with what’s there (see the description).
application/problem+json · Problem
typestringrequiredAlways about:blank for now. Use
code.titlestringrequiredThe HTTP status’s standard name.
statusintegerrequiredThe HTTP status code, the same as the response’s.
detailstringWhat went wrong with this request, in plain language: which parameter, which slug. Absent when there’s nothing to add (an internal error).
codestringrequiredThe error, for your code to act on. Branch on this, not on
titleordetail.- Allowed
not_found,invalid_parameter,unauthorized,forbidden,conflict,rate_limited,not_implemented,internal
Over a rate limit: your account’s per-minute limit from its plan (entitlements.requests_per_minute on GET /v1/account), shared by its keys, or the API-wide throttle every caller shares. Wait Retry-After seconds, then retry with backoff.
application/problem+json · Problem
typestringrequiredAlways about:blank for now. Use
code.- Example
about:blank
titlestringrequiredThe HTTP status’s standard name.
- Example
Not Found
statusintegerrequiredThe HTTP status code, the same as the response’s.
- Example
404
detailstringWhat went wrong with this request, in plain language: which parameter, which slug. Absent when there’s nothing to add (an internal error).
- Example
No version claude-sonnet-9.
codestringrequiredThe error, for your code to act on. Branch on this, not on
titleordetail.- Allowed
not_found,invalid_parameter,unauthorized,forbidden,conflict,rate_limited,not_implemented,internal- Example
not_found
{ "type": "about:blank", "title": "Too Many Requests", "status": 429, "detail": "Your plan allows 60 requests a minute, across your account's keys. Retry after 12 s.", "code": "rate_limited"}{ "type": "about:blank", "title": "Too Many Requests", "status": 429, "detail": "The API is busy. Retry after 1 s, with backoff.", "code": "rate_limited"}