Skip to Content
Stoatly Docs
Object types

Import an object type

If your data already lives in a spreadsheet, you don't have to rebuild it by hand. Import a CSV and Stoatly proposes the fields from the columns, then creates the type and its records together. Admins and schema designers can import.

From a CSV file

Choose Import from CSV

On the Objects page, open Add Object type and choose Import from CSV…, then drop a .csv file or click to browse.

Review the fields

Stoatly detects one field per column and guesses its type. Rename a label, change a type or add constraints, and untick any column you don't want. The counter shows how many are included.

Name the object type

Enter the Object Type Name. The slug it will get is shown beside it. If a type with that name exists, you must choose another before you continue.

Review the records

Choose Next: Records. Each row becomes a draft record. Invalid or conflicting records are skipped, and the footer says how many are ready.

Confirm

Choose Confirm Import. Stoatly opens the new object type.

The CSV import dialog, listing the fields detected from the columns with their types and limits.
The records step of the import, with each row marked ready, and the selected record's values.

The file needs a Name column. Without one, Stoatly saves the fields but imports no records.

From a JSON file

Choose Import from JSON… to create a type from a schema.json that Stoatly exported. The file must be a Stoatly export. The dialog lists the fields it contains.

After you import

The type and its records are draft changes. Review them in Your changes and send them in a pull request.

To bring more records into a type that already exists, see Import records.

On this page