Create Service
Changed onCreates a service.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Request body
The machine name of the Service that uniquely identifies it within the catalog.
The display name of the Service.
Optionally provide a description of the Service.
Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
Map of customizable, catalog-defined fields providing information about a service.
Example request
{
"name": "user-svc",
"display_name": "User Service",
"labels": {
"env": "test"
},
"custom_fields": {
"owner": "John Appleseed",
"dashboard": {
"name": "On-Call Dashboard",
"link": "https://my-dashboard-svc.io/dashboards/1"
}
}
}Response
A response containing a single service object.
The service object contains information about a Service Catalog service.
The service ID.
The machine name of the Service that uniquely identifies it within the catalog.
The display name of the Service.
Optionally provide a description of the Service.
Map of customizable, catalog-defined fields providing information about a service.
Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
An ISO-8601 timestamp representation of entity creation date.
An ISO-8601 timestamp representation of entity update date.
Example response
{
"id": "7f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
"name": "user-svc",
"display_name": "User Service",
"custom_fields": {
"owner": "John Appleseed",
"dashboard": {
"name": "On-Call Dashboard",
"link": "https://my-dashboard-svc.io/dashboards/1"
}
},
"labels": {
"env": "test"
},
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z"
}Changes
- breaking
added to the
invalid_parameters/itemsresponse propertyoneOflist for the response status - warning
added the new
key_invalidenum value to theinvalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/ruleresponse property for the response status - warning
added the new
uniqueenum value to theinvalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/ruleresponse property for the response status
- breaking