palbaseDocs

Palbase Analytics · API

PUT/analytics/catalog/{name}

Describe an event

Says what an event is, and whether the catalog hides it.

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

Path

namestring · requiredThe event's name.

Request body

descriptionstring · requiredA description its people read beside the event.
hiddenboolean · requiredWhether the catalog hides it.
curl
curl -X PUT "https://<your-ref>.palbase.studio/analytics/catalog/<name>" \
  -H "apikey: $PALBASE_SECRET_KEY" \
  -H "content-type: application/json" \
  -d '{"description":"string","hidden":false}'

Responses

200Said

400The request is malformed, or what it sends breaks a limit (the error names which: the SDKs' codes)

401No key, or not a key of this project, or a token that is not valid (the edge's answer)

403Not the project's secret key

429The project is sending analytics faster than its per-second limit (rate_limited), or its quota for the period is used up (quota_exceeded); Retry-After says when to try again

503The platform could not take or answer this now; nothing was kept, and retrying is safe (Retry-After)

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

Operation DefineEvent of analytics's contract.