---
title: "Create project member limit"
method: POST
path: "/v2/projects/{project_id}/member_limits"
tags: ["member_limits"]
---

# Create project member limit

`POST /v2/projects/{project_id}/member_limits`

## Request

- Base URL: `https://api.hubstaff.com`
- URL: `https://api.hubstaff.com/v2/projects/{project_id}/member_limits`
- Auth: OAuth 2
  - Authorization code: `https://account.hubstaff.com/authorizations/new`
  - Token URL: `https://account.hubstaff.com/access_tokens` scopes: `hubstaff:read`, `hubstaff:write`
- TypeScript: <https://skmtc.dev/hubstaff/apis/hubstaff-v2-api/docs/v2/projects/:project_id/member_limits/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a member budget limit group for the given project.

All `member_ids` must already be project members. Users assigned to another group are moved to the new group.

`alerts` are optional and update project-level notification settings shared by every group on the project.

Example request body:

```json
{
  "type": "cost",
  "cost": 250.25,
  "recurrence": "weekly",
  "recurrence_start": 0,
  "alerts": {"near_limit": 75, "notify_members": true},
  "member_ids": [101, 102]
}
```

Returns the created member limit group.

## Path parameters

- `project_id` integer, required

## Request body

- PostV2ProjectsProjectIdMemberLimits: Create project member limit
  - `type` 'cost' | 'hours', required: Member limit type (`cost` or `hours`)
  - `rate` 'bill_rate' | 'pay_rate': When type is cost, specifies which rate to use (`bill_rate` or `pay_rate`)
  - `cost` number, float: Cost limit (required when type is cost)
  - `hours` number, float: Hours limit (required when type is hours)
  - `start_date` string, date: Start date for fixed budgets (mutually exclusive with recurrence)
  - `recurrence` 'weekly' | 'monthly': Makes the limit reset periodically. Omit for fixed budgets
  - `recurrence_start` integer: Weekly: 0=Sunday..6=Saturday. Monthly: day of month (1-31)
  - `alerts` object: Project-level alert settings shared across all groups on the project
    - `near_limit` integer: Percentage threshold for approaching-limit notifications (1-99)
    - `notify_members` boolean: Whether to notify members when approaching the limit
  - `member_ids` integer[], required: Project member user IDs assigned to the group

## Response `201`

Member limit created

- object
  - `member_limit` MemberLimit: MemberLimit model
    - `id` integer, required: Member limit group ID
    - `type` 'cost' | 'hours', required: Member limit type
    - `rate` 'bill_rate' | 'pay_rate': Rate used when type is cost
    - `cost` number, float: Cost limit when type is cost
    - `hours` number, float: Hours limit when type is hours
    - `start_date` string, date: Start date for fixed (non-recurring) budgets
    - `recurrence` 'weekly' | 'monthly': Budget recurrence period
    - `recurrence_start` integer: Weekly: day of week (0=Sunday through 6=Saturday). Monthly: day of month (1-31).
    - `alerts` object, required: Project-level alert settings shared by all member limit groups on the project
    - `member_ids` integer[], required: User IDs assigned to this member limit group
    - `created_at` string, date-time, required: When the record was created
    - `updated_at` string, date-time, required: When the record was last updated

## Other responses

- `400`: Invalid parameters
- `401`: Unauthorized
- `403`: API access is only for organizations on an active plan
- `404`: Could not find record
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/hubstaff/apis/hubstaff-v2-api.md) - [All operations](https://skmtc.dev/hubstaff/apis/hubstaff-v2-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hubstaff/apis/hubstaff-v2-api/revisions/c6b90e4e4bdc?raw)
