Add a catalog to a marketplace#
API Endpoint: <IMPROMPT_SERVER_URL>/marketplaces/<MARKETPLACE_ID>/catalogs
Method: POST
Body: {
"name":"My Catalog",
"description":"desc",
"at_stage":"dev",
"is_published": true
}
X-Api-Key: API_KEY
curl --location '<IMPROMPT_SERVER_URL>/marketplaces/<MARKETPLACE_ID>/catalogs' \
--header 'Content-Type: application/json' \
--header 'Authorization: <API_KEY>' \
--data '{
"name":"My Catalog",
"description":"desc",
"at_stage":"dev",
"is_published": true
}'
API Body Parameters#
These parameters are used to configure the API request. The API request body is a JSON object with the following fields:
Field |
Type |
Description |
---|---|---|
name |
string |
Name of the catalog. |
description |
string |
Description of the catalog. |
at_stage |
string |
Accepted values: dev, test, prod (default: dev) |
is_published |
boolean |
Accepted values: true, false (default: false) |
Sample Response#
{
"at_stage": "dev",
"created_at": "Mon, 31 Jul 2023 10:23:11 GMT",
"description": null,
"id": 1,
"is_published": false,
"marketplace_id": 1,
"name": "My Catalog",
"updated_at": "Mon, 31 Jul 2023 10:23:11 GMT"
}