I'm also having trouble to create a new incidente using REST API. I've been trying to do it like following code in python:
import requests
url = "https://csm3.serviceaide.com/csmconnector/Incident"
payload={'incident': '{"description": "descricao","description_long": "detalhes","requester_name": "Blay, Leonardo","RequesterOrgID": "2"}'}
files=[
]
headers = {
'Accept': '*/*',
'csm_app_url': 'https://csm3.serviceaide.com',
'user_auth_token': '<auth_token>',
'slice_token': '<slice_token>',
'webservice_user_name': '<login>',
'webservice_user_password': '<password>'
}
response = requests.request("POST", url, headers=headers, data=payload, files=files)
print(response.text)
I've also tried to use Postman with these header params:
Accept:*/*
csm_app_url:https://csm3.serviceaide.com
user_auth_token:<auth_token>
slice_token:<slice_token>
webservice_user_name:<login>
webservice_user_password:<password>
And this body param:
incident:{"description":"descricao","description_long":"detalhes","requester_name":"Blay, Leonardo","RequesterOrgID":"2"}
I was expecting to create an incident and response its number. Instead I've keep getting:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<h1>Forbidden</h1>
<p>You don't have permission to access /csmconnector/Incident
on this server.</p>
</body>
</html>
I've tried to use many other credentials, including admin credentials, but the result is the same.
What am I missing?
Thanks!
------------------------------
Leonardo Blay
Senior Analyst
Infoglobo
Rio de Janeiro
+55 21 25349747
------------------------------