Skip to main content
PUT
Update Component

Path Parameters

organizationId
string
required
Organization ID
projectId
string
required
Project ID
id
string
required
Component ID

Request Body

All fields are optional. Only provided fields will be updated.
name
string
Updated component name
content
string
Updated component source code (TypeScript)
collectionId
string
Move to different collection (null for root)
metadata
object

Example Request

When updating a published component, its status changes to modified. The TypeScript code in content is automatically recompiled.

Response

Returns the updated Component object.

Error Responses

Not Found

Validation Failed

Code Examples