> Calendly developer docs. For page Markdown, append .md to any URL.
> Index: https://developer.calendly.com/llms.txt
> API catalog: https://developer.calendly.com/.well-known/api-catalog
> OpenAPI: https://developer.calendly.com/openapi/calendly-api.yaml
> OAuth authorization server: https://calendly.com/.well-known/oauth-authorization-server
> MCP protected resource: https://mcp.calendly.com/.well-known/oauth-protected-resource
> Scheduling MCP endpoint: https://mcp.calendly.com
> Docs search MCP: https://developer.calendly.com/_mcp/server

# Update User Meeting Limits

PATCH https://api.calendly.com/user_meeting_limits
Content-Type: application/json

Sets or removes the authenticated user's host-level meeting limits (daily, weekly, and monthly caps across all Event Types).

Send at least one of `daily_limit`, `weekly_limit`, or `monthly_limit`; a body with none of the three returns 400. Unknown fields are ignored. Omitted fields are left unchanged, and `null` removes a limit. Each value must be a whole number from 1 to 9999; anything else, including `0`, returns 400. Each period is independent, so a weekly limit lower than the daily limit is allowed. Setting the current values succeeds and returns the current state. Event Type limits are not changed.

`user` must be the authenticated user. Any other user returns 403, including for an organization admin.

> `availability:write`

Reference: https://developer.calendly.com/api-docs/calendly-api/availability/update-user-meeting-limits

## Authentication

- `Authorization` header (bearer token, required) — OAuth 2.0
- `Authorization` header (bearer token, required) — Personal Access Token

## Request

### Query parameters

- `user` (string, required) — URI of the authenticated user whose meeting limits should be changed.

### Body (application/json)

This endpoint expects an object.

- `daily_limit` (integer, optional, nullable) — New daily limit, a whole number from 1 to 9999. `null` removes the daily limit. Omit to leave it unchanged.
- `weekly_limit` (integer, optional, nullable) — New weekly limit, a whole number from 1 to 9999. `null` removes the weekly limit. Omit to leave it unchanged.
- `monthly_limit` (integer, optional, nullable) — New monthly limit, a whole number from 1 to 9999. `null` removes the monthly limit. Omit to leave it unchanged.

## Response

### 200

OK

- `resource` (UserMeetingLimits, required) — Host-level meeting limits for a user across all of their Event Types.

## Errors

### 400 Bad Request Error

Request is not valid

- `title` (enum, required)
  - Allowed values: `Invalid Argument`
- `message` (enum, required)
  - Allowed values: `The supplied parameters are invalid.`
- `details` (list of ErrorResponseDetailsItem, optional)

### 401 Unauthorized Error

Cannot authenticate caller

- `title` (enum, required)
  - Allowed values: `Unauthenticated`
- `message` (enum, required)
  - Allowed values: `The access token is invalid`, `The access token expired`, `The access token was revoked`
- `details` (list of ErrorResponseDetailsItem, optional)

### 403 Forbidden Error

Permission denied or insufficient scope

- `Update-user-meeting-limitsRequestForbiddenError`
  - UpdateUserMeetingLimitsRequestForbiddenError0
  - InsufficientScopeError: InsufficientScopeError

### 404 Not Found Error

Requested resource not found

- `title` (enum, required)
  - Allowed values: `Resource Not Found`
- `message` (enum, required)
  - Allowed values: `The server could not find the requested resource.`
- `details` (list of ErrorResponseDetailsItem, optional)

### 429 Too Many Requests Error

Too Many Requests

- `title` (enum, required)
  - Allowed values: `Too Many Requests`
- `message` (enum, required)
  - Allowed values: `Rate limit exceeded. Please retry after some time.`
- `details` (list of ErrorResponseDetailsItem, optional)

### 500 Internal Server Error

An error has occurred on the server

- `title` (enum, required)
  - Allowed values: `Internal Server Error`
- `message` (enum, required)
  - Allowed values: `The server encountered an unexpected condition that prevented it from fulfilling the request.`
- `details` (list of ErrorResponseDetailsItem, optional)

## Types

### UserMeetingLimits

Host-level meeting limits for a user across all of their Event Types.

- `user` (string, required) — URI of the user these limits belong to.
- `daily_limit` (integer, required, nullable) — Most meetings the user can be booked into in a day, across all of their Event Types. `null` when no daily limit is set. A set value is a whole number from 1 to 9999.
- `weekly_limit` (integer, required, nullable) — Most meetings the user can be booked into in a week, across all of their Event Types. `null` when no weekly limit is set. A set value is a whole number from 1 to 9999.
- `monthly_limit` (integer, required, nullable) — Most meetings the user can be booked into in a month, across all of their Event Types. `null` when no monthly limit is set. A set value is a whole number from 1 to 9999.

### ErrorResponseDetailsItem

- `message` (string, required)
- `parameter` (string, optional)
- `code` (string, optional)

### UpdateUserMeetingLimitsRequestForbiddenError0

Error Object

- `title` (enum, required)
  - Allowed values: `Permission Denied`
- `message` (enum, required)
  - Allowed values: `You do not have permission to access this resource.`, `You do not have permission`
- `details` (list of ErrorResponseDetailsItem, optional)

### InsufficientScopeError

Caller does not have required oauth scopes

- `title` (enum, required)
  - Allowed values: `Insufficient scope`
- `message` (enum, required)
  - Allowed values: `This operation requires the scopes listed in the 'required_scopes' array.`
- `required_scopes` (list of string, required)

## Examples

### Set the daily limit

**Request**

```json
{
  "daily_limit": 4
}
```

**Response**

```json
{
  "resource": {
    "user": "https://api.calendly.com/users/AAAAAAAAAAAAAAAA",
    "daily_limit": 4,
    "weekly_limit": null,
    "monthly_limit": 60
  }
}
```

**SDK Code**

```python Set the daily limit
import requests

url = "https://api.calendly.com/user_meeting_limits"

querystring = {"user":"https://api.calendly.com/users/AAAAAAAAAAAAAAAA"}

payload = { "daily_limit": 4 }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers, params=querystring)

print(response.json())
```

```javascript Set the daily limit
const url = 'https://api.calendly.com/user_meeting_limits?user=https%3A%2F%2Fapi.calendly.com%2Fusers%2FAAAAAAAAAAAAAAAA';
const options = {
  method: 'PATCH',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"daily_limit":4}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Set the daily limit
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.calendly.com/user_meeting_limits?user=https%3A%2F%2Fapi.calendly.com%2Fusers%2FAAAAAAAAAAAAAAAA"

	payload := strings.NewReader("{\n  \"daily_limit\": 4\n}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Set the daily limit
require 'uri'
require 'net/http'

url = URI("https://api.calendly.com/user_meeting_limits?user=https%3A%2F%2Fapi.calendly.com%2Fusers%2FAAAAAAAAAAAAAAAA")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"daily_limit\": 4\n}"

response = http.request(request)
puts response.read_body
```

```java Set the daily limit
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.patch("https://api.calendly.com/user_meeting_limits?user=https%3A%2F%2Fapi.calendly.com%2Fusers%2FAAAAAAAAAAAAAAAA")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"daily_limit\": 4\n}")
  .asString();
```

```php Set the daily limit
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://api.calendly.com/user_meeting_limits?user=https%3A%2F%2Fapi.calendly.com%2Fusers%2FAAAAAAAAAAAAAAAA', [
  'body' => '{
  "daily_limit": 4
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Set the daily limit
using RestSharp;

var client = new RestClient("https://api.calendly.com/user_meeting_limits?user=https%3A%2F%2Fapi.calendly.com%2Fusers%2FAAAAAAAAAAAAAAAA");
var request = new RestRequest(Method.PATCH);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"daily_limit\": 4\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Set the daily limit
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = ["daily_limit": 4] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.calendly.com/user_meeting_limits?user=https%3A%2F%2Fapi.calendly.com%2Fusers%2FAAAAAAAAAAAAAAAA")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Remove the weekly limit

**Request**

```json
{
  "weekly_limit": null
}
```

**Response**

```json
{
  "resource": {
    "user": "https://api.calendly.com/users/AAAAAAAAAAAAAAAA",
    "daily_limit": 4,
    "weekly_limit": null,
    "monthly_limit": 60
  }
}
```

**SDK Code**

```python Remove the weekly limit
import requests

url = "https://api.calendly.com/user_meeting_limits"

querystring = {"user":"https://api.calendly.com/users/AAAAAAAAAAAAAAAA"}

payload = { "weekly_limit": None }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers, params=querystring)

print(response.json())
```

```javascript Remove the weekly limit
const url = 'https://api.calendly.com/user_meeting_limits?user=https%3A%2F%2Fapi.calendly.com%2Fusers%2FAAAAAAAAAAAAAAAA';
const options = {
  method: 'PATCH',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"weekly_limit":null}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Remove the weekly limit
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.calendly.com/user_meeting_limits?user=https%3A%2F%2Fapi.calendly.com%2Fusers%2FAAAAAAAAAAAAAAAA"

	payload := strings.NewReader("{\n  \"weekly_limit\": null\n}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Remove the weekly limit
require 'uri'
require 'net/http'

url = URI("https://api.calendly.com/user_meeting_limits?user=https%3A%2F%2Fapi.calendly.com%2Fusers%2FAAAAAAAAAAAAAAAA")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"weekly_limit\": null\n}"

response = http.request(request)
puts response.read_body
```

```java Remove the weekly limit
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.patch("https://api.calendly.com/user_meeting_limits?user=https%3A%2F%2Fapi.calendly.com%2Fusers%2FAAAAAAAAAAAAAAAA")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"weekly_limit\": null\n}")
  .asString();
```

```php Remove the weekly limit
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://api.calendly.com/user_meeting_limits?user=https%3A%2F%2Fapi.calendly.com%2Fusers%2FAAAAAAAAAAAAAAAA', [
  'body' => '{
  "weekly_limit": null
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Remove the weekly limit
using RestSharp;

var client = new RestClient("https://api.calendly.com/user_meeting_limits?user=https%3A%2F%2Fapi.calendly.com%2Fusers%2FAAAAAAAAAAAAAAAA");
var request = new RestRequest(Method.PATCH);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"weekly_limit\": null\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Remove the weekly limit
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = ["weekly_limit": ] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.calendly.com/user_meeting_limits?user=https%3A%2F%2Fapi.calendly.com%2Fusers%2FAAAAAAAAAAAAAAAA")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```