cURL
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 }
Create a Component.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token. More info here
Bearer <token>
<token>
The created Component
A component is a reusable piece of code that can be used in multiple projects.
Was this page helpful?