Overview
PUT
/usage/storage/{userId}usageSet a user's storage quota override (admin)
Replace a record in storage by userId.
Auth: bearerAuth — calls run as the authenticated user.
Parameters
- userIdpathstring
Request body
application/json · optional
- quotaBytesinteger
New quota in bytes (non-negative)
Example
{
"quotaBytes": 0
}Responses
200
Upserted quota override row
- userIdstring
- ecosystemIdstring
Ecosystem id the override is scoped to
- quotaBytesinteger
- updatedAtstring
Example
{
"userId": "string",
"ecosystemId": "string",
"quotaBytes": 0,
"updatedAt": "string"
}400
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}401
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}403
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}Code examples
cURL
curl -X PUT "https://api.agenticdeveloperhub.com/usage/storage/{userId}" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"quotaBytes": 0
}'JavaScript
const res = await fetch("https://api.agenticdeveloperhub.com/usage/storage/{userId}", {
method: "PUT",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: "{\n \"quotaBytes\": 0\n}",
});
const data = await res.json();