Accounts
PATCH
/accounts/{id}/limits

Send only the caps to change, by key; the others keep their value. Each value is saved as a whole number within the range GET returns for the sender's plan: a value above max is saved as max, one below 0 as 0, and a fraction is rounded. Send null to drop the sender's own value: the cap then follows its plan's default again, also when the plan or its default changes later. The response has the same shape as GET, with the values saved, so read limit to see what was applied. 400 with code: invalid-limit for an empty body, an unknown key, or a value that is neither a number nor null.

warmup sets its own LinkedIn warm-up, alone or with caps: inherit (its workspace's warm-up settings decide), off (full speed now), on (start now on the workspace's ramp, even when those settings are off) or custom (start now on its own ramp). An account already warming keeps its day. 400 with code: invalid-warmup, and every reason in details.errors, for a setting that can't be taken; nothing is saved then, caps included.

Authorization

bearerAuth
AuthorizationBearer <token>

An API key created on the Access tokens page.

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

The caps to change, by key, and/or its warmup (at least one). Each cap is saved within the plan's range; null drops the sender's own value, so the cap follows its plan default again.

Properties1 <= properties

Response Body

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/accounts/string/limits" \  -H "Content-Type: application/json" \  -d '{    "connectionRequests": 20,    "messages": 30,    "connectionRequestsPerWeek": 100,    "follows": null  }'
{  "data": {    "accountId": "string",    "tier": "free",    "daily": [      {        "key": "connectionRequests",        "label": "string",        "used": 0,        "limit": 0,        "default": 0,        "min": 0,        "max": 0      }    ],    "rolling": [      {        "key": "connectionRequests",        "label": "string",        "used": 0,        "limit": 0,        "default": 0,        "min": 0,        "max": 0      }    ],    "weeklyWindowDays": 0,    "warmup": {      "mode": "inherit",      "status": "off",      "ramp": {        "start": 1,        "step": 1,        "everyDays": 1      },      "rampSource": "account",      "target": 0,      "startedAt": "2019-08-24T14:15:22Z",      "day": 0,      "fullSpeedAt": "2019-08-24T14:15:22Z",      "today": {        "connectionRequests": 0,        "messages": 0,        "inmails": 0,        "profileViews": 0,        "follows": 0,        "postLikes": 0,        "postComments": 0      }    }  }}