Project Blocks

Create project blocks

Creates one or more blocks in a Ditto project.

New blocks are appended to the end of the project.

post/projectBlocks

Request

  • Base URL: https://api.dittowords.com/v2
  • URL: https://api.dittowords.com/v2/projectBlocks
  • Auth: API key in header Authorization

Request body

projectIdstring required

Developer ID of the project the new blocks will be added to

Example request

{
  "projectId": "my-project",
  "blocks": [
    {
      "name": "Hero Section"
    },
    {
      "developerId": "custom-block-id",
      "name": "Footer"
    }
  ]
}

Response

Returns the developer IDs of the created blocks, in request order

developerIdsstring[] required

Array of developer IDs for the created blocks, in request order

Example response

{
  "developerIds": [
    "hero-section",
    "custom-block-id"
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.