Project Blocks

Delete project blocks

Deletes blocks from a Ditto project.

delete/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 blocks belong to

developerIdsstring[] required

Developer IDs of the blocks to delete. Text items in a deleted block are not deleted — they are unassigned and moved to the end of the project's root level.

Example request

{
  "projectId": "my-project",
  "developerIds": [
    "hero-section",
    "footer"
  ]
}

Response

Returns success status of the deletion operation

successboolean required

Indicates whether the deletion was successful

Example response

{
  "success": true
}

Changes

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