Blocs

Créer un template de bloc

Crée un nouveau template dans la bibliothèque de blocs.

post/api/blocks

Request

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

Request body

namestring required

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 required

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' nullable
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",
  "is_public": true,
  "type": "note_template",
  "content_html": "architecto",
  "default_title": "n",
  "is_active": true,
  "metadata": {
    "defaultPriority": "want",
    "defaultTags": [
      "g"
    ]
  }
}

Response

uuidstring
namestring
categorystring
user_idinteger

Example response

{
  "uuid": "block-uuid",
  "name": "Mon bloc",
  "category": "général",
  "user_id": 1
}

Changes

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