Recommendation Servicenow
Recommendation CRUD apis for servicenow.
Attach an existing ServiceNow ticket to a recommendation
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the attached ServiceNow details
POST /recommendation/servicenow/attach?accountIdentifier=text HTTP/1.1
Host: app.harness.io
Content-Type: application/json
Accept: */*
Content-Length: 69
{
"recommendationId": "text",
"ticketType": "text",
"ticketNumber": "text"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Create Servicenow ticket for recommendation
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns a created CACMServiceNowDetails object with all the servicenow ticket details
POST /recommendation/servicenow/create?accountIdentifier=text HTTP/1.1
Host: app.harness.io
Content-Type: application/json
Accept: */*
Content-Length: 117
{
"recommendationId": "text",
"resourceType": "WORKLOAD",
"ticketType": "text",
"fields": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Detach ServiceNow details from a recommendation, optionally updating ticket fields first
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Detaches ServiceNow details from recommendation
POST /recommendation/servicenow/detach?accountIdentifier=text HTTP/1.1
Host: app.harness.io
Content-Type: application/json
Accept: */*
Content-Length: 71
{
"recommendationId": "text",
"fields": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Account Identifier for the Entity.
ServiceNow connector reference
Bad Request
This is Failure entity as defied in Harness
Internal server error
GET /recommendation/servicenow/serviceRequestFields?accountIdentifier=text&connectorRef=text HTTP/1.1
Host: app.harness.io
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Last updated
Was this helpful?