Add a workflow to a catalog#
API Endpoint: <IMPROMPT_SERVER_URL>/marketplace-catalogs/<MARKETPLACE_CATALOG_ID>/workflows
Method: POST
Body: {
"workflow_id":"94c174594982989bd807dbbe0",
"priority_ranking":100
}
X-Api-Key: API_KEY
curl --location '<IMPROMPT_SERVER_URL>/marketplace-catalogs/<MARKETPLACE_CATALOG_ID>/workflows' \
--header 'Content-Type: application/json' \
--header 'Authorization: <API_KEY>' \
--data '{
"workflow_id":"94c174594982989bd807dbbe0",
"priority_ranking":100
}'
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 |
---|---|---|
workflow_id |
string |
The id of the workflow to be added to the catalog. |
priority_ranking |
integer |
The priority ranking of the plugin in the catalog. The lower the number, the higher the priority. If not provided, the plugin will be added to the end of the catalog. |
Sample Response#
{
"added_by_user_id": 2,
"created_at": "Mon, 31 Jul 2023 12:47:26 GMT",
"marketplace_catalog_id": 2,
"priority_ranking": 100,
"updated_at": "Mon, 31 Jul 2023 12:47:26 GMT",
"workflow_id": "6f37b1f7-6809-45a3-87a0-b257403affee"
}