Summary
Add Service to Catalog Store
Description
Add a new service to the Service Catalog Store.
Route
POST /service_catalog/AddNewService
Roles
admin
engineering
support
apiwrite
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
data |
object |
yes |
Service's data. |
Copied to Clipboard
{
"data": {
"_id": "fe1bfeee-61b8-404d-aefc-dc57be92ff02",
"service_id": "/ncs:services/itential_test:choices",
"name": "test",
"description": "test",
"groups": [
"admin",
"admin",
"admin",
"admin"
],
"job_groups": [
"admin",
"admin",
"admin"
],
"form_id": "912fd926-5391-48ff-b265-394d00640f4f",
"worflow": "testWF",
"variable_name": "testVar",
"createdBy": "admin@pronghorn",
"created": "2019-04-18T12:44:40.112Z",
"lastUpdatedBy": "admin@pronghorn",
"lastUpdated": "2019-04-18T12:44:40.112Z"
}
}
Return
DetailsExampleSchema
Name |
Type |
Description |
results |
object |
Return the new service. |
Copied to Clipboard
{
"_id": "fe1bfeee-61b8-404d-aefc-dc57be92ff02",
"service_id": "/ncs:services/itential_test:choices",
"name": "test",
"description": "test",
"groups": [
"admin",
"admin",
"admin",
"admin",
"admin"
],
"job_groups": [
"admin",
"admin",
"admin",
"admin"
],
"form_id": "912fd926-5391-48ff-b265-394d00640f4f",
"worflow": "testWF",
"variable_name": "testVar",
"createdBy": "admin@pronghorn",
"created": "2019-04-18T12:44:40.112Z",
"lastUpdatedBy": "admin@pronghorn",
"lastUpdated": "2019-04-18T12:44:40.112Z"
}