curl --location --request PUT 'https://api.opencopilot.so/backend/actions/bot/:id/import-from-swagger' \ --header 'Accept: application/json' \ --header 'Authorization : Bearer YOUR_TOKEN' \ --form 'file=@"/Users/gharbat/Desktop/swagger.json"'
{ "message": "Successfully imported actions from swagger.json" }
Import actions from a Swagger file to a copilot by ID
Documentation IndexFetch the complete documentation index at: https://openchat-api-docs.mintlify.app/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://openchat-api-docs.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.