Summary
Updates a service group
Description
Updates a service group based on given option properties.
Route
PUT /policy-manager/service-groups/:id
Roles
admin
other
readonly
apiread
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
id |
string |
yes |
ID of the service group. |
details |
object |
yes |
Object containing the fields to be updated |
Copied to Clipboard
{
"details": {
"name": "nostrud",
"description": "dolore eu aliqua minim aliquip",
"services": [
"do consequat amet officia"
]
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"details": {
"title": "details",
"type": "object",
"properties": {
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"services": {
"type": "array",
"items": {
"title": "serviceId",
"type": "string"
}
}
},
"required": [
"name"
]
}
},
"required": [
"details"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
response |
object |
Response of the updates to the service. |
Copied to Clipboard
{
"status": "failure",
"message": "amet velit",
"doc": {
"id": "ut sint",
"name": "do voluptate quis",
"description": "laborum",
"services": [
"reprehenderit qui consequat in",
"in",
"cillum",
"adipisicing cillum"
],
"created": "1948-07-11T13:25:37.297Z",
"createdBy": "commodo Ut tempor et laboris",
"lastUpdated": "1954-04-22T11:51:07.944Z",
"lastUpdatedBy": "in Lorem officia"
}
}
Copied to Clipboard
{
"title": "response",
"type": "object",
"properties": {
"status": {
"enum": [
"success",
"failure"
]
},
"message": {
"type": "string"
},
"doc": {
"title": "serviceGroup",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"services": {
"type": "array",
"items": {
"title": "serviceId",
"type": "string"
}
},
"created": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "string"
},
"lastUpdated": {
"type": "string",
"format": "date-time"
},
"lastUpdatedBy": {
"type": "string"
}
},
"required": [
"id",
"name",
"description",
"services",
"created",
"createdBy",
"lastUpdated",
"lastUpdatedBy"
]
}
}
}