policies
Update an existing policy
Updates an existing MaaSAuthPolicy resource. K8s calls: PUT /k8s/v1/maasauthpolicy/:name
put/api/v1/update-policy/{name}
Path parameters
namestring required
Name of the MaaSAuthPolicy to update
Request body
Example request
{
"modelRefs": [
{
"name": "llama-2-7b-chat",
"namespace": "maas-models"
}
],
"subjects": {
"groups": [
{
"name": "premium-users"
}
]
},
"meteringMetadata": {
"organizationId": "org-123",
"costCenter": "engineering"
}
}Response
Policy updated successfully
Example response
{
"name": "premium-team-sub-policy",
"namespace": "maas-system",
"displayName": "Premium Team Policy",
"description": "High-priority access policy for the premium team.",
"phase": "Active",
"statusMessage": "successfully reconciled",
"creationTimestamp": "2025-03-01T10:00:00Z",
"modelRefs": [
{
"name": "llama-2-7b-chat",
"namespace": "maas-models"
}
],
"subjects": {
"groups": [
{
"name": "premium-users"
}
]
},
"meteringMetadata": {
"organizationId": "org-123",
"costCenter": "engineering"
}
}