Creating a Let's encrypt SSL certificate for an OC application

curl -X POST
     -H "Authorization: Bearer <thy_api_key>" \
     -d '<request_body_json>'<thy_appid>

Request body JSON format

     "domains": ["STRING", ...]

Upon receipt of the request, OC attempts to create a Let’s encrypt SSL certificate for the provided domains. If the domains array is blank, OC will remove the current SSL certificate in use instead. This request can take up to a few minutes to respond depending on the number of domains. If the request succeeds, the current SSL cert is replaced with the newly created one. If the request fails, nothing happens and the error is reported back to the calling client.