PUT
/
v1
/
components
/
{id}
curl --request PUT \
  --url https://api.edgee.app/v1/components/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "documentation_link": "<string>",
  "repo_link": "<string>",
  "name": "<string>",
  "description": "<string>",
  "is_archived": true,
  "public": true,
  "avatar_url": "<string>"
}'
{
  "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

Bearer authentication header of the form Bearer <token>, where <token> is your auth token. More info here

Path Parameters

id
string
required

Body

application/json

Response

200
application/json

The updated Component

A component is a reusable piece of code that can be used in multiple projects.