Rename or describe a product (member); set its key or support end (admin)
const url = 'https://example.com/v1/orgs/example/products/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","description":"example","key":"example","support_ends":"2026-04-15"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/v1/orgs/example/products/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "description": "example", "key": "example", "support_ends": "2026-04-15" }'Fields left out keep their value. key and support_ends need the admin role; a member who sends either, even as null, gets 403 auth.roleTooLow.
null clears them.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Organization (tenant) slug, e.g. alpenrobotik
Request Bodyrequired
Section titled “Request Bodyrequired”object
Admin only. The product key firmware reports as PRODUCT=
Admin only. Last day of security updates; otherwise 400 product.supportEndsInvalid.
Example generated
{ "name": "example", "description": "example", "key": "example", "support_ends": "2026-04-15"}Responses
Section titled “Responses”Product
object
Short slug firmware names in /etc/affectra-release as PRODUCT=
Last day the product gets security updates (CRA); null when not set.
Example generated
{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "description": "example", "key": "example", "support_ends": "2026-04-15", "created_at": "2026-04-15T12:00:00Z"}Product.keyInvalid, product.supportEndsInvalid or request.fieldRequired (empty name)
Auth.roleTooLow: below member, or below admin with key or support_ends
No such object in this organization, no such organization, or the caller does not belong to it
A product with this name exists (request.alreadyExists), another product has this key (product.keyExists), or units are linked to the product’s releases, so its key can’t change (product.keyLocked)
Over the operation’s rate-limit budget (x-affectra-budget): code request.rateLimited with params.budget. Wait Retry-After seconds before trying again.
Every error answer, Content-Type
application/problem+json. The web app and integrations translate code; detail is English,
for people reading curl output or CI logs, and may change wording at
any time. Match on code, never on detail.
object
The HTTP status
Stable error codes. A code is never renamed; new ones may be added, so
a client falls back to detail for a code it doesn’t know. Another
organization’s object answers notFound, the same as a missing one.
What went wrong
Values the code’s message needs, e.g. {“field”: “version”}. Only values the caller sent or may see. Empty when the message needs none.
object
Example
{ "code": "notFound"}Headers
Section titled “Headers”Seconds until a request would be allowed again, at least 1