Skip to main content
POST
/
v1
/
components
Create a Component
curl --request POST \
  --url https://api.edgee.app/v1/components \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "My Component",
  "slug": "my-component",
  "category": "data_collection",
  "subcategory": "analytics",
  "documentation_link": "<string>",
  "repo_link": "<string>",
  "description": "<string>",
  "avatar_url": "<string>",
  "public": true
}'
{
  "object": "component",
  "id": "<string>",
  "name": "<string>",
  "slug": "<string>",
  "avatar_url": "<string>",
  "category": "<string>",
  "subcategory": "<string>",
  "description": "<string>",
  "latest_version": "<string>",
  "versions": {},
  "repo_link": "<string>",
  "documentation_link": "<string>",
  "created_at": "2022-03-01T00:00:00Z",
  "updated_at": "2022-03-01T00:00:00Z",
  "is_public": false,
  "is_archived": false
}

Authorizations

Authorization
string
header
required

Body

application/json
name
string
required
Example:
category
enum<string>
required
Available options:
data_collection,
edge_function,
js_gateway,
security,
consent_management,
identity,
stitching
subcategory
enum<string>
required
Available options:
analytics,
warehouse,
attribution,
conversion_api,
wasm_function,
server_side_tagging,
microservice,
kv_store,
bot_protection,
rate_limiting,
anti_fraud,
consent_mapping,
cmp,
native_cookies,
unique_id,
ab_testing,
web_performance
slug
string
Example:
description
string
avatar_url
string
public
boolean

Response

object
string
Example:
id
string
name
string
slug
string
avatar_url
string
category
string
subcategory
string
description
string
latest_version
string
versions
object
created_at
string<date-time>
Example:
updated_at
string<date-time>
Example:
is_public
boolean
Example:
is_archived
boolean
Example: