/services[ POST ]


Add/modify a service. This API call adds the service if not exist or modify it if already exists. 

Important Note:

Adding a new service via this call will only add a new service entry in the Opereto database. To work with services, we recommend using the import and upload service call instead. You should use this API only if you want to create a new service entry and import/upload the specification and service code at a later stage. 


Body Parameters


Name
Optional
Valid values
id
No
string: service name/id
type No
string: service type (learn more about service types)


Request Examples      

curl -k -u admin:admin -X POST -H "Content-Type: application/json" -d '{
    "id" : "my_service",
    "type": "action"
}' https://OPERETOHOST/services 

   

       

Response Examples 

{"status": "success", "data": "my_service"}