Backoffice API
  1. Blocks
Backoffice API
  • Back to home
  • Magazines
  • Issues
    • List Issues by Workspace id
      GET
    • Create Issue in Workspace
      POST
    • Issue by id
      GET
    • Update Issue by id
      PATCH
    • Delete Issue by id
      DELETE
    • Restore soft deleted Issue by id
      POST
  • Sections
    • All sections by Issue id
      GET
    • Create Section in Issue
      POST
    • Section by id
      GET
    • Update Section by id
      PATCH
    • Remove Section by id
      DELETE
  • Blocks
    • All blocks by Section id
      GET
    • Bulk update blocks by Section id
      PUT
    • Block by id
      GET
    • Update Block by id
      PATCH
  • Slots
    • All slots by Block id
      GET
    • Bulk update slots by Block id
      PUT
  • SectionContents
    • List SectionContents by Issue id
      GET
    • Search SectionContents by Issue id
      GET
    • Create SectionContent in Section
      POST
    • Remove SectionContent by id
      DELETE
  1. Blocks

Update Block by id

PATCH
/blocks/{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
🟠404Entity not found
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PATCH 'https://prod.your-api-server.com/api/magazines/v2/blocks/{{magazine_section_block_id}}' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "configuration_id": "af0daaf4-983e-4703-a7ed-a10f146d6684",
    "text_color": "#ccaeee",
    "background_color": "#ccaeee",
    "background_svg": "string",
    "locked?": false,
    "locales": [
        {
            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
            "locale": "en",
            "name": "string",
            "description": "string",
            "visual": {
                "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                "type": "none",
                "image": null,
                "video": null,
                "slideshow": null
            },
            "deleted_at": "2019-08-24T14:15:22Z"
        }
    ]
}'
Response Response Example
200 - Example 1
{
    "data": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "configuration_id": "af0daaf4-983e-4703-a7ed-a10f146d6684",
        "text_color": "#ccaeee",
        "background_color": "#ccaeee",
        "background_svg": "string",
        "locked?": false,
        "locales": [
            {
                "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                "locale": "en",
                "name": "string",
                "description": "string",
                "visual": {
                    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                    "type": "none",
                    "image": null,
                    "video": null,
                    "slideshow": null
                },
                "deleted_at": "2019-08-24T14:15:22Z"
            }
        ],
        "inserted_at": "2019-08-24T14:15:22Z",
        "updated_at": "2019-08-24T14:15:22Z"
    }
}
Modified at 2025-06-19 16:43:15
Previous
Block by id
Next
All slots by Block id
Built with