דילוג לתוכן

CMS

טבלאות תוכן שהאתרים והאפליקציות שלכם קוראים.

פתיחת CMS
נבדק מול לוח הבקרה ב-18 בנובמבר 2026

טבלת CMS היא טבלה רגילה במסד הנתונים של סביבת העבודה. מנהלים טבלאות בשיטות CMS, וקוראים וכותבים את הרשומות שלהן בשיטות הרשומות. כל קריאה היא POST אל /cpi/<method> עם גוף JSON שנושא את מפתח ה-API שלכם.

bash
curl -X POST https://xuda.ai/cpi/get_cms_tables \
  -H 'content-type: application/json' \
  -d '{"api_key": "YOUR_API_KEY", "workspace_id": "YOUR_WORKSPACE_ID"}'

התשובה מכילה כל טבלה עם השדות שלה ומספר הרשומות, ואת מסד הנתונים שהיא נמצאת בו (ה-app_id ששיטות הרשומות מקבלות).

מהדשבורד

לכל טבלה יש חלון API: לוחצים על API ו-JSON בכרטיס או בטבלה פתוחה. הוא מראה את חמש קריאות הרשומות של אותה טבלה, את השדות של הטבלה עצמה כ-JSON, את אותה בקשה כ-cURL או JavaScript, ומקום לשלוח אותה. בוחר המפתחות שלו מציג את המפתחות שמגיעים לסביבת העבודה, ויכול ליצור חדש. מפתח עם גישה מלאה עובד. מפתח מותאם צריך dbs_read כדי לקרוא, ו-dbs_create, dbs_update ו-dbs_delete כדי לכתוב.

רשומות

חמש הקריאות של החלון מפעילות את השיטות האלה. כל אחת מקבלת את ה-app_id של מסד הנתונים של סביבת העבודה ואת המזהה של הטבלה.

רשומה היא אובייקט שהמפתחות שלו הם המזהים של שדות הטבלה. שולחים את table_data כמערך כדי להוסיף כמה רשומות בבת אחת. מחיקה מעבירה רשומות ל"בארכיון", ו-dbs_restore עם אותם מזהים מחזירה אותן. מוסיפים permanent כדי למחוק אותן לצמיתות.

POST/cpi/dbs_read
user_access

DBS Read

Reads records from an app table with optional row range, single-row lookup, sorting, filtering, and archived-record selection.

POST/cpi/dbs_create
admin

DBS Create

Creates a new record in the specified app table from the provided key-value table data.

POST/cpi/dbs_update
admin

DBS Update

Replaces the data of an existing record, identified by row_id, in the specified app table.

POST/cpi/dbs_delete
admin

DBS Delete

Soft-deletes (or permanently deletes when 'permanent' is set) the listed record IDs from an app table.

POST/cpi/dbs_restore
admin

DBS Restore

Restores previously soft-deleted records, identified by their IDs, in the specified app table.

טבלאות

POST/cpi/get_cms_tables
user

Get CMS Tables

The CMS tables of one workspace, active and archived, each with its fields and how many records it holds, plus the database the records live in (the app_id to hand dbs_read, dbs_create, dbs_update, dbs_delete and dbs_restore), whether that database is ready, and the plan with what it allows. The first open of a workspace other than Main installs the database plugin there and answers preparing until it is ready.

POST/cpi/get_cms_table
user

Get CMS Table

One CMS table as Xuda Studio stores it (its fields and indexes), with its record count and the database it lives in.

POST/cpi/save_cms_table
user

Save CMS Table

Create a CMS table, or change one when table_id is sent. A table has a name, an optional description and its fields, each a name, a type (string, number, boolean, date, array, object, or relation) and whether it is required. A relation field relates the table to the Contacts module ({ kind: 'module', module: 'contacts' }) or to another CMS table of the workspace ({ kind: 'table', table_id }), holding one id or, with many, several; a saved relation keeps what it relates to and its shape. Field names start with a letter and use letters, digits and underscores. A new table counts against the plan's tables, and every table against its fields per table. The table is an ordinary Xuda Studio table in the workspace's database, so it opens in Studio too.

POST/cpi/archive_cms_table
user

Archive CMS Table

Archive a CMS table (it leaves the list and its records stay) or bring it back with archived false, which counts against the plan's tables again.

POST/cpi/cms_related_records
user

Get CMS Records Of An Item

The CMS tables related to one item of another module (a ticket, a delivery, an order, a product, a finance document or a contact), each with its fields and the records that point at that item, so the item can show them to fill. A workspace with CMS switched off answers no tables.

טבלה חדשה נספרת מול הטבלאות של התוכנית שלכם, כל טבלה מול השדות שלה, והוספה או שחזור של רשומות מול הרשומות שלה. קריאה שעוברת מגבלה נדחית עם הודעה שאומרת איזו.

איך המדריך הזה?

עודכן לאחרונה ב-16 בנובמבר 2026