Set or remove a brand's quotas (agency owner and admin only)
PUT
/v1/brands/{brand}/quotas
const url = 'https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000/quotas';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"quotas":[],"resetDay":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000/quotas \ --header 'Content-Type: application/json' \ --data '{ "quotas": [], "resetDay": 1 }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”brand
required
string
Example
brd_01hx0000000000000000000000Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
quotas
Array<object>
object
metric
required
string
limit
required
Null removes the quota
integer
rule
string
warnAtPct
integer
mode
lifetime only applies to emails_month: total cap that never resets
string
resetDay
Brand reset day (1–28); if a period is already in progress, it applies from the next one
integer
Responses
Section titled “Responses”Quotas
Media typeapplication/json
object
brandId
required
string
editable
required
Only the agency owner and admin can change quotas
boolean
resetDay
required
Day of the month when the email allowance resets (1 by default)
integer
nextResetDay
required
Pending day change: applies from the next period
integer
nextResetFrom
required
string
quotas
required
Array<object>
object
metric
required
string
limit
required
Null: no quota for this metric
integer
rule
required
string
mode
required
lifetime (emails_month only): total cap that never resets
string
warnAtPct
required
integer
usage
required
integer
pct
required
Percentage of the limit used; may exceed 100
number
level
required
string
Example
{ "quotas": [ { "metric": "active_contacts", "rule": "warn", "mode": "periodic", "level": "ok" } ]}Invalid data
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Conflict
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Internal error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}