UpdateSubscriptionRequest¶
Request body for updating an existing subscription (MaaSSubscription only; auth policy is not managed during update)
Type: object
Properties¶
| Property | Type | Required | Description |
|---|---|---|---|
displayName | string | No | Updated display name for the subscription Example: |
description | string | No | Updated description for the subscription Example: |
owner | OwnerSpec | Yes | |
modelRefs | array of ModelSubscriptionRef | Yes | Updated models for this subscription Constraints: minimum items 1 |
tokenMetadata | TokenMetadata | No | |
inferencePriority | integer (int32) | No | Optional updated subscription inference priority (signed int32). Omitted when unset; the scheduler applies default 0. Example: |
Example¶
{
"displayName": "Premium Team Subscription",
"description": "This subscription is for the premium team",
"owner": {
"groups": [
{
"name": "premium-users"
}
]
},
"modelRefs": [
{
"name": "llama-2-7b-chat",
"namespace": "maas-models",
"tokenRateLimits": [
{
"limit": 100000,
"window": "24h"
}
],
"billingRate": {
"perToken": "0.0001"
},
"objectiveName": "maas-models-as-a-service-gold-maas-model-user-inference-pool-a1b2c3d4e5",
"targetPool": "maas-model-user-inference-pool",
"ready": true,
"reason": "ObjectiveReconciled",
"message": "InferenceObjective sets priority 10"
}
],
"tokenMetadata": {
"organizationId": "org-123",
"costCenter": "engineering",
"labels": {
"key": "string"
}
},
"inferencePriority": 20
}