Skip to main content
PATCH
/
resources
/
{uuid}
Update a resource
curl --request PATCH \
  --url https://api.journeybee.io/v1/resources/{uuid} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "label": "<string>",
  "summary": "<string>",
  "live": true,
  "partner_type_referral": true,
  "partner_type_reseller": true,
  "partner_type_distributor": true,
  "asset_uuid": "<string>"
}
'
{
  "uuid": "<string>",
  "label": "<string>",
  "summary": "<string>",
  "live": true,
  "created_at": "<string>",
  "updated_at": "<string>",
  "asset_uuid": "<string>",
  "tags": [
    {
      "uuid": "<string>",
      "label": "<string>"
    }
  ],
  "categories": [
    {
      "uuid": "<string>",
      "label": "<string>"
    }
  ],
  "folders": [
    {
      "uuid": "<string>",
      "label": "<string>"
    }
  ],
  "blocks": [
    {
      "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>"
    }
  ],
  "partner_type_referral": true,
  "partner_type_reseller": true,
  "partner_type_distributor": true
}

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)$

Body

application/json
label
string
Required string length: 1 - 500
summary
string | null
type
enum<string>
Available options:
internal,
partner,
campaigns,
public
live
boolean
partner_type_referral
boolean
partner_type_reseller
boolean
partner_type_distributor
boolean
asset_uuid
string | null

Response

200 - application/json

Default Response

uuid
string
required
label
string | null
required
summary
string | null
required
live
boolean
required
type
enum<string>
required
Available options:
internal,
partner,
campaigns,
public
created_at
string
required
updated_at
string
required
asset_uuid
string | null
required
tags
object[]
required
categories
object[]
required
folders
object[]
required
blocks
object[]
required
partner_type_referral
boolean
required
partner_type_reseller
boolean
required
partner_type_distributor
boolean
required