Set quiet hours
PUT
/v1/account/quiet-hours
const url = 'https://api.pocketbell.dev/v1/account/quiet-hours';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"start":1320,"end":420,"time_zone":"America/Los_Angeles"}'};
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.pocketbell.dev/v1/account/quiet-hours \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "start": 1320, "end": 420, "time_zone": "America/Los_Angeles" }'Normal notifications arrive silently between start and end, in time_zone. Important and Critical are unchanged.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
start
required
integer
Example
1320end
required
integer
Example
420time_zone
required
string
Example
America/Los_AngelesResponses
Section titled “Responses”The account as it is now.
Media typeapplication/json
object
app_account_token
required
Set as the appAccountToken of every App Store purchase, so the purchase is tied to this account.
string format: uuid
plan
required
string
limits
required
object
sources
required
Null: no limit.
integer | null
monthly_messages
required
integer
history_days
required
integer
usage
required
object
sources
required
integer
messages_this_month
required
integer
quiet_hours
required
Minutes after midnight in time_zone; Normal notifications arrive silently between. Null: off.
object
start
required
integer
end
required
integer
time_zone
required
string
Example
{ "plan": "free"}The request was invalid.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Which fields were wrong, for invalid_request.
Array<object>
object
field
required
string
message
required
string
Example
{ "error": { "code": "invalid_request" }}Missing or ended session.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Which fields were wrong, for invalid_request.
Array<object>
object
field
required
string
message
required
string
Example
{ "error": { "code": "invalid_request" }}