PUT
/
backend
/
actions
/
bot
/
:id
/
import-from-swagger
curl --location --request PUT 'https://api-v2.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"
}

This endpoint points to the (v2) version of the API. The (v2) version of the API is the latest version and is recommended for all new development. Please update your code to use the (v2) version of the API.

Body

id
string

The uuid of the copilot

Headers

header
string

application/json

header
string

Bearer YOUR_TOKEN

Response

message
string

Indicates whether the call was successful.