billing
Set a project spend cap
Changed onCreate or replace the project spend cap. Requires MANAGE_BILLING.
Args: team_id: Billed team. project_id: Project on that team. request: Window and cap. auth: Caller.
Returns: The stored cap.
Raises: HTTPException: 404 when the project is missing, deleted, or not on the team.
put/v1/billing/team/{team_id}/projects/{project_id}/spend-limits
Request
- Base URLhttps://api.pioneer.ai (the document declares no server; this is the origin it was published from)
- Auth
- API key in header X-API-Key
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
team_idstring required
project_idstring required
Request body
Response
Successful Response
Changes
- info
endpoint added
- info