Skip to main content
PUT
/
components
/
{id}
cURL
curl -X PUT https://api.neuraldraft.io/v1/components/cmp_2Ngd9KqLmRpW \
  -H "Authorization: Bearer ndsk_live_yourkey" \
  -H "Content-Type: application/json" \
  -d '{"html":"<section>…</section>"}'
{
  "id": "cmp_2Ngd9KqLmRpW",
  "html": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "intent": "marketing_hero",
  "page_slug": "home",
  "keys_created": [
    "hero.headline",
    "hero.subhead",
    "hero.cta"
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.neuraldraft.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Project API key. Pass as Authorization: Bearer ndsk_live_.... Manage keys via /projects/me/api-keys. Test-mode keys use the ndsk_test_ prefix.

Path Parameters

id
string
required
Example:

"cmp_2Ngd9KqLmRpW"

Body

application/json
html
string
required

Response

Updated component.

id
string
required
Example:

"cmp_2Ngd9KqLmRpW"

html
string
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
intent
string | null
Example:

"marketing_hero"

page_slug
string | null
Example:

"home"

keys_created
string[]
Example:
["hero.headline", "hero.subhead", "hero.cta"]