Components
Import components via a file
For more information about importing components via a file please see: https://www.dittowords.com/docs/importing-string-files. The request body must be of type multipart/form-data.
POST
/
components
/
file
Authorizations
Authorization
string
headerrequiredQuery Parameters
folderId
string
The API ID of the folder you want to import components into. If not specified, components will be imported into the root of your component library.
Body
multipart/form-data
import
string
The absolute path to the file you want to import. Postman and other tools support directly uploading files, but if you're using cURL you'll need to use the @
prefix, e.g. curl -F import=@/path/to/file.json
Response
200 - application/json
componentsInserted
number
requiredfirstImportedId
required