v1

latestOpenAPI 3.0.0Apache 2.02026-07-1410280162.7 KB
services

Create a service descriptor error template

Update a service descriptor targets

post/api/services/{serviceId}/template

Path parameters

serviceIdstring required

The service id

Request body

messagesobject required

Map for custom messages

serviceIdstring required

The Id of the service for which the error template is enabled

template40xstring required

The html template for 40x errors

template50xstring required

The html template for 50x errors

templateBuildstring required

The html template for build page

templateMaintenancestring required

The html template for maintenance page

Example request

{
  "messages": {
    "key": "value"
  },
  "serviceId": "a string value",
  "template40x": "a string value",
  "template50x": "a string value",
  "templateBuild": "a string value",
  "templateMaintenance": "a string value"
}

Response

Successful operation

messagesobject required

Map for custom messages

serviceIdstring required

The Id of the service for which the error template is enabled

template40xstring required

The html template for 40x errors

template50xstring required

The html template for 50x errors

templateBuildstring required

The html template for build page

templateMaintenancestring required

The html template for maintenance page

Example response

{
  "messages": {
    "key": "value"
  },
  "serviceId": "a string value",
  "template40x": "a string value",
  "template50x": "a string value",
  "templateBuild": "a string value",
  "templateMaintenance": "a string value"
}