Webhook ServiceNow
Método: POST
Url: /webhooks/99007/servicenow/{table}/{id}
Descripción: Notifica el cambio de un caso en ServiceNow
Encabezados
| Nombre | Descripción |
|---|---|
| X-Authorization | Token JWT de autorización. Debe tener el formato: Bearer token |
Parámetros
| Nombre | Tipo | Descripción |
|---|---|---|
| table | string | incident, problem, change_request |
| id | string | sys_id del caso en ServiceNow |
Cuerpo del mensaje
| Nombre | Tipo | Descripción |
|---|---|---|
| description | string | (Opcional) Texto de la descripción. Se usa en caso de necesitar personalizar la descripción original de ServiceNow. |
Ejemplo:
{
"description": "string"
}
Respuesta
| Nombre | Tipo | Descripción |
|---|---|---|
| id | int | Identificador interno del caso |
| idByProject | string | Identificador por proyecto del caso |
Ejemplo:
{
"id": int,
"idByProject": "string",
}
Códigos de error
| Código | Descripción |
|---|---|
| AIC90007_0010 | Field ‘{0}’ required, definition ‘{1}’ |
| AIC90007_0011 | Field ‘{0}’ required |
| AIC90007_0012 | Field ‘{0}’ NO required |
| AIC90007_0013 | Field ‘{0}’ requires property ‘{1}’ |
| AIC90007_0014 | Requires a mapping type of type ‘Mapping’ |
| AIC90007_004 | Unauthorized |
| AIC90007_005 | Configuration empty |
| AIC90007_006 | Required fields |
| AIC90007_007 | Table {0} already assigned |
| AIC90007_008 | ItemType {0} already assigned |
| AIC90007_009 | Field definition ‘{0}’ requires data matching, add property ‘{0}’ |
| AIC90007-001 | Unrecognized table |
| AIC90007-002 | Invalid mapping {0} required fields ‘{1}’, ‘{2}’, ‘{3}’ |
| AIC90007-003 | Invalid item type {0} |
| AIC90007-100 | It was not possible to connect to the system (connection error) |
| AIC90007-200 | An error occurred while updating information in ASMS |
| AIC90007-300 | An error occurred while updating information in ServiceNow |
| AIC90007-999 | Unknown error |