Set one member's AI limit
PUT
/api/billing/member-limits/{userId}
const url = 'https://met.cards/api/billing/member-limits/example';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"capMicros":"15000000"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://met.cards/api/billing/member-limits/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "capMicros": "15000000" }'‘-1’ gives the member no limit; null makes them follow the default again. Recorded in the audit log.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”userId
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
capMicros
required
This member’s monthly AI limit in micro-dollars, as a string; ‘-1’ for no limit; null to follow the workspace default.
string
Example
15000000Responses
Section titled “Responses”Media typeapplication/json
object
Examplegenerated
{}