Pulsarr

Create user quota

POST
/v1/quota/users

Create a quota configuration for a user

Authorization

headerX-API-Key<token>

API key authentication using X-API-Key header

Request Body

application/json
  1. body
userId*number
quotaType*QuotaType

Quota window, the current day, a rolling run of days, or a monthly period from the configured reset day

Value in"daily""weekly_rolling""monthly"
quotaLimit*integer
Range1 <= value <= 1000
bypassApproval?boolean
Defaultfalse
watchlistCap?|null

Response Body

Default Response

application/json
  1. response
success*boolean
message*string
userQuotas*

A user's movie and show quotas, each absent when not set

Example Request
curl -X POST 'http://localhost:3003/v1/quota/users' \  -H 'Content-Type: application/json' \  -d '{  "userId": 0,  "quotaType": "daily",  "quotaLimit": 1}'
Example Response
{  "success": true,  "message": "string",  "userQuotas": {    "userId": 0,    "movieQuota": {      "userId": 0,      "contentType": "movie",      "quotaType": "daily",      "quotaLimit": 0,      "bypassApproval": true,      "watchlistCap": 0    },    "showQuota": {      "userId": 0,      "contentType": "movie",      "quotaType": "daily",      "quotaLimit": 0,      "bypassApproval": true,      "watchlistCap": 0    }  }}