Backoffice API
  1. Blocks
Backoffice API
  • Back to home
  • Docs
  • ContentTypes
    • Paginated ContentTypes
      GET
    • Create ContentType
      POST
    • ContentType by id
      GET
    • Update ContentType by id
      PATCH
    • Remove ContentType by id
      DELETE
  • Templates
    • Paginated Templates
      GET
    • Create Template
      POST
    • Template by id
      GET
    • Update Template by id
      PATCH
    • Remove Template by id
      DELETE
  • Contents
    • Paginated Contents
      GET
    • Create Content
      POST
    • Content by id
      GET
    • Update Content by id
      PATCH
    • Delete Content by id
      DELETE
    • Restore soft deleted Content by id
      POST
    • Switch Content Template by id
      POST
  • Metadata
    • All Content Metadata
      GET
    • Update all Content Metadata
      PUT
  • Blocks
    • All blocks by Content id
      GET
    • Create Block in a Content Locale
      POST
    • Update Block by id
      PATCH
    • Remove Block by id
      DELETE
  1. Blocks

Update Block by id

PATCH
/contents/blocks/{block_id}

Request

Authorization
API Key
Add parameter in header
x-api-key
Example:
x-api-key: ********************
or
API Key
Add parameter in query
x-api-key
Example:
x-api-key: ********************
or
Path Params

Body Params application/json

Examples

Responses

🟢200Success
application/json
Body

🟠400Invalid UUID
🟠400Bad Request
🟠401Unauthorized API KEY
🟠403Unauthorized roles
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://prod.your-api-server.com/api/docs/v2/contents/blocks/23fc83d5-c740-4c12-b2a8-6842bf715b43' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "kind": "quote",
    "content_locale_id": "a46ac801-35e8-461a-93d4-9a3db7d6ae99",
    "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc",
    "quote_html": "string",
    "visual": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "type": "none",
        "image": null,
        "video": null,
        "slideshow": null
    }
}'
Response Response Example
200 - Example 1
{
    "data": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "kind": "quote",
        "content_locale_id": "a46ac801-35e8-461a-93d4-9a3db7d6ae99",
        "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc",
        "quote_html": "string",
        "visual": {
            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
            "type": "none",
            "image": null,
            "video": null,
            "slideshow": null
        },
        "position": 0
    }
}
Modified at 2025-06-19 16:42:26
Previous
Create Block in a Content Locale
Next
Remove Block by id
Built with