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