Skip to main content
POST
Create text items from a base

Authorizations

Authorization
string
header
required

Body

application/json
projectId
string
required

Developer ID of the Ditto project to add the new text items to.

baseTextItemIds
string[]
required

Array of developer IDs of the base text items to copy into the project.

Minimum array length: 1
blockId
string

Optional: Developer ID of an existing block in the target project to place the new text items in. Cannot be used with newBlockName.

newBlockName
string

If provided, will create a new block in the project with this name and place the new text items inside it. Cannot be used with blockId.

Minimum string length: 1

Response

Returns a success flag once the text items have been created in the project

success
boolean
required

Indicates whether the text items were successfully created.