Blocs

Modifier un template de bloc

patch/api/blocks/{uuid}

Request

  • Base URL: https://lucidnest.test
  • URL: https://lucidnest.test/api/blocks/{uuid}
  • Auth: HTTP bearer

Request body

namestring

Le champ value ne peut pas dépasser 255 caractères.

descriptionstring nullable

Le champ value ne peut pas dépasser 1000 caractères.

categorystring

Le champ value ne peut pas dépasser 50 caractères.

iconstring nullable

Le champ value ne peut pas dépasser 50 caractères.

colorstring nullable

Le champ value ne peut pas dépasser 20 caractères.

default_dataobject nullable
default_styleobject nullable
is_publicboolean
type'block' | 'note_template'
content_htmlstring nullable
default_titlestring nullable

Le champ value ne peut pas dépasser 255 caractères.

is_activeboolean

Example request

{
  "name": "b",
  "description": "Et animi quos velit et fugiat.",
  "category": "d",
  "icon": "l",
  "color": "jnikhwaykcmyuwpw",
  "type": "note_template",
  "content_html": "architecto",
  "default_title": "n",
  "is_active": true,
  "metadata": {
    "defaultPriority": "should",
    "defaultTags": [
      "g"
    ]
  }
}

Response

uuidstring
namestring
categorystring

Example response

{
  "uuid": "block-uuid",
  "name": "Bloc modifié",
  "category": "général"
}

Changes

No recorded changes to this operation across all 1 revision of this API.