Deluge custom share script not work
Hi,
I want to use this script to share request in some stage of RLC:
- url = "http://SDP:8080/api/v3/requests/"+ requestObj.get('id')+"/share";
headers = {"technician_key":"4991FCB9-9781-4EE3-AD37-8DB86829C46B"};
input_data = {
"share":{
"technicians":[{"name":"Mike Joe"}],
"groups":[{"name": "Security - Standard"}]
}
};
params = {"input_data": input_data};
response = invokeurl
[
url: url
type: PUT
parameters: params
headers: headers
];
return response;
But when I save and test script, I get this error:
- {"response_status":{"messages":[{"type":"failed","message":"technician field has invalid value(s) : [{\"name\":\"Mike Joe\"}]"}],"status":"failed"}}
What should I do to resolve this issue? I think it's bug because I used this script before that without any problem.
SDP V12.0.07
DB: MS SQL
Thanks for helping
New to ADSelfService Plus?