Set member credit limit
Changed on<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>
Sets the most credits a member can use in a workspace each month, or removes their own limit when credit_limit is null. A member without their own limit gets the workspace default from Set default member credit limit, if there is one.
A limit can't be more than the workspace's monthly credits. Viewers can't have a limit, since they can't use credits, but you can remove one. The workspace owner is never limited. Setting the same limit again changes nothing, so retrying is safe.
Member credit limits need the Business plan or higher. Below it, this returns a 402.
This is limited to 30 requests per minute, shared with Update workspace member role, Remove workspace member, Set member credit limit, and Set default member credit limit. A signed-in session has its own limit, and every personal access token for the workspace shares one. Some workspaces have a different limit.
<Note>Call this as an owner or admin of the workspace, with a personal access token for that workspace sent as a Bearer token, or from a signed-in session. A read-only token is refused, and workspace API keys aren't accepted.</Note>
Request
- Base URL: https://app.base44.com
- URL: https://app.base44.com/api/workspace/members/{email}/credit-limit
- Auth: HTTP bearer
Path parameters
Email of the member whose limit to set, exactly as email in List workspace members returns it. Matching is exact, including case. URL-encode it: @ as %40 and + as %2B.
Query parameters
ID of the workspace. With a personal access token, use the token's workspace. Get it from organization_id in Get app.
Request body
Example request
{
"credit_limit": 500
}Response
The member's limit changed.
Example response
{
"status": "success",
"message": "Members added to group."
}Changes
- info
the endpoint scheme security
PersonalAccessTokenAuthwas added to the API
- info
- info
endpoint added
- info