Skip to content

Create or import an extension

POST
/api/v1/extensions
curl --request POST \
--url 'https://example.com/api/v1/extensions?projectId=00000000-0000-0000-0000-000000000000' \
--header 'Content-Type: application/json' \
--data '{ "_id": "example", "publisher": "example", "name": "example", "description": "example", "origin": "marketplace" }'
projectId
required

Project scope. Required on scoped list and root-create operations; requests without a resolvable project are rejected with 400. There is no default project.

string
>= 1 characters
Example
00000000-0000-0000-0000-000000000000

Project scope. Required on scoped list and root-create operations; requests without a resolvable project are rejected with 400. There is no default project.

Media type application/json
object
_id
required
string
/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+$/
publisher
required
string
name
required
string
description
string
origin
required
string
Allowed values: marketplace manual

Success

Media type application/json
object
_id
required
string
slug
required
string
publisher
required
string
name
required
string
description
string
origin
required
string
Allowed values: marketplace manual
createdAt
required
string | null format: date-time
updatedAt
string | null format: date-time
deletedAt
string | null format: date-time
projectId
required
string
Example
{
"origin": "marketplace"
}