Skip to main content
PATCH
/
resources
/
{uuid}
/
blocks
/
{subUuid}
Update a resource block
curl --request PATCH \
  --url https://api.journeybee.io/v1/resources/{uuid}/blocks/{subUuid} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "content": {},
  "series": 123,
  "asset_uuid": "<string>",
  "style": {
    "background_color": "<string>",
    "text_color": "<string>",
    "border": {
      "width": 123,
      "color": "<string>",
      "radius": 123
    },
    "padding": {
      "top": 123,
      "bottom": 123,
      "left": 123,
      "right": 123
    },
    "margin": {
      "top": 123,
      "bottom": 123,
      "left": 123,
      "right": 123
    }
  },
  "markdown": "<string>"
}
'
{
  "uuid": "<string>",
  "series": 123,
  "title": "<string>",
  "content": "<unknown>",
  "style": {
    "background_color": "<string>",
    "text_color": "<string>",
    "border": {
      "width": 123,
      "color": "<string>",
      "radius": 123
    },
    "padding": {
      "top": 123,
      "bottom": 123,
      "left": 123,
      "right": 123
    },
    "margin": {
      "top": 123,
      "bottom": 123,
      "left": 123,
      "right": 123
    }
  },
  "asset_uuid": "<string>",
  "created_at": "<string>",
  "updated_at": "<string>"
}

Authorizations

Authorization
string
header
required

API key authentication. Use "Bearer <api_key>" or "Api-Key <api_key>".

Path Parameters

uuid
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
subUuid
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Body

application/json
type
enum<string>
Available options:
text,
image,
video,
document,
button,
embed,
powerpoint,
files,
quiz
title
string | null
content
object

Block content. See create block for shape per type.

series
number
asset_uuid
string | null
style
object

Visual styling for the block.

markdown
string

Markdown content for text blocks. When provided, converts to TipTap JSON and overrides the content field.

Maximum string length: 100000

Response

200 - application/json

Default Response

uuid
string
required
type
enum<string>
required
Available options:
text,
image,
video,
document,
button,
embed,
powerpoint,
files,
quiz
series
number
required

Display order (1-indexed)

title
string | null
required
content
any
required

Block content — shape varies by type. See documentation.

style
object
required

Visual styling for the block.

asset_uuid
string | null
required

Associated asset (image, video file, document, etc.)

created_at
string
required
updated_at
string
required