Update Request status on REST API
Hello There,
Is there someone to help me to change the status of a request with REST API ?
I successfully use GET_REQUEST (but with an http GET and never with a http POST).
when I do this with a POST http request:
OPERATION_NAME:EDIT_REQUEST
TECHNICIAN_KEY:<same as for GET_REQUEST>
INPUT_DATA:
<Operation>
<Details>
<status>Open</status>
</Details>
</Operation>
I have this answer:
<operation name="POST"><result><status>Failed</status><message>Technician key in the request is invalid. Unable to authenticate.</message></result></operation>
When I do it by http GET I have this:
<?xml version="1.0" encoding="UTF-8"?>
<operation name="GET">
<result>
<status>Success</status>
<message>Request updated successfully</message>
</result>
<details>
<workorderid>3105</workorderid>
<requester>Favre Charles</requester>
<createdby>Magnenat A.</createdby>
<createdtime>1402067278340</createdtime>
<duebytime>-1</duebytime>
<respondedtime>0</respondedtime>
<completedtime>1404156594338</completedtime>
<shortdescription>Lenovo + docking + Office 2013 + transferts</shortdescription>
<timespentonreq>144hrs 52min</timespentonreq>
<subject>Préparation commande 2140722</subject>
<requesttemplate>Default Request</requesttemplate>
<mode>Téléphone</mode>
<sla/>
<department>General</department>
<site>GN-AtelierGN</site>
<account>GN-Atelier</account>
<category>Ordinateur</category>
<subcategory/>
<item/>
<technician>Magnenat A.</technician>
<status>Closed</status>
<priority>Moyen (Bloque le service ou le poste de travail)</priority>
<level>Niveau 1 (Technique, imprimante, connexion)</level>
<closurecode/>
<closurecomments/>
<interestedparty/>
<group/>
<description>Lenovo + docking + Office 2013 + transferts
</description>
</details>
</operation>
But... but the status is not changed at all...
I will be thankfull if someone could help me.
Best regards,
Denis
New to ADSelfService Plus?