We have recently upgraded to 11.1.0 Build 11130.
Prior to this update the v1 Change API were working a treat; whilst we were told they would still be supported the API have stoppped working (a seperate support ticket has been logged for this).
I've looked at rewrting it as a v3 with 90% success... the sample below works to a point but I can't fathom how to a add a 'change role' in the JSON..... i've googled to find a working sample i can use.
I had thought that the following would work (but didn't)
"roles": [
{
"role": {
"id": "1"
},
"user": {
"id": "149408"
}
},
{
"role": {
"id": "2"
},
"user": {
"id": "149408"
}
},
{
"role": {
"id": "301"
},
"user": {
"id": "331"
}
}
],
but the payload response I am getting is
{
"response_status": {
"status_code": 4000,
"messages": [
{
"status_code": 4001,
"field": "roles",
"type": "failed",
"message": "Extra key found in JSON"
}
],
"status": "failed"
}
}
which is less than useless......................................
Any pointers would be greatly appreciated!!!!
Thanks in advance!
{
"change": {
"template": {
"id": "1501"
},
"description": "test-description",
"type": {
"id": "1"
},
"title": "Testy McTest",
"change_owner": {
"id": "149408"
},
"change_requester": {
"id": "149408"
},
"group": {
"id": "601"
},
"workflow": {
"id": "301"
},
"change_manager": {
"id": "149408"
},
"reason_for_change": {
"id": "3"
},
"stage": {
"id": "2"
},
"risk": {
"id": "1"
},
"category": {
"id": "623"
},
"subcategory": {
"id": "968"
},
"status": {
"id": "16"
},
"priority": {
"id": "1"
},
"scheduled_start_time": {
"value": "1605628800000"
},
"scheduled_end_time": {
"value": "1605636000000"
}
}
}