Update SKU
Update selected mutable fields on a SKU. The Site is determined from the saved SKU record.
Fields omitted from the request retain their current values. If a user updates the components field,
the schema version will be updated to the current version (5).
The Org must have an Infrastructure Provider that owns the SKU's Site. The user must have an authorization role with the `PROVIDER_ADMIN` suffix.
Authentication
AuthorizationBearer
```
export JWT_BEARER_TOKEN="<jwt-bearer-token>"
# Example org name: "acme-inc
export ORG_NAME=<org-name>
# Use the JWT bearer token in your API request auth header:
curl -v -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $JWT_BEARER_TOKEN" https://nico-rest-api.nico.svc.cluster.local/v2/org/$ORG_NAME/nico/user/current
```
Path parameters
org
Name of the Org
skuId
ID of the SKU
Request
This endpoint expects an object.
description
Replacement SKU description
deviceType
Replacement device type identifier
components
Hardware components that make up a SKU
Response
OK
id
Unique identifier for the SKU
siteId
ID of the Site this SKU belongs to
description
Human-readable SKU description
schemaVersion
Core SKU schema version when available
deviceType
Optional device type identifier (e.g. “gpu”, “cpu”, “storage”)
associatedMachineIds
List of machine IDs associated with this SKU
components
Hardware components of this SKU
created
ISO 8601 datetime when the SKU was created
updated
ISO 8601 datetime when the SKU was last updated
Errors
400
Bad Request Error
403
Forbidden Error
404
Not Found Error