palbaseDocs

Palbase Calls · API

PUT/calls/settings

Set call settings

What it names changes: how many people (and bots) a call holds (2 to 100), how many calls a person may start in an hour, and the hook asked whom one may call (calls.can_call; null: none). A hook set for the first time is given its signing secret, here, once.

Called by your server, with the project's secret key.

Request body

calls_per_hourinteger · optional1 to 1,000
hookobject · optionalThe hook to ask; null removes it
max_participantsinteger · optional2 to 100
curl
curl -X PUT "https://<your-ref>.palbase.studio/calls/settings" \
  -H "apikey: $PALBASE_SECRET_KEY" \
  -H "content-type: application/json" \
  -d '{"calls_per_hour":1,"hook":{"url":"string"},"max_participants":2}'

Responses

200The settings

400The request is malformed, or a field breaks a rule (the error names which)

401No key, a key of no project, a token not valid (the edge's answer), or no person's session (`user_required`)

403Not the project's secret key (`secret_key_required`)

503Temporarily unavailable; retrying is safe after Retry-After

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation PutCallSettings of calls's contract.