curl --request PATCH \
--url https://api.dittowords.com/v2/projectBlocks \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"projectId": "my-project",
"updates": [
{
"developerId": "hero-section",
"name": "Hero"
}
]
}
'{
"success": true
}{
"message": "Block id not found"
}Project Blocks
Update project blocks
Updates a set of blocks in a Ditto project.
Each block is identified by its developer ID. Only provided fields are modified — omitted fields remain unchanged.
PATCH
/
projectBlocks
curl --request PATCH \
--url https://api.dittowords.com/v2/projectBlocks \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"projectId": "my-project",
"updates": [
{
"developerId": "hero-section",
"name": "Hero"
}
]
}
'{
"success": true
}{
"message": "Block id not found"
}Authorizations
Body
application/json
Response
Returns success status of the update operation
Indicates whether the update was successful