Set Project Usage Limits
Set or update resource caps for a specific project.
Set resource limits for a project. Limits can't exceed your plan allocation or go below current usage.
Required: Owner role
Authorization
bearerToken
AuthorizationBearer <token>
API token for YourGPT Public APIs. Create tokens in Settings > API Tokens in your YourGPT dashboard.
In: header
Request Body
application/json
project_uid*string
The project UID.
limits*
Array of resource limits to set.
Items
1 <= itemsResponse Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.yourgpt.ai/chatbot/v1/setProjectUsageLimit" \ -H "Content-Type: application/json" \ -d '{ "project_uid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "limits": [ { "limit_type": "credits", "limit": 5000 }, { "limit_type": "document", "limit": 100 } ] }'{
"type": "RXSUCCESS",
"message": "Usage limits updated successfully"
}{
"type": "RXERROR",
"message": "Invalid params"
}{
"type": "RXERROR",
"message": "Invalid or revoked API token"
}{
"type": "RXERROR",
"message": "You do not have permission to perform this action"
}