I’m working on a possible hunch of an issue I’m having. I want to use the API to update all the service offerings to a new value for the Default Item B. I’ve tried to do a post with the this:
{"resolvingParameters" : r{"parameterValue": "REPORT AN ISSUE WITH EMAIL","parameterName": "shortCode"}],"customEntityDefinitionId":322,"defaultItemBId":0,"name":"Report an Issue with Email","defaultItemAId":145,"defaultSeriousnessId":19,"defaultCategoryId":73,"shortCode":"REPORT AN ISSUE WITH EMAIL","defaultPriorityId":3,"defaultDepartmentId":587,"parentServiceId":1726,"defaultRoomId":1,"defaultAssignedServDeptId":1}
Which results in this:
{
"type": "ObjectInUseException",
"message": "The requested resource cannot be created as its identifier is already in use.",
"messageKey": "rest.exceptions.ObjectInUseException",
"diagnostic": "could not execute batch, (Cause exception: Cannot insert duplicate key row in object 'dbo.serv_off' with unique index 'serv_off2_ux'. The duplicate key value is (REPORT AN ISSUE WITH EMAIL, 0, 1726).)"
}
I moved to try the PUT for this, but results in this:
<html>
<head>
<title>Error</title>
</head>
<body>Forbidden</body>
</html>
My initial thought that the PUT wasn’t available for this part of the API. I tested with different user and found it still returned the same.
In the search for a solution here, I came across this, but where can I get this “API Example module”?
https://community.ifs.com/alliance-265/api-examples-9809
The main question, is this possible to do an update instead of trying to create?
Thanks, Michael