Skip to main content
POST
/
v1
/
projects
/
{id}
/
components
Create a new Project Component
curl --request POST \
  --url https://api.edgee.app/v1/projects/{id}/components \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "component_id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
  "component_slug": "edgee/google-analytics",
  "component_version": "1.0.0",
  "active": true,
  "settings": {}
}'
{
  "object": "project_component",
  "id": "<string>",
  "component_id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
  "component_slug": "edgee/google-analytics",
  "component_version": "1.0.0",
  "category": "data_collection",
  "subcategory": "analytics",
  "active": true,
  "settings": {}
}

Authorizations

Authorization
string
header
required

Path Parameters

id
string
required

Body

application/json
component_id
string
Example:
component_slug
string
Example:
component_version
string
Example:
active
boolean
default:true
settings
object | null

Response

object
string
Example:
id
string
component_id
string
Example:
component_slug
string
Example:
component_version
string
Example:
category
string
Example:
subcategory
string
Example:
active
boolean
default:true
settings
object | null