RPC functions
The functions core serves at /api/rpc/core.<module>.<function>.
Each function runs in the caller's transaction and checks the caller's rights. Call them with POST and a JSON body, or GET with a query string. Other apps add their own under /api/rpc/<app>.<module>.<function>.
curl -X POST https://erp.acme.com/api/rpc/core.link.titles \
-H "Authorization: token $KEY:$SECRET" -H 'Content-Type: application/json' \
-d '{"rectype": "User", "names": ["jane@acme.com"]}'Records and lists
| Function | Does |
|---|---|
core.search.global | Records matching a text, grouped by RecType with snippets |
core.search.link | Records a Link field offers, within the form's filters |
core.link.validate | Checks one typed Link value and returns the values it fetches |
core.link.titles | Titles of a list's Link values |
core.list.annotations | Assignees, tags and comment counts of a list page |
core.share.add, set_permission, remove, users | Share one Record with a user or everyone |
core.assign.add, close, remove | Assign one Record with ToDos |
core.tag.add, remove | One tag on one Record |
core.bulk.delete, edit, submit, cancel, assign, unassign | Queue a bulk action on up to 500 Records |
core.bulk.status | Progress of the caller's bulk job and each refused Record's message |
core.deleted_record.restore | Insert a deleted Record again |
core.workflow.transitions | A Record's state and the transitions the caller may take |
core.workflow.apply | Take one transition |
core.naming.series, update_series, preview, current, set_current | Naming series and counters. System Managers |
core.defaults.set_user_default | Set or clear one default for the caller |
core.markdown.preview | Markdown as sanitized HTML |
Customization and permissions
| Function | Does |
|---|---|
core.customize.reset | Remove an app RecType's Custom Fields and Property Setters, or with keep_custom_fields only the setters |
core.perm.explain | Whether a user may use a right on a RecType or Record, with the trace. System Managers |
core.perm_manager.get, reset | A RecType's rules for the Permission Manager, and Restore original |
core.print.make_default | Make a Print Format its RecType's default |
Reports, dashboards and workspaces
| Function | Does |
|---|---|
core.report.meta | A saved report's settings or filters |
core.report.run | A code report's columns and rows, or the latest prepared run |
core.report.prepare | Queue a prepared report's background run |
core.report.export | Report rows as CSV or XLSX in Base64 |
core.dashboard.page, chart | A Dashboard, and one chart's data with timespan, time_interval, from_date, to_date |
core.workspace.page, number_card, quick_list, catalog, widget, customize, publish | Workspace blocks, the caller's own copy, and publishing a personal workspace |
core.onboarding.card, set_status, dismiss | Module Onboarding steps |
Import, export and print
| Function | Does |
|---|---|
core.data_export.export | Records and child rows as CSV or XLSX in Base64 |
core.data_import.template | A blank import template |
core.data_import.preview | Columns, first rows, warnings and payload count |
core.data_import.start, status, errored_rows | Run an import and follow it |
core.print.preview | A Record's print HTML with the formats, letter heads and languages on offer |
core.print.bulk_pdf | One PDF of many Records, built as a job |
Mail and messages
| Function | Does |
|---|---|
core.communication.make | Send a mail from a Record |
core.communication.undo_send | Take back the caller's mail within 10 seconds |
core.communication.recipient_search, compose_context | Recipients, sending accounts and signature for the composer |
core.email_template.list, render | Email Templates for a RecType, and one filled from a Record |
core.email_account.test_connection | Log in to an account's server |
core.email_queue.retry, send_now | Requeue failed mail, or send one row now |
core.notification.preview | A Notification rule's condition, subject and message on a Record |
core.notification_log.feed, mark_read, mark_all_read | The desk bell |
core.telegram.connect, link, enabled | Connect the site's bot, and link the caller's chat |
Users, jobs and logs
| Function | Does |
|---|---|
core.user.reset_password | Send a User a password reset mail |
core.user.set_preferences | The caller's theme, time zone, default workspace and language |
core.user_invitation.invite, cancel, resend | User Invitations |
core.background_job.retry, cancel | One of the site's jobs |
core.scheduled_job_type.execute, skip_next_execution | Run a scheduled job now, or skip its next run |
core.error_log.mark_seen | Mark an Error Log seen |
core.web_form.accept | Submit a Web Form, guests included, with uploads as multipart |
core.web_form.delete | A visitor deletes their own Record through a form |
core.automation.catalog | The installed apps' automation steps |
core.automation.test | Dry-run an automation on a sample Record |