VoidhashDocs
DocumentationAPI reference
Dashboard
Essentials
API overview
Authentication
Endpoints
Ad_accounts
Analytics
Api_keys
Session
Component_dev_sessions
Component_registry
Components
Sandbox
Events
Experiments
Feature_flags
Ingest_policy
Push_notifications
Organizations
Payment_providers
Payment_provider_products
Payment_sources
Paywall_locations
Paywalls
Perks
Persons
Products
Projects
Push_notification_configurations
Schema
Sdk
Me
Webhooks
Audit_log
Organization_members
Notices
Connected_apps
Tracking_domains
Ads
Payment_provider_history_imports
Feedback
Analytics
Event capture
List
Create
Get
Update
Delete

Create

POST
/api/v1/projects/{projectId}/component-dev-sessions

Path Parameters

projectId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

url*string
token*string
components*array<>

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/projects/string/component-dev-sessions" \  -H "Content-Type: application/json" \  -d '{    "url": "string",    "token": "string",    "components": [      {        "slug": "string",        "definitionId": "string",        "title": "string",        "origin": "server",        "isModified": true,        "isConflicted": true,        "build": {          "state": "building"        }      }    ]  }'
{  "id": "string",  "projectId": "string",  "url": "string",  "token": "string",  "components": [    {      "slug": "string",      "definitionId": "string",      "title": "string",      "origin": "server",      "baseVersion": -9007199254740991,      "publishedVersion": -9007199254740991,      "isModified": true,      "isConflicted": true,      "build": {        "state": "building",        "message": "string"      },      "moduleHash": "string",      "panelHash": "string",      "definition": null    }  ],  "createdAt": "string",  "updatedAt": "string",  "expiresAt": "string"}
{  "error": {    "type": "invalid_request",    "code": "string",    "message": "string",    "param": "string"  }}
{  "error": {    "type": "unauthenticated",    "code": "string",    "message": "string",    "param": "string"  }}
{  "error": {    "type": "permission_denied",    "code": "string",    "message": "string",    "param": "string"  }}
{  "error": {    "type": "not_found",    "code": "string",    "message": "string",    "param": "string"  }}
{  "error": {    "type": "internal",    "code": "string",    "message": "string",    "param": "string"  }}
PreviousListNextGet