curl --request POST \
--url http://localhost:8080/api/v1/endpoints/legal-qa/publish \
--header 'Authorization: Bearer YOUR_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"marketplace_ids": [
"123e4567-e89b-12d3-a456-426614174000",
"223e4567-e89b-12d3-a456-426614174001"
],
"publish_to_all_marketplaces": false
}'
{
"endpoint_slug": "legal-qa",
"results": [
{
"marketplace_id": "123e4567-e89b-12d3-a456-426614174000",
"marketplace_name": "Legal Services Marketplace",
"success": true,
"message": "Successfully published endpoint to marketplace",
"error": null
},
{
"marketplace_id": "223e4567-e89b-12d3-a456-426614174001",
"marketplace_name": "Enterprise Marketplace",
"success": true,
"message": "Successfully published endpoint to marketplace",
"error": null
}
]
}
curl --request POST \
--url http://localhost:8080/api/v1/endpoints/legal-qa/publish \
--header 'Authorization: Bearer YOUR_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"marketplace_ids": [
"123e4567-e89b-12d3-a456-426614174000",
"223e4567-e89b-12d3-a456-426614174001"
],
"publish_to_all_marketplaces": false
}'
{
"endpoint_slug": "legal-qa",
"results": [
{
"marketplace_id": "123e4567-e89b-12d3-a456-426614174000",
"marketplace_name": "Legal Services Marketplace",
"success": true,
"message": "Successfully published endpoint to marketplace",
"error": null
},
{
"marketplace_id": "223e4567-e89b-12d3-a456-426614174001",
"marketplace_name": "Enterprise Marketplace",
"success": true,
"message": "Successfully published endpoint to marketplace",
"error": null
}
]
}
publish_to_all_marketplaces is false.marketplace_ids.Show result properties
curl --request POST \
--url http://localhost:8080/api/v1/endpoints/legal-qa/publish \
--header 'Authorization: Bearer YOUR_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"marketplace_ids": [
"123e4567-e89b-12d3-a456-426614174000",
"223e4567-e89b-12d3-a456-426614174001"
],
"publish_to_all_marketplaces": false
}'
{
"endpoint_slug": "legal-qa",
"results": [
{
"marketplace_id": "123e4567-e89b-12d3-a456-426614174000",
"marketplace_name": "Legal Services Marketplace",
"success": true,
"message": "Successfully published endpoint to marketplace",
"error": null
},
{
"marketplace_id": "223e4567-e89b-12d3-a456-426614174001",
"marketplace_name": "Enterprise Marketplace",
"success": true,
"message": "Successfully published endpoint to marketplace",
"error": null
}
]
}
publish_to_all_marketplaces: true when you want to make your endpoint available across all marketplaces without specifying each one individually.