Skip to content

Change

Changes arise as a result of problems. But, a lot of changes can come from pro-actively seeking business benefits such as reducing costs or improving services.

Attributes

id (long)
Unique identifier of the change.

id (long)
Numerical digits which are considered to have larger values.

Example

234759602834500

title (string)
Denotes the Title / Subject of the Change Request.

title (string)
A text in a plain format. No rich text or new line characters allowed.

Example

Sample Content

template (change_template)
Denotes the Change Template Name.

template (change_template)

workflow (workflow)
Denotes the Change Workflow Name.

workflow (workflow)

status (change_status)
Denotes the Change Status (Requested for Information, Approval Pending, Planning In Progress etc.,).

status (change_status)

stage (change_stage)
Denotes the Change Stage (Submission, Planning, Implementation etc.,).

stage (change_stage)

More Attributes Expand all

scheduled_start_time (datetime)

Denotes the Scheduled Start Time.

scheduled_start_time (datetime)
Represents a date/time as a JSON Object. Would contain the value and the display_value attributes.

value : The time in long format (No. of milliseconds from Jan 1, 1970 ).

display_value : The time in a readable form in a format as personalized by the user. If not personalized, default format would be used.

scheduled_end_time (datetime)

Denotes the Scheduled End Time.

scheduled_end_time (datetime)
Represents a date/time as a JSON Object. Would contain the value and the display_value attributes.

value : The time in long format (No. of milliseconds from Jan 1, 1970 ).

display_value : The time in a readable form in a format as personalized by the user. If not personalized, default format would be used.

sla_violation (boolean)read only

Denotes whether the SLA is violated or not.

sla_violation (boolean)
Boolean value which can have two possible values. The values are true and false.

emergency (boolean)read only

Denotes whether it’s an emergency change request or not.

emergency (boolean)
Boolean value which can have two possible values. The values are true and false.

change_type (change_type)

The type of the change request.

change_type (change_type)

change_requester (user)

The change requester.

change_requester (user)

group (support_group)

Denotes the group of the Change.

group (support_group)

item (item)

Denotes the Item to which the Change belongs.

item (item)

impact (impact)

Denotes the Impact of the Change.

impact (impact)

sla (change_sla)read only

Denotes the sla of the Change.

sla (change_sla)

attachments (attachment)

Denotes the attachments involved.

attachments (attachment)

roles (change_to_change_role)

Denotes the roles involved.

roles (change_to_change_role)

change_owner (technician)

The change owner.

change_owner (technician)

urgency (urgency)

Denotes the Urgency of the Change.

urgency (urgency)

retrospective (boolean)

Denotes if the change request is a retrospective one.

retrospective (boolean)
Boolean value which can have two possible values. The values are true and false.

site (site)

Denotes the SiteName to which the Change belongs.

site (site)

risk (risk)

Denotes the Risk involved.

risk (risk)

comment (string)

The status change comment.

comment (string)
A text in a plain format. No rich text or new line characters allowed.

Example

Sample Content

approval_status (sdp_approval_status)read only

The approval status of the change request.

approval_status (sdp_approval_status)

priority (priority)

Denotes the Priority of the Change.

priority (priority)

reason_for_change (reason_for_change)

Denotes the Reason for Change.

reason_for_change (reason_for_change)

subcategory (subcategory)

Denotes the Subcategory of the Change.

subcategory (subcategory)

downtimes (change_downtime)

Denotes the downtimes involved.

downtimes (change_downtime)

change_manager (technician)

The change manager.

change_manager (technician)

category (category)

Denotes the Catogory of the Change.

category (category)

uat_scheduled_start (datetime)

No Description

uat_scheduled_start (datetime)
Represents a date/time as a JSON Object. Would contain the value and the display_value attributes.

value : The time in long format (No. of milliseconds from Jan 1, 1970 ).

display_value : The time in a readable form in a format as personalized by the user. If not personalized, default format would be used.

uat_scheduled_end (datetime)

No Description

uat_scheduled_end (datetime)
Represents a date/time as a JSON Object. Would contain the value and the display_value attributes.

value : The time in long format (No. of milliseconds from Jan 1, 1970 ).

display_value : The time in a readable form in a format as personalized by the user. If not personalized, default format would be used.

uat_actual_start (datetime)

No Description

uat_actual_start (datetime)
Represents a date/time as a JSON Object. Would contain the value and the display_value attributes.

value : The time in long format (No. of milliseconds from Jan 1, 1970 ).

display_value : The time in a readable form in a format as personalized by the user. If not personalized, default format would be used.

uat_actual_end (datetime)

No Description

uat_actual_end (datetime)
Represents a date/time as a JSON Object. Would contain the value and the display_value attributes.

value : The time in long format (No. of milliseconds from Jan 1, 1970 ).

display_value : The time in a readable form in a format as personalized by the user. If not personalized, default format would be used.

release_actual_start (datetime)

No Description

release_actual_start (datetime)
Represents a date/time as a JSON Object. Would contain the value and the display_value attributes.

value : The time in long format (No. of milliseconds from Jan 1, 1970 ).

display_value : The time in a readable form in a format as personalized by the user. If not personalized, default format would be used.

release_actual_end (datetime)

No Description

release_actual_end (datetime)
Represents a date/time as a JSON Object. Would contain the value and the display_value attributes.

value : The time in long format (No. of milliseconds from Jan 1, 1970 ).

display_value : The time in a readable form in a format as personalized by the user. If not personalized, default format would be used.

release_scheduled_start (datetime)

No Description

release_scheduled_start (datetime)
Represents a date/time as a JSON Object. Would contain the value and the display_value attributes.

value : The time in long format (No. of milliseconds from Jan 1, 1970 ).

display_value : The time in a readable form in a format as personalized by the user. If not personalized, default format would be used.

release_scheduled_end (datetime)

No Description

release_scheduled_end (datetime)
Represents a date/time as a JSON Object. Would contain the value and the display_value attributes.

value : The time in long format (No. of milliseconds from Jan 1, 1970 ).

display_value : The time in a readable form in a format as personalized by the user. If not personalized, default format would be used.

Add Change

This operation helps you to add new change.

Mandatory Fields :- title

Url

<service domain|custom domain>/app/<portal>//api/v3/changes

Attributes

id (long)
Unique identifier of the change.

id (long)
Numerical digits which are considered to have larger values.

Example

234759602834500

title (string)
Denotes the Title / Subject of the Change Request.

title (string)
A text in a plain format. No rich text or new line characters allowed.

Example

Sample Content

template (change_template)
Denotes the Change Template Name.

template (change_template)

workflow (workflow)
Denotes the Change Workflow Name.

workflow (workflow)

status (change_status)
Denotes the Change Status (Requested for Information, Approval Pending, Planning In Progress etc.,).

status (change_status)

stage (change_stage)
Denotes the Change Stage (Submission, Planning, Implementation etc.,).

stage (change_stage)

More Attributes Expand all

scheduled_start_time (datetime)

Denotes the Scheduled Start Time.

scheduled_start_time (datetime)
Represents a date/time as a JSON Object. Would contain the value and the display_value attributes.

value : The time in long format (No. of milliseconds from Jan 1, 1970 ).

display_value : The time in a readable form in a format as personalized by the user. If not personalized, default format would be used.

scheduled_end_time (datetime)

Denotes the Scheduled End Time.

scheduled_end_time (datetime)
Represents a date/time as a JSON Object. Would contain the value and the display_value attributes.

value : The time in long format (No. of milliseconds from Jan 1, 1970 ).

display_value : The time in a readable form in a format as personalized by the user. If not personalized, default format would be used.

sla_violation (boolean)read only

Denotes whether the SLA is violated or not.

sla_violation (boolean)
Boolean value which can have two possible values. The values are true and false.

emergency (boolean)read only

Denotes whether it’s an emergency change request or not.

emergency (boolean)
Boolean value which can have two possible values. The values are true and false.

change_type (change_type)

The type of the change request.

change_type (change_type)

change_requester (user)

The change requester.

change_requester (user)

group (support_group)

Denotes the group of the Change.

group (support_group)

item (item)

Denotes the Item to which the Change belongs.

item (item)

impact (impact)

Denotes the Impact of the Change.

impact (impact)

sla (change_sla)read only

Denotes the sla of the Change.

sla (change_sla)

attachments (attachment)

Denotes the attachments involved.

attachments (attachment)

roles (change_to_change_role)

Denotes the roles involved.

roles (change_to_change_role)

change_owner (technician)

The change owner.

change_owner (technician)

urgency (urgency)

Denotes the Urgency of the Change.

urgency (urgency)

retrospective (boolean)

Denotes if the change request is a retrospective one.

retrospective (boolean)
Boolean value which can have two possible values. The values are true and false.

site (site)

Denotes the SiteName to which the Change belongs.

site (site)

completed_time (datetime)

The completed time of the change.

completed_time (datetime)
Represents a date/time as a JSON Object. Would contain the value and the display_value attributes.

value : The time in long format (No. of milliseconds from Jan 1, 1970 ).

display_value : The time in a readable form in a format as personalized by the user. If not personalized, default format would be used.

risk (risk)

Denotes the Risk involved.

risk (risk)

comment (string)

The status change comment.

comment (string)
A text in a plain format. No rich text or new line characters allowed.

Example

Sample Content

approval_status (sdp_approval_status)read only

The approval status of the change request.

approval_status (sdp_approval_status)

priority (priority)

Denotes the Priority of the Change.

priority (priority)

reason_for_change (reason_for_change)

Denotes the Reason for Change.

reason_for_change (reason_for_change)

subcategory (subcategory)

Denotes the Subcategory of the Change.

subcategory (subcategory)

downtimes (change_downtime)

Denotes the downtimes involved.

downtimes (change_downtime)

change_manager (technician)

The change manager.

change_manager (technician)

category (category)

Denotes the Catogory of the Change.

category (category)

uat_scheduled_start (datetime)

No Description

uat_scheduled_start (datetime)
Represents a date/time as a JSON Object. Would contain the value and the display_value attributes.

value : The time in long format (No. of milliseconds from Jan 1, 1970 ).

display_value : The time in a readable form in a format as personalized by the user. If not personalized, default format would be used.

uat_scheduled_end (datetime)

No Description

uat_scheduled_end (datetime)
Represents a date/time as a JSON Object. Would contain the value and the display_value attributes.

value : The time in long format (No. of milliseconds from Jan 1, 1970 ).

display_value : The time in a readable form in a format as personalized by the user. If not personalized, default format would be used.

uat_actual_start (datetime)

No Description

uat_actual_start (datetime)
Represents a date/time as a JSON Object. Would contain the value and the display_value attributes.

value : The time in long format (No. of milliseconds from Jan 1, 1970 ).

display_value : The time in a readable form in a format as personalized by the user. If not personalized, default format would be used.

uat_actual_end (datetime)

No Description

uat_actual_end (datetime)
Represents a date/time as a JSON Object. Would contain the value and the display_value attributes.

value : The time in long format (No. of milliseconds from Jan 1, 1970 ).

display_value : The time in a readable form in a format as personalized by the user. If not personalized, default format would be used.

release_actual_start (datetime)

No Description

release_actual_start (datetime)
Represents a date/time as a JSON Object. Would contain the value and the display_value attributes.

value : The time in long format (No. of milliseconds from Jan 1, 1970 ).

display_value : The time in a readable form in a format as personalized by the user. If not personalized, default format would be used.

release_actual_end (datetime)

No Description

release_actual_end (datetime)
Represents a date/time as a JSON Object. Would contain the value and the display_value attributes.

value : The time in long format (No. of milliseconds from Jan 1, 1970 ).

display_value : The time in a readable form in a format as personalized by the user. If not personalized, default format would be used.

release_scheduled_start (datetime)

No Description

release_scheduled_start (datetime)
Represents a date/time as a JSON Object. Would contain the value and the display_value attributes.

value : The time in long format (No. of milliseconds from Jan 1, 1970 ).

display_value : The time in a readable form in a format as personalized by the user. If not personalized, default format would be used.

release_scheduled_end (datetime)

No Description

release_scheduled_end (datetime)
Represents a date/time as a JSON Object. Would contain the value and the display_value attributes.

value : The time in long format (No. of milliseconds from Jan 1, 1970 ).

display_value : The time in a readable form in a format as personalized by the user. If not personalized, default format would be used.

$ curl <service domain|custom domain>/app/<portal>//api/v3/changes\
      -X POST\
      -H "Accept: application/vnd.manageengine.sdp.v3+json"\
      -H "Authorization: authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"\
      -H "Content-Type: application/x-www-form-urlencoded"\
      -d input_data='{
    "change": {
        "template": {
            "id": "1"
        },
        "next_review_on": {
            "value": "1671392007925"
        },
        "category": {
            "id": "3"
        },
        "services": [
            {
                "id": "1"
            }
        ],
        "subcategory": {
            "id": "8"
        },
        "item": {
            "id": "8"
        },
        "description": "description",
        "title": "WAN - Port - Reconfigure",
        "change_type": {
            "id": "2"
        },
        "change_manager": {
            "id": "4"
        },
        "change_owner": {
            "id": "4"
        },
        "priority": {
            "id": "4"
        },
        "scheduled_end_time": {
            "value": "1487874599999"
        },
        "impact": {
            "id": "3"
        },
        "urgency": {
            "id": "3"
        },
        "risk": {
            "id": "3"
        },
        "scheduled_start_time": {
            "value": "1487183400000"
        },
        "assets": [],
        "change_requester": {
            "id": "3"
        },
        "workflow": {
            "id": "1"
        },
        "reason_for_change": {
            "id": "2"
        },
        "roles": [
            {
                "role": {
                    "id": "8"
                },
                "user": {
                    "id": "5"
                }
            },
            {
                "role": {
                    "id": "8"
                },
                "user": {
                    "id": "7"
                }
            }
        ],
        "stage": {
            "id": "1"
        },
        "status": {
            "id": "3"
        }
    }
}'
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>//api/v3/changes";
headers = {"Accept":"application/vnd.manageengine.sdp.v3+json",
           "Content-Type": "application/x-www-form-urlencoded",
           "Authorization": "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"};
input_data = {
    "change": {
        "template": {
            "id": "1"
        },
        "next_review_on": {
            "value": "1671392007925"
        },
        "category": {
            "id": "3"
        },
        "services": [
            {
                "id": "1"
            }
        ],
        "subcategory": {
            "id": "8"
        },
        "item": {
            "id": "8"
        },
        "description": "description",
        "title": "WAN - Port - Reconfigure",
        "change_type": {
            "id": "2"
        },
        "change_manager": {
            "id": "4"
        },
        "change_owner": {
            "id": "4"
        },
        "priority": {
            "id": "4"
        },
        "scheduled_end_time": {
            "value": "1487874599999"
        },
        "impact": {
            "id": "3"
        },
        "urgency": {
            "id": "3"
        },
        "risk": {
            "id": "3"
        },
        "scheduled_start_time": {
            "value": "1487183400000"
        },
        "assets": [],
        "change_requester": {
            "id": "3"
        },
        "workflow": {
            "id": "1"
        },
        "reason_for_change": {
            "id": "2"
        },
        "roles": [
            {
                "role": {
                    "id": "8"
                },
                "user": {
                    "id": "5"
                }
            },
            {
                "role": {
                    "id": "8"
                },
                "user": {
                    "id": "7"
                }
            }
        ],
        "stage": {
            "id": "1"
        },
        "status": {
            "id": "3"
        }
    }
};
params = {"input_data": input_data};
response = invokeurl
[
    url: url
    type: POST
    parameters: params
    headers: headers
];
info response;
#Powershell version - 5.1
$url = "<service domain|custom domain>/app/<portal>//api/v3/changes"
$headers = @{ "Accept" = "application/vnd.manageengine.sdp.v3+json"
    "Authorization" = "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"
    "Content-Type" = "application/x-www-form-urlencoded"}
$input_data = @'
{
    "change": {
        "template": {
            "id": "1"
        },
        "next_review_on": {
            "value": "1671392007925"
        },
        "category": {
            "id": "3"
        },
        "services": [
            {
                "id": "1"
            }
        ],
        "subcategory": {
            "id": "8"
        },
        "item": {
            "id": "8"
        },
        "description": "description",
        "title": "WAN - Port - Reconfigure",
        "change_type": {
            "id": "2"
        },
        "change_manager": {
            "id": "4"
        },
        "change_owner": {
            "id": "4"
        },
        "priority": {
            "id": "4"
        },
        "scheduled_end_time": {
            "value": "1487874599999"
        },
        "impact": {
            "id": "3"
        },
        "urgency": {
            "id": "3"
        },
        "risk": {
            "id": "3"
        },
        "scheduled_start_time": {
            "value": "1487183400000"
        },
        "assets": [],
        "change_requester": {
            "id": "3"
        },
        "workflow": {
            "id": "1"
        },
        "reason_for_change": {
            "id": "2"
        },
        "roles": [
            {
                "role": {
                    "id": "8"
                },
                "user": {
                    "id": "5"
                }
            },
            {
                "role": {
                    "id": "8"
                },
                "user": {
                    "id": "7"
                }
            }
        ],
        "stage": {
            "id": "1"
        },
        "status": {
            "id": "3"
        }
    }
}
'@
$data = @{ 'input_data' = $input_data}
$response = Invoke-RestMethod -Uri $url -Method post -Body $data -Headers $headers
$response
#Python version - 3.10
from urllib.error import HTTPError
from urllib.parse import urlencode
from urllib.request import urlopen,Request

url = "<service domain|custom domain>/app/<portal>//api/v3/changes"
headers ={"Accept": "application/vnd.manageengine.sdp.v3+json", 
          "Authorization" : "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX", 
          "Content-Type" : "application/x-www-form-urlencoded"}
input_data = '''{
    "change": {
        "template": {
            "id": "1"
        },
        "next_review_on": {
            "value": "1671392007925"
        },
        "category": {
            "id": "3"
        },
        "services": [
            {
                "id": "1"
            }
        ],
        "subcategory": {
            "id": "8"
        },
        "item": {
            "id": "8"
        },
        "description": "description",
        "title": "WAN - Port - Reconfigure",
        "change_type": {
            "id": "2"
        },
        "change_manager": {
            "id": "4"
        },
        "change_owner": {
            "id": "4"
        },
        "priority": {
            "id": "4"
        },
        "scheduled_end_time": {
            "value": "1487874599999"
        },
        "impact": {
            "id": "3"
        },
        "urgency": {
            "id": "3"
        },
        "risk": {
            "id": "3"
        },
        "scheduled_start_time": {
            "value": "1487183400000"
        },
        "assets": [],
        "change_requester": {
            "id": "3"
        },
        "workflow": {
            "id": "1"
        },
        "reason_for_change": {
            "id": "2"
        },
        "roles": [
            {
                "role": {
                    "id": "8"
                },
                "user": {
                    "id": "5"
                }
            },
            {
                "role": {
                    "id": "8"
                },
                "user": {
                    "id": "7"
                }
            }
        ],
        "stage": {
            "id": "1"
        },
        "status": {
            "id": "3"
        }
    }
}'''
data = urlencode({"input_data":input_data}).encode()
httprequest = Request(url, headers=headers,data=data, method="POST")
try:
    with urlopen(httprequest) as response:
        print(response.read().decode())
except HTTPError as e:
    print(e.read().decode())
{
    "response_status": {
        "status_code": 2000,
        "status": "success"
    },
    "change": {
        "template": {
            "name": "General Template",
            "id": "1"
        },
        "short_description": "description",
        "attachments": [],
        "roll_out_plan": {
            "updated_on": null,
            "attachments": [],
            "stage": {
                "name": "Planning",
                "id": "2"
            },
            "name": "roll_out_plan",
            "updated_by": null,
            "description": null,
            "id": "902"
        },
        "closure_code": null,
        "sla_violation": null,
        "roles": [
            {
                "role": {
                    "name": "Implementer",
                    "id": "8"
                },
                "id": "1501",
                "user": {
                    "email_id": null,
                    "name": "Shawn Adams",
                    "is_vipuser": false,
                    "id": "5",
                    "department": null
                },
                "label_id": null
            },
            {
                "role": {
                    "name": "Implementer",
                    "id": "8"
                },
                "id": "1502",
                "user": {
                    "email_id": null,
                    "name": "John Roberts",
                    "is_vipuser": false,
                    "id": "7",
                    "department": null
                },
                "label_id": null
            }
        ],
        "description": "description",
        "emergency": false,
        "title": "WAN - Port - Reconfigure",
        "change_type": {
            "color": "#ff6666",
            "name": "Major",
            "id": "2"
        },
        "review_details": {
            "updated_on": null,
            "attachments": [],
            "stage": {
                "name": "Review",
                "id": "5"
            },
            "name": "review_details",
            "updated_by": null,
            "description": null,
            "id": "905"
        },
        "change_owner": {
            "email_id": null,
            "name": "administrator",
            "is_vipuser": false,
            "id": "4",
            "department": null
        },
        "next_review_on": {
            "display_value": "Dec 19, 2022 01:03 AM",
            "value": "1671392007925"
        },
        "assets": [],
        "urgency": {
            "name": "Normal",
            "id": "3"
        },
        "close_details": {
            "updated_on": null,
            "attachments": [],
            "stage": {
                "name": "Close",
                "id": "6"
            },
            "name": "close_details",
            "updated_by": null,
            "description": null,
            "id": "906"
        },
        "id": "17",
        "change_requester": {
            "email_id": null,
            "name": "Guest",
            "is_vipuser": false,
            "id": "3",
            "department": null
        },
        "group": null,
        "created_time": {
            "display_value": "Feb 29, 2020 11:20 AM",
            "value": "1582955435609"
        },
        "item": {
            "name": "Install",
            "id": "8"
        },
        "workflow": {
            "name": "SDGeneral",
            "id": "1",
            "is_emergency": false
        },
        "approval_status": {
            "name": "Pending Approval",
            "id": "1"
        },
        "change_manager": {
            "email_id": null,
            "name": "administrator",
            "is_vipuser": false,
            "id": "4",
            "department": null
        },
        "impact": {
            "name": "Low",
            "id": "3"
        },
        "retrospective": false,
        "checklist": {
            "updated_on": null,
            "attachments": [],
            "stage": {
                "name": "Planning",
                "id": "2"
            },
            "name": "checklist",
            "updated_by": null,
            "description": null,
            "id": "904"
        },
        "services": [
            {
                "name": "Application Login",
                "id": "1"
            }
        ],
        "priority": {
            "color": "#ff0000",
            "name": "High",
            "id": "4"
        },
        "scheduled_end_time": {
            "display_value": "Feb 23, 2017 11:59 PM",
            "value": "1487874599999"
        },
        "back_out_plan": {
            "updated_on": null,
            "attachments": [],
            "stage": {
                "name": "Planning",
                "id": "2"
            },
            "name": "back_out_plan",
            "updated_by": null,
            "description": null,
            "id": "901"
        },
        "stage": {
            "name": "Submission",
            "id": "1"
        },
        "reason_for_change": {
            "name": "Security compliance",
            "id": "2"
        },
        "completed_time": null,
        "risk": {
            "name": "High",
            "id": "3"
        },
        "impact_details": {
            "updated_on": null,
            "attachments": [],
            "stage": {
                "name": "Planning",
                "id": "2"
            },
            "name": "impact_details",
            "updated_by": null,
            "description": null,
            "id": "903"
        },
        "category": {
            "name": "Software",
            "id": "3"
        },
        "subcategory": {
            "name": "Adobe Reader",
            "id": "8"
        },
        "notes_present": false,
        "status": {
            "prominent": false,
            "stage": {
                "id": "1"
            },
            "action_name": null,
            "name": "Requested",
            "id": "3"
        },
        "scheduled_start_time": {
            "display_value": "Feb 16, 2017 12:00 AM",
            "value": "1487183400000"
        }
    }
}

Edit Change

This operation helps you to update the change by using the unique change_id.

Url

<service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}

Attributes

id (long)
Unique identifier of the change.

id (long)
Numerical digits which are considered to have larger values.

Example

234759602834500

title (string)
Denotes the Title / Subject of the Change Request.

title (string)
A text in a plain format. No rich text or new line characters allowed.

Example

Sample Content

template (change_template)
Denotes the Change Template Name.

template (change_template)

workflow (workflow)
Denotes the Change Workflow Name.

workflow (workflow)

status (change_status)
Denotes the Change Status (Requested for Information, Approval Pending, Planning In Progress etc.,).

status (change_status)

stage (change_stage)
Denotes the Change Stage (Submission, Planning, Implementation etc.,).

stage (change_stage)

More Attributes Expand all

scheduled_start_time (datetime)

Denotes the Scheduled Start Time.

scheduled_start_time (datetime)
Represents a date/time as a JSON Object. Would contain the value and the display_value attributes.

value : The time in long format (No. of milliseconds from Jan 1, 1970 ).

display_value : The time in a readable form in a format as personalized by the user. If not personalized, default format would be used.

scheduled_end_time (datetime)

Denotes the Scheduled End Time.

scheduled_end_time (datetime)
Represents a date/time as a JSON Object. Would contain the value and the display_value attributes.

value : The time in long format (No. of milliseconds from Jan 1, 1970 ).

display_value : The time in a readable form in a format as personalized by the user. If not personalized, default format would be used.

created_time (datetime)

No Description

created_time (datetime)
Represents a date/time as a JSON Object. Would contain the value and the display_value attributes.

value : The time in long format (No. of milliseconds from Jan 1, 1970 ).

display_value : The time in a readable form in a format as personalized by the user. If not personalized, default format would be used.

sla_violation (boolean)read only

Denotes whether the SLA is violated or not.

sla_violation (boolean)
Boolean value which can have two possible values. The values are true and false.

emergency (boolean)read only

Denotes whether it’s an emergency change request or not.

emergency (boolean)
Boolean value which can have two possible values. The values are true and false.

change_type (change_type)

The type of the change request.

change_type (change_type)

change_requester (user)

The change requester.

change_requester (user)

group (support_group)

Denotes the group of the Change.

group (support_group)

item (item)

Denotes the Item to which the Change belongs.

item (item)

impact (impact)

Denotes the Impact of the Change.

impact (impact)

sla (change_sla)read only

Denotes the sla of the Change.

sla (change_sla)

attachments (attachment)

Denotes the attachments involved.

attachments (attachment)

roles (change_to_change_role)

Denotes the roles involved.

roles (change_to_change_role)

change_owner (technician)

The change owner.

change_owner (technician)

urgency (urgency)

Denotes the Urgency of the Change.

urgency (urgency)

retrospective (boolean)

Denotes if the change request is a retrospective one.

retrospective (boolean)
Boolean value which can have two possible values. The values are true and false.

completed_time (datetime)

The completed time of the change.

completed_time (datetime)
Represents a date/time as a JSON Object. Would contain the value and the display_value attributes.

value : The time in long format (No. of milliseconds from Jan 1, 1970 ).

display_value : The time in a readable form in a format as personalized by the user. If not personalized, default format would be used.

risk (risk)

Denotes the Risk involved.

risk (risk)

comment (string)

The status change comment.

comment (string)
A text in a plain format. No rich text or new line characters allowed.

Example

Sample Content

approval_status (sdp_approval_status)read only

The approval status of the change request.

approval_status (sdp_approval_status)

priority (priority)

Denotes the Priority of the Change.

priority (priority)

reason_for_change (reason_for_change)

Denotes the Reason for Change.

reason_for_change (reason_for_change)

subcategory (subcategory)

Denotes the Subcategory of the Change.

subcategory (subcategory)

downtimes (change_downtime)

Denotes the downtimes involved.

downtimes (change_downtime)

change_manager (technician)

The change manager.

change_manager (technician)

category (category)

Denotes the Catogory of the Change.

category (category)

uat_scheduled_start (datetime)

No Description

uat_scheduled_start (datetime)
Represents a date/time as a JSON Object. Would contain the value and the display_value attributes.

value : The time in long format (No. of milliseconds from Jan 1, 1970 ).

display_value : The time in a readable form in a format as personalized by the user. If not personalized, default format would be used.

uat_scheduled_end (datetime)

No Description

uat_scheduled_end (datetime)
Represents a date/time as a JSON Object. Would contain the value and the display_value attributes.

value : The time in long format (No. of milliseconds from Jan 1, 1970 ).

display_value : The time in a readable form in a format as personalized by the user. If not personalized, default format would be used.

uat_actual_start (datetime)

No Description

uat_actual_start (datetime)
Represents a date/time as a JSON Object. Would contain the value and the display_value attributes.

value : The time in long format (No. of milliseconds from Jan 1, 1970 ).

display_value : The time in a readable form in a format as personalized by the user. If not personalized, default format would be used.

uat_actual_end (datetime)

No Description

uat_actual_end (datetime)
Represents a date/time as a JSON Object. Would contain the value and the display_value attributes.

value : The time in long format (No. of milliseconds from Jan 1, 1970 ).

display_value : The time in a readable form in a format as personalized by the user. If not personalized, default format would be used.

release_actual_start (datetime)

No Description

release_actual_start (datetime)
Represents a date/time as a JSON Object. Would contain the value and the display_value attributes.

value : The time in long format (No. of milliseconds from Jan 1, 1970 ).

display_value : The time in a readable form in a format as personalized by the user. If not personalized, default format would be used.

release_actual_end (datetime)

No Description

release_actual_end (datetime)
Represents a date/time as a JSON Object. Would contain the value and the display_value attributes.

value : The time in long format (No. of milliseconds from Jan 1, 1970 ).

display_value : The time in a readable form in a format as personalized by the user. If not personalized, default format would be used.

release_scheduled_start (datetime)

No Description

release_scheduled_start (datetime)
Represents a date/time as a JSON Object. Would contain the value and the display_value attributes.

value : The time in long format (No. of milliseconds from Jan 1, 1970 ).

display_value : The time in a readable form in a format as personalized by the user. If not personalized, default format would be used.

release_scheduled_end (datetime)

No Description

release_scheduled_end (datetime)
Represents a date/time as a JSON Object. Would contain the value and the display_value attributes.

value : The time in long format (No. of milliseconds from Jan 1, 1970 ).

display_value : The time in a readable form in a format as personalized by the user. If not personalized, default format would be used.

$ curl <service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}\
      -X PUT\ 
      -H "Accept: application/vnd.manageengine.sdp.v3+json"\
      -H "Authorization: authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"\
      -H "Content-Type: application/x-www-form-urlencoded"\
      -d input_data='{
    "change": {
        "title": "WAN - Port - Reconfigure",
        "roles": [
            {
                "role": {
                    "id": "8"
                },
                "user": {
                    "id": "5"
                },
                "id": "3304"
            },
            {
                "id": "3305",
                "role": {
                    "id": "7"
                },
                "group": {
                    "id": "1"
                }
            },
            {
                "role": {
                    "id": "8"
                },
                "user": {
                    "id": "4"
                }
            }
        ],
        "change_requester": {
            "id": "4"
        },
        "change_manager": {
            "id": "4"
        },
        "back_out_plan": {
            "description": "test",
            "id": "301"
        },
        "roll_out_plan": {
            "description": "test",
            "id": "302"
        },
        "impact_details": {
            "description": "test",
            "id": "303"
        },
        "checklist": {
            "description": "test",
            "id": "304"
        },
        "review_details": {
            "description": "test",
            "id": "305"
        },
        "close_details": {
            "description": "test",
            "id": "306"
        }
    }
}'
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}";
headers = {"Accept":"application/vnd.manageengine.sdp.v3+json",
           "Content-Type": "application/x-www-form-urlencoded",
           "Authorization": "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"};
input_data = {
    "change": {
        "title": "WAN - Port - Reconfigure",
        "roles": [
            {
                "role": {
                    "id": "8"
                },
                "user": {
                    "id": "5"
                },
                "id": "3304"
            },
            {
                "id": "3305",
                "role": {
                    "id": "7"
                },
                "group": {
                    "id": "1"
                }
            },
            {
                "role": {
                    "id": "8"
                },
                "user": {
                    "id": "4"
                }
            }
        ],
        "change_requester": {
            "id": "4"
        },
        "change_manager": {
            "id": "4"
        },
        "back_out_plan": {
            "description": "test",
            "id": "301"
        },
        "roll_out_plan": {
            "description": "test",
            "id": "302"
        },
        "impact_details": {
            "description": "test",
            "id": "303"
        },
        "checklist": {
            "description": "test",
            "id": "304"
        },
        "review_details": {
            "description": "test",
            "id": "305"
        },
        "close_details": {
            "description": "test",
            "id": "306"
        }
    }
};
params = {"input_data": input_data};
response = invokeurl
[
    url: url
    type: PUT
    parameters: params
    headers: headers
];
info response;
#Powershell version - 5.1
$url = "<service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}"
$headers = @{"Accept": "application/vnd.manageengine.sdp.v3+json", 
          "Authorization" : "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX", 
          "Content-Type" : "application/x-www-form-urlencoded"}
$input_data = @'
{
    "change": {
        "title": "WAN - Port - Reconfigure",
        "roles": [
            {
                "role": {
                    "id": "8"
                },
                "user": {
                    "id": "5"
                },
                "id": "3304"
            },
            {
                "id": "3305",
                "role": {
                    "id": "7"
                },
                "group": {
                    "id": "1"
                }
            },
            {
                "role": {
                    "id": "8"
                },
                "user": {
                    "id": "4"
                }
            }
        ],
        "change_requester": {
            "id": "4"
        },
        "change_manager": {
            "id": "4"
        },
        "back_out_plan": {
            "description": "test",
            "id": "301"
        },
        "roll_out_plan": {
            "description": "test",
            "id": "302"
        },
        "impact_details": {
            "description": "test",
            "id": "303"
        },
        "checklist": {
            "description": "test",
            "id": "304"
        },
        "review_details": {
            "description": "test",
            "id": "305"
        },
        "close_details": {
            "description": "test",
            "id": "306"
        }
    }
}
'@
$data = @{ 'input_data' = $input_data}
$response = Invoke-RestMethod -Uri $url -Method put -Body $data -Headers $headers
$response
#Python version - 3.10
from urllib.error import HTTPError
from urllib.parse import urlencode
from urllib.request import urlopen,Request

url = "<service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}"
headers ={"Accept": "application/vnd.manageengine.sdp.v3+json", 
          "Authorization" : "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX", 
          "Content-Type" : "application/x-www-form-urlencoded"}
input_data = '''{
    "change": {
        "title": "WAN - Port - Reconfigure",
        "roles": [
            {
                "role": {
                    "id": "8"
                },
                "user": {
                    "id": "5"
                },
                "id": "3304"
            },
            {
                "id": "3305",
                "role": {
                    "id": "7"
                },
                "group": {
                    "id": "1"
                }
            },
            {
                "role": {
                    "id": "8"
                },
                "user": {
                    "id": "4"
                }
            }
        ],
        "change_requester": {
            "id": "4"
        },
        "change_manager": {
            "id": "4"
        },
        "back_out_plan": {
            "description": "test",
            "id": "301"
        },
        "roll_out_plan": {
            "description": "test",
            "id": "302"
        },
        "impact_details": {
            "description": "test",
            "id": "303"
        },
        "checklist": {
            "description": "test",
            "id": "304"
        },
        "review_details": {
            "description": "test",
            "id": "305"
        },
        "close_details": {
            "description": "test",
            "id": "306"
        }
    }
}'''
data = urlencode({"input_data":input_data}).encode()
httprequest = Request(url, headers=headers,data=data, method="PUT")
try:
    with urlopen(httprequest) as response:
        print(response.read().decode())
except HTTPError as e:
    print(e.read().decode())
{
    "response_status": {
        "status_code": 2000,
        "status": "success"
    },
    "change": {
        "template": {
            "id": "1"
        },
        "short_description": null,
        "attachments": [],
        "sla_violation": null,
        "description": null,
        "emergency": false,
        "title": "WAN - Port - Reconfigure",
        "change_type": null,
        "change_owner": null,
        "next_review_on": null,
        "assets": [],
        "urgency": null,
        "id": "23",
        "change_requester": {
            "email_id": null,
            "is_vipuser": false,
            "id": "4",
            "department": null
        },
        "group": null,
        "created_time": {
            "display_value": "Oct 17, 2019 08:09 PM",
            "value": "1571323157629"
        },
        "item": null,
        "workflow": {
            "id": "1",
            "is_emergency": false
        },
        "approval_status": {
            "name": "Pending Approval",
            "id": "1"
        },
        "change_manager": {
            "email_id": null,
            "is_vipuser": false,
            "id": "4",
            "department": null
        },
        "impact": null,
        "services": [],
        "priority": null,
        "roles": [
            {
                "role": {
                    "id": "8"
                },
                "id": "3304",
                "user": {
                    "email_id": null,
                    "name": "Shawn Adams",
                    "is_vipuser": false,
                    "id": "5",
                    "department": null
                },
                "label_id": null
            },
            {
                "role": {
                    "id": "8"
                },
                "id": "3305",
                "user": {
                    "email_id": null,
                    "name": "John Roberts",
                    "is_vipuser": false,
                    "id": "7",
                    "department": null
                },
                "label_id": null
            },
            {
                "role": {
                    "id": "8"
                },
                "id": "3307",
                "user": {
                    "email_id": null,
                    "is_vipuser": false,
                    "id": "4",
                    "department": null
                },
                "label_id": null
            }
        ],
        "retrospective": false,
        "scheduled_end_time": null,
        "site": null,
        "stage": {
            "id": "1"
        },
        "reason_for_change": null,
        "completed_time": null,
        "udf_fields": {
            "udf_sline_301": null,
            "udf_sline_302": null
        },
        "risk": null,
        "impact_details": null,
        "category": null,
        "subcategory": null,
        "status": {
            "stage": {
                "id": "1"
            },
            "prominent": false,
            "action_name": null,
            "id": "3"
        },
        "roll_out_plan": {
            "updated_on": {
                "display_value": "Feb 28, 2020 05:51 PM",
                "value": "1582892483833"
            },
            "stage": {
                "name": "Planning",
                "id": "2"
            },
            "attachments": [],
            "updated_by": {
                "email_id": null,
                "name": "administrator",
                "is_vipuser": false,
                "id": "4",
                "department": null
            },
            "review_details": {
                "name": "review_details",
                "updated_on": {
                    "display_value": "Feb 28, 2020 05:51 PM",
                    "value": "1582892483865"
                },
                "stage": {
                    "name": "Review",
                    "id": "5"
                },
                "attachments": [],
                "updated_by": {
                    "email_id": null,
                    "name": "administrator",
                    "is_vipuser": false,
                    "id": "4",
                    "department": null
                },
                "description": "test",
                "id": "305"
            },
            "close_details": {
                "name": "close_details",
                "updated_on": {
                    "display_value": "Feb 28, 2020 05:51 PM",
                    "value": "1582892483883"
                },
                "stage": {
                    "name": "Close",
                    "id": "6"
                },
                "attachments": [],
                "updated_by": {
                    "email_id": null,
                    "name": "administrator",
                    "is_vipuser": false,
                    "id": "4",
                    "department": null
                },
                "description": "test",
                "id": "306"
            },
            "checklist": {
                "name": "checklist",
                "updated_on": {
                    "display_value": "Feb 28, 2020 05:51 PM",
                    "value": "1582892483853"
                },
                "stage": {
                    "name": "Planning",
                    "id": "2"
                },
                "attachments": [],
                "updated_by": {
                    "email_id": null,
                    "name": "administrator",
                    "is_vipuser": false,
                    "id": "4",
                    "department": null
                },
                "description": "test",
                "id": "304"
            },
            "back_out_plan": {
                "name": "back_out_plan",
                "updated_on": {
                    "display_value": "Feb 28, 2020 05:51 PM",
                    "value": "1582892483822"
                },
                "stage": {
                    "name": "Planning",
                    "id": "2"
                },
                "attachments": [],
                "updated_by": {
                    "email_id": null,
                    "name": "administrator",
                    "is_vipuser": false,
                    "id": "4",
                    "department": null
                },
                "description": "test",
                "id": "301"
            },
            "impact_details": {
                "name": "impact_details",
                "updated_on": {
                    "display_value": "Feb 28, 2020 05:51 PM",
                    "value": "1582892483843"
                },
                "stage": {
                    "name": "Planning",
                    "id": "2"
                },
                "attachments": [],
                "updated_by": {
                    "email_id": null,
                    "name": "administrator",
                    "is_vipuser": false,
                    "id": "4",
                    "department": null
                },
                "description": "test",
                "id": "303"
            },
            "description": "test",
            "id": "302"
        },
        "scheduled_start_time": null
    }
}

Get Change

This operation helps you to view the change details by the unique change id.

Url

<service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}

Attributes

description (html)
No Description

description (html)
HTML is a text area where html elements can be used.

Example

<b>The content to be displayed</b>

services (service_category)
No Description

services (service_category)

assets (asset_asset)
No Description

assets (asset_asset)

udf_fields (udf_fields)
No Description

udf_fields (udf_fields)

back_out_plan (change_descriptive_field)
No Description

back_out_plan (change_descriptive_field)

roll_out_plan (change_descriptive_field)
No Description

roll_out_plan (change_descriptive_field)

More Attributes Expand all

impact_details (change_descriptive_field)

No Description

impact_details (change_descriptive_field)

checklist (change_descriptive_field)

No Description

checklist (change_descriptive_field)

review_details (change_descriptive_field)

No Description

review_details (change_descriptive_field)

close_details (change_descriptive_field)

No Description

close_details (change_descriptive_field)

$ curl -G <service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}\
      -X GET\
      -H "Accept: application/vnd.manageengine.sdp.v3+json"\
      -H "Authorization: authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"\
      -H "Content-Type: application/x-www-form-urlencoded"
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}";
headers = {"Accept":"application/vnd.manageengine.sdp.v3+json",
           "Content-Type": "application/x-www-form-urlencoded",
           "Authorization": "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"};          
response = invokeurl
[
    url: url
    type: GET
    headers: headers
];
info response;
#Powershell version - 5.1
$url = "<service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}"
$headers = @{ "Accept" = "application/vnd.manageengine.sdp.v3+json"
    "Authorization" = "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"
    "Content-Type" = "application/x-www-form-urlencoded"}  
$response = Invoke-RestMethod -Uri $url -Method get -Headers $headers 
$response
#Python version - 3.8
#This script requires requests module installed in python.
from urllib.error import HTTPError
from urllib.parse import urlencode
from urllib.request import urlopen,Request

url = "<service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}"
headers ={"Accept": "application/vnd.manageengine.sdp.v3+json", 
          "Authorization" : "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX", 
          "Content-Type" : "application/x-www-form-urlencoded"}
httprequest = Request(url, headers=headers)
try:
    with urlopen(httprequest) as response:
        print(response.read().decode())
except HTTPError as e:
    print(e.read().decode())
{
    "response_status": {
        "status_code": 2000,
        "status": "success"
    },
    "change": {
        "template": {
            "id": "1"
        },
        "short_description": "Operating System migration",
        "sla_violation": null,
        "roles": [
            {
                "role": {
                    "id": "8"
                },
                "id": "1",
                "user": {
                    "email_id": null,
                    "name": "Shawn Adams",
                    "is_vipuser": false,
                    "id": "5"
                },
                "label_id": null
            },
            {
                "role": {
                    "id": "8"
                },
                "id": "2",
                "user": {
                    "email_id": null,
                    "name": "John Roberts",
                    "is_vipuser": false,
                    "id": "7"
                },
                "label_id": null
            }
        ],
        "description": "Operating System migration",
        "emergency": false,
        "downtimes": [],
        "title": "Operating System migration",
        "change_type": null,
        "change_owner": {
            "email_id": null,
            "name": "Howard Stern",
            "is_vipuser": false,
            "id": "8"
        },
        "assets": [],
        "urgency": {
            "id": "3"
        },
        "id": "1",
        "change_requester": null,
        "group": null,
        "created_time": {
            "display_value": "Jul 24, 2019 04:33 PM",
            "value": "1563966199596"
        },
        "item": null,
        "workflow": {
            "id": "1",
            "is_emergency": false
        },
        "approval_status": {
            "name": "Pending Approval",
            "id": "1"
        },
        "change_manager": {
            "email_id": null,
            "is_vipuser": false,
            "id": "4"
        },
        "impact": {
            "id": "2"
        },
        "services": [],
        "priority": {
            "color": "#ff0000",
            "id": "4"
        },
        "retrospective": false,
        "scheduled_end_time": {
            "display_value": "Jul 25, 2019 04:32 PM",
            "value": "1564052520000"
        },
        "site": null,
        "stage": {
            "id": "1"
        },
        "reason_for_change": null,
        "completed_time": null,
        "risk": {
            "id": "3"
        },
        "category": {
            "name": "Operating System",
            "id": "11"
        },
        "subcategory": {
            "name": "Mac OS X",
            "id": "24"
        },
        "status": {
            "stage": {
                "id": "1"
            },
            "prominent": false,
            "action_name": null,
            "id": "3"
        },
        "roll_out_plan": {
            "updated_on": {
                "display_value": "Feb 28, 2020 05:51 PM",
                "value": "1582892483833"
            },
            "stage": {
                "name": "Planning",
                "id": "2"
            },
            "attachments": [],
            "updated_by": {
                "email_id": null,
                "name": "administrator",
                "is_vipuser": false,
                "id": "4",
                "department": null
            },
            "review_details": {
                "name": "review_details",
                "updated_on": {
                    "display_value": "Feb 28, 2020 05:51 PM",
                    "value": "1582892483865"
                },
                "stage": {
                    "name": "Review",
                    "id": "5"
                },
                "attachments": [],
                "updated_by": {
                    "email_id": null,
                    "name": "administrator",
                    "is_vipuser": false,
                    "id": "4",
                    "department": null
                },
                "description": "test",
                "id": "305"
            },
            "close_details": {
                "name": "close_details",
                "updated_on": {
                    "display_value": "Feb 28, 2020 05:51 PM",
                    "value": "1582892483883"
                },
                "stage": {
                    "name": "Close",
                    "id": "6"
                },
                "attachments": [],
                "updated_by": {
                    "email_id": null,
                    "name": "administrator",
                    "is_vipuser": false,
                    "id": "4",
                    "department": null
                },
                "description": "test",
                "id": "306"
            },
            "checklist": {
                "name": "checklist",
                "updated_on": {
                    "display_value": "Feb 28, 2020 05:51 PM",
                    "value": "1582892483853"
                },
                "stage": {
                    "name": "Planning",
                    "id": "2"
                },
                "attachments": [],
                "updated_by": {
                    "email_id": null,
                    "name": "administrator",
                    "is_vipuser": false,
                    "id": "4",
                    "department": null
                },
                "description": "test",
                "id": "304"
            },
            "back_out_plan": {
                "name": "back_out_plan",
                "updated_on": {
                    "display_value": "Feb 28, 2020 05:51 PM",
                    "value": "1582892483822"
                },
                "stage": {
                    "name": "Planning",
                    "id": "2"
                },
                "attachments": [],
                "updated_by": {
                    "email_id": null,
                    "name": "administrator",
                    "is_vipuser": false,
                    "id": "4",
                    "department": null
                },
                "description": "test",
                "id": "301"
            },
            "impact_details": {
                "name": "impact_details",
                "updated_on": {
                    "display_value": "Feb 28, 2020 05:51 PM",
                    "value": "1582892483843"
                },
                "stage": {
                    "name": "Planning",
                    "id": "2"
                },
                "attachments": [],
                "updated_by": {
                    "email_id": null,
                    "name": "administrator",
                    "is_vipuser": false,
                    "id": "4",
                    "department": null
                },
                "description": "test",
                "id": "303"
            },
            "description": "test",
            "id": "302"
        },
        "scheduled_start_time": {
            "display_value": "Jul 24, 2019 04:32 PM",
            "value": "1563966120000"
        }
    }
}

Get List Change

This operation lets you to view the details of all the changes.

Url

<service domain|custom domain>/app/<portal>//api/v3/changes

Attributes

$ curl -G <service domain|custom domain>/app/<portal>//api/v3/changes\
      -X GET\ 
      -H "Accept: application/vnd.manageengine.sdp.v3+json"\
      -H "Authorization: authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"\
      -H "Content-Type: application/x-www-form-urlencoded"\
      --data-urlencode input_data='{
    "list_info": {
        "row_count": 10,
        "start_index": 1,
        "get_total_count": true,
        "sort_fields": [
            {
                "field": "id",
                "order": "asc"
            }
        ]
    }
}'
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>//api/v3/changes";
headers = {"Accept":"application/vnd.manageengine.sdp.v3+json",
           "Content-Type": "application/x-www-form-urlencoded",
           "Authorization": "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"};
input_data = {
    "list_info": {
        "row_count": 10,
        "start_index": 1,
        "get_total_count": true,
        "sort_fields": [
            {
                "field": "id",
                "order": "asc"
            }
        ]
    }
};
params = {"input_data":input_data};           
response = invokeurl
[
    url: url
    type: GET
    parameters:params
    headers: headers
];
info response;

#Powershell version - 5.1
$url = "<service domain|custom domain>/app/<portal>//api/v3/changes"
$headers = @{ "Accept" = "application/vnd.manageengine.sdp.v3+json"
    "Authorization" = "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"
    "Content-Type" = "application/x-www-form-urlencoded"}
$input_data = @'{
    "list_info": {
        "row_count": 10,
        "start_index": 1,
        "get_total_count": true,
        "sort_fields": [
            {
                "field": "id",
                "order": "asc"
            }
        ]
    }
}'@
$data = @{ 'input_data' = $input_data}    
$response = Invoke-RestMethod -Uri $url -Method get -Body $data -Headers $headers 
$response

#Python version - 3.8
#This script requires requests module installed in python.
from urllib.error import HTTPError
from urllib.parse import urlencode
from urllib.request import urlopen,Request

url = "<service domain|custom domain>/app/<portal>//api/v3/changes"
headers ={"Accept": "application/vnd.manageengine.sdp.v3+json", 
          "Authorization" : "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX", 
          "Content-Type" : "application/x-www-form-urlencoded"}
input_data = '''{
    "list_info": {
        "row_count": 10,
        "start_index": 1,
        "get_total_count": true,
        "sort_fields": [
            {
                "field": "id",
                "order": "asc"
            }
        ]
    }
}'''       
url += "?" + urlencode({"input_data":input_data})
httprequest = Request(url, headers=headers)
try:
    with urlopen(httprequest) as response:
        print(response.read().decode())
except HTTPError as e:
    print(e.read().decode())

{
    "response_status": [
        {
            "status_code": 2000,
            "status": "success"
        }
    ],
    "changes": [
        {
            "template": {
                "id": "1"
            },
            "sla_violation": null,
            "emergency": false,
            "title": "Operating System migration",
            "change_type": null,
            "change_owner": {
                "email_id": null,
                "name": "Howard Stern",
                "is_vipuser": false,
                "id": "8"
            },
            "urgency": {
                "id": "3"
            },
            "id": "3",
            "change_requester": null,
            "group": null,
            "created_time": {
                "display_value": "Jul 24, 2019 04:33 PM",
                "value": "1563966199596"
            },
            "item": null,
            "workflow": {
                "id": "1",
                "is_emergency": false
            },
            "approval_status": {
                "name": "Pending Approval",
                "id": "1"
            },
            "change_manager": {
                "email_id": null,
                "is_vipuser": false,
                "id": "4"
            },
            "impact": {
                "id": "2"
            },
            "priority": {
                "color": "#ff0000",
                "id": "4"
            },
            "retrospective": false,
            "scheduled_end_time": {
                "display_value": "Jul 25, 2019 04:32 PM",
                "value": "1564052520000"
            },
            "site": null,
            "stage": {
                "id": "1"
            },
            "reason_for_change": null,
            "completed_time": null,
            "risk": {
                "id": "3"
            },
            "category": {
                "name": "Operating System",
                "id": "11"
            },
            "subcategory": {
                "name": "Mac OS X",
                "id": "24"
            },
            "status": {
                "stage": {
                    "id": "1"
                },
                "prominent": false,
                "action_name": null,
                "id": "3"
            },
            "scheduled_start_time": {
                "display_value": "Jul 24, 2019 04:32 PM",
                "value": "1563966120000"
            }
        },
        {
            "template": {
                "id": "1"
            },
            "sla_violation": null,
            "emergency": false,
            "title": "WAN - Port - Reconfigure",
            "change_type": null,
            "change_owner": null,
            "urgency": null,
            "id": "4",
            "change_requester": null,
            "group": null,
            "created_time": {
                "display_value": "Jul 24, 2019 04:36 PM",
                "value": "1563966369821"
            },
            "item": null,
            "workflow": {
                "id": "1",
                "is_emergency": false
            },
            "approval_status": {
                "name": "Pending Approval",
                "id": "1"
            },
            "change_manager": null,
            "impact": null,
            "priority": null,
            "retrospective": false,
            "scheduled_end_time": null,
            "site": null,
            "stage": {
                "id": "1"
            },
            "reason_for_change": null,
            "completed_time": null,
            "risk": null,
            "category": null,
            "subcategory": null,
            "status": {
                "stage": {
                    "id": "1"
                },
                "prominent": false,
                "action_name": null,
                "id": "3"
            },
            "scheduled_start_time": null
        }
    ],
    "list_info": {
        "has_more_rows": false,
        "start_index": 1,
        "row_count": 2
    }
}

Delete Change

This operation lets you delete change.

Url

<service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}

$ curl <service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}\
      -X DELETE\ 
      -H "Accept: application/vnd.manageengine.sdp.v3+json"\
      -H "Authorization: authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"\
      -H "Content-Type: application/x-www-form-urlencoded"
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}";
headers = {"Accept":"application/vnd.manageengine.sdp.v3+json",
           "Content-Type": "application/x-www-form-urlencoded",
           "Authorization": "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"};
response = invokeurl
[
    url: url
    type: DELETE
    headers: headers
];
info response;
#Powershell version - 5.1
$url = "<service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}"
$headers = @{ "Accept" = "application/vnd.manageengine.sdp.v3+json"
    "Authorization" = "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"
    "Content-Type" = "application/x-www-form-urlencoded"}
$response = Invoke-RestMethod -Uri $url -Method delete -Headers $headers
$response
#Python version - 3.10
from urllib.error import HTTPError
from urllib.request import urlopen,Request

url = "<service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}"
headers ={"Accept": "application/vnd.manageengine.sdp.v3+json", 
          "Authorization" : "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX", 
          "Content-Type" : "application/x-www-form-urlencoded"}
httprequest = Request(url, headers=headers,method="DELETE")
try:
    with urlopen(httprequest) as response:
        print(response.read().decode())
except HTTPError as e:
    print(e.read().decode())
{
  "response_status": {
    "status_code": 2000,
    "status": "success"
  }
}

Trash A Change

This operation lets you trash the change.

Url

<service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}/move_to_trash

$ curl <service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}/move_to_trash\
      -X DELETE\ 
      -H "Accept: application/vnd.manageengine.sdp.v3+json"\
      -H "Authorization: authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"\
      -H "Content-Type: application/x-www-form-urlencoded"
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}/move_to_trash";
headers = {"Accept":"application/vnd.manageengine.sdp.v3+json",
           "Content-Type": "application/x-www-form-urlencoded",
           "Authorization": "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"};
response = invokeurl
[
    url: url
    type: DELETE
    headers: headers
];
info response;
#Powershell version - 5.1
$url = "<service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}/move_to_trash"
$headers = @{ "Accept" = "application/vnd.manageengine.sdp.v3+json"
    "Authorization" = "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"
    "Content-Type" = "application/x-www-form-urlencoded"}
$response = Invoke-RestMethod -Uri $url -Method delete -Headers $headers
$response
#Python version - 3.10
from urllib.error import HTTPError
from urllib.request import urlopen,Request

url = "<service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}/move_to_trash"
headers ={"Accept": "application/vnd.manageengine.sdp.v3+json", 
          "Authorization" : "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX", 
          "Content-Type" : "application/x-www-form-urlencoded"}
httprequest = Request(url, headers=headers,method="DELETE")
try:
    with urlopen(httprequest) as response:
        print(response.read().decode())
except HTTPError as e:
    print(e.read().decode())
{
  "response_status": {
    "status_code": 2000,
    "status": "success"
  }
}

Restore A Change

This operation lets you restore a change from trash.

Url

<service domain|custom domain>/app/<portal>//api/v3/changes/{changeid}/restore_from_trash

$ curl <service domain|custom domain>/app/<portal>//api/v3/changes/{changeid}/restore_from_trash\
      -X PUT\ 
      -H "Accept: application/vnd.manageengine.sdp.v3+json"\
      -H "Authorization: authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"\
      -H "Content-Type: application/x-www-form-urlencoded"\
      -d input_data=''
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>//api/v3/changes/{changeid}/restore_from_trash";
headers = {"Accept":"application/vnd.manageengine.sdp.v3+json",
           "Content-Type": "application/x-www-form-urlencoded",
           "Authorization": "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"};
input_data = ;
params = {"input_data": input_data};
response = invokeurl
[
    url: url
    type: PUT
    parameters: params
    headers: headers
];
info response;
#Powershell version - 5.1
$url = "<service domain|custom domain>/app/<portal>//api/v3/changes/{changeid}/restore_from_trash"
$headers = @{ "Accept" = "application/vnd.manageengine.sdp.v3+json"
    "Authorization" = "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"
    "Content-Type" = "application/x-www-form-urlencoded"}
$input_data = @'

'@
$data = @{ 'input_data' = $input_data}
$response = Invoke-RestMethod -Uri $url -Method put -Body $data -Headers $headers
$response
#Python version - 3.10
from urllib.error import HTTPError
from urllib.parse import urlencode
from urllib.request import urlopen,Request

url = "<service domain|custom domain>/app/<portal>//api/v3/changes/{changeid}/restore_from_trash"
headers ={"Accept": "application/vnd.manageengine.sdp.v3+json", 
          "Authorization" : "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX", 
          "Content-Type" : "application/x-www-form-urlencoded"}
input_data = ''''''
data = urlencode({"input_data":input_data}).encode()
httprequest = Request(url, headers=headers,data=data, method="PUT")
try:
    with urlopen(httprequest) as response:
        print(response.read().decode())
except HTTPError as e:
    print(e.read().decode())
{
    "response_status": {
        "status_code": 2000,
        "status": "success"
    },
    "change": {
        "template": {
            "name": "General Template",
            "id": "1"
        },
        "short_description": null,
        "attachments": [],
        "roll_out_plan": {
            "updated_on": null,
            "internal_name": "roll_out_plan",
            "attachments": [],
            "stage": {
                "internal_name": "Planning",
                "stage_index": "2",
                "name": "Planning",
                "id": "2"
            },
            "change": {
                "id": "3"
            },
            "name": "roll_out_plan",
            "updated_by": null,
            "description": null,
            "id": "13"
        },
        "closure_code": null,
        "sla_violation": null,
        "roles": [],
        "description": null,
        "emergency": false,
        "change_type": null,
        "title": "xsc x",
        "review_details": {
            "updated_on": null,
            "internal_name": "review_details",
            "attachments": [],
            "stage": {
                "internal_name": "Review",
                "stage_index": "5",
                "name": "Review",
                "id": "5"
            },
            "change": {
                "id": "3"
            },
            "name": "review_details",
            "updated_by": null,
            "description": null,
            "id": "17"
        },
        "change_owner": null,
        "next_review_on": null,
        "assets": [],
        "urgency": null,
        "close_details": {
            "updated_on": null,
            "internal_name": "close_details",
            "attachments": [],
            "stage": {
                "internal_name": "Close",
                "stage_index": "6",
                "name": "Close",
                "id": "6"
            },
            "change": {
                "id": "3"
            },
            "name": "close_details",
            "updated_by": null,
            "description": null,
            "id": "18"
        },
        "id": "3",
        "change_requester": null,
        "group": null,
        "created_time": {
            "display_value": "Dec 28, 2022 03:44 PM",
            "value": "1672222459029"
        },
        "item": null,
        "workflow": {
            "validated": true,
            "name": "SDGeneral",
            "id": "1",
            "type": "General"
        },
        "approval_status": {
            "name": "Pending Approval",
            "id": "1"
        },
        "change_manager": null,
        "impact": null,
        "retrospective": false,
        "sla": null,
        "checklist": {
            "updated_on": null,
            "internal_name": "checklist",
            "attachments": [],
            "stage": {
                "internal_name": "Planning",
                "stage_index": "2",
                "name": "Planning",
                "id": "2"
            },
            "change": {
                "id": "3"
            },
            "name": "checklist",
            "updated_by": null,
            "description": null,
            "id": "15"
        },
        "services": [],
        "priority": null,
        "scheduled_end_time": null,
        "back_out_plan": {
            "updated_on": null,
            "internal_name": "back_out_plan",
            "attachments": [],
            "stage": {
                "internal_name": "Planning",
                "stage_index": "2",
                "name": "Planning",
                "id": "2"
            },
            "change": {
                "id": "3"
            },
            "name": "back_out_plan",
            "updated_by": null,
            "description": null,
            "id": "16"
        },
        "stage": {
            "internal_name": "Submission",
            "stage_index": "1",
            "name": "Submission",
            "id": "1"
        },
        "reason_for_change": null,
        "completed_time": null,
        "risk": null,
        "impact_details": {
            "updated_on": null,
            "internal_name": "impact_details",
            "attachments": [],
            "stage": {
                "internal_name": "Planning",
                "stage_index": "2",
                "name": "Planning",
                "id": "2"
            },
            "change": {
                "id": "3"
            },
            "name": "impact_details",
            "updated_by": null,
            "description": null,
            "id": "14"
        },
        "category": null,
        "subcategory": null,
        "deleted_time": null,
        "notes_present": false,
        "status": {
            "internal_name": "Requested",
            "prominent": false,
            "stage": {
                "id": "1"
            },
            "action_name": null,
            "name": "Requested",
            "id": "3"
        },
        "scheduled_start_time": null
    }
}

Pickup Change

This operation allows you to pickup change(s) on your name as a change owner.

Url

<service domain|custom domain>/app/<portal>//api/v3/changes/pickup?ids={change_ids}

$ curl <service domain|custom domain>/app/<portal>//api/v3/changes/pickup?ids={change_ids}\
      -X PUT\ 
      -H "Accept: application/vnd.manageengine.sdp.v3+json"\
      -H "Authorization: authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"\
      -H "Content-Type: application/x-www-form-urlencoded"\
      -d input_data=''
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>//api/v3/changes/pickup?ids={change_ids}";
headers = {"Accept":"application/vnd.manageengine.sdp.v3+json",
           "Content-Type": "application/x-www-form-urlencoded",
           "Authorization": "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"};
input_data = ;
params = {"input_data": input_data};
response = invokeurl
[
    url: url
    type: PUT
    parameters: params
    headers: headers
];
info response;
#Powershell version - 5.1
$url = "<service domain|custom domain>/app/<portal>//api/v3/changes/pickup?ids={change_ids}"
$headers = @{ "Accept" = "application/vnd.manageengine.sdp.v3+json"
    "Authorization" = "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"
    "Content-Type" = "application/x-www-form-urlencoded"}
$input_data = @'

'@
$data = @{ 'input_data' = $input_data}
$response = Invoke-RestMethod -Uri $url -Method put -Body $data -Headers $headers
$response
#Python version - 3.10
from urllib.error import HTTPError
from urllib.parse import urlencode
from urllib.request import urlopen,Request

url = "<service domain|custom domain>/app/<portal>//api/v3/changes/pickup?ids={change_ids}"
headers ={"Accept": "application/vnd.manageengine.sdp.v3+json", 
          "Authorization" : "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX", 
          "Content-Type" : "application/x-www-form-urlencoded"}
input_data = ''''''
data = urlencode({"input_data":input_data}).encode()
httprequest = Request(url, headers=headers,data=data, method="PUT")
try:
    with urlopen(httprequest) as response:
        print(response.read().decode())
except HTTPError as e:
    print(e.read().decode())
{
    "response_status": [
        {
            "status_code": 2000,
            "id": "3",
            "status": "success"
        }
    ],
    "changes": {
        "template": {
            "name": "General Template",
            "id": "1"
        },
        "short_description": null,
        "attachments": [],
        "roll_out_plan": {
            "updated_on": null,
            "internal_name": "roll_out_plan",
            "attachments": [],
            "stage": {
                "internal_name": "Planning",
                "stage_index": "2",
                "name": "Planning",
                "id": "2"
            },
            "change": {
                "id": "3"
            },
            "name": "roll_out_plan",
            "updated_by": null,
            "description": null,
            "id": "13"
        },
        "closure_code": null,
        "sla_violation": null,
        "roles": [],
        "description": null,
        "emergency": false,
        "change_type": null,
        "title": "xsc x",
        "review_details": {
            "updated_on": null,
            "internal_name": "review_details",
            "attachments": [],
            "stage": {
                "internal_name": "Review",
                "stage_index": "5",
                "name": "Review",
                "id": "5"
            },
            "change": {
                "id": "3"
            },
            "name": "review_details",
            "updated_by": null,
            "description": null,
            "id": "17"
        },
        "change_owner": {
            "email_id": null,
            "phone": "1122334455",
            "name": "administrator",
            "mobile": "1234567890",
            "profile_pic": {
                "content-url": "/images/default-profile-pic2.svg"
            },
            "is_vipuser": false,
            "id": "5",
            "department": null
        },
        "next_review_on": null,
        "assets": [],
        "urgency": null,
        "close_details": {
            "updated_on": null,
            "internal_name": "close_details",
            "attachments": [],
            "stage": {
                "internal_name": "Close",
                "stage_index": "6",
                "name": "Close",
                "id": "6"
            },
            "change": {
                "id": "3"
            },
            "name": "close_details",
            "updated_by": null,
            "description": null,
            "id": "18"
        },
        "id": "3",
        "change_requester": null,
        "group": null,
        "created_time": {
            "display_value": "Dec 28, 2022 03:44 PM",
            "value": "1672222459029"
        },
        "item": null,
        "workflow": {
            "validated": true,
            "name": "SDGeneral",
            "id": "1",
            "type": "General"
        },
        "approval_status": {
            "name": "Pending Approval",
            "id": "1"
        },
        "change_manager": null,
        "impact": null,
        "retrospective": false,
        "sla": null,
        "checklist": {
            "updated_on": null,
            "internal_name": "checklist",
            "attachments": [],
            "stage": {
                "internal_name": "Planning",
                "stage_index": "2",
                "name": "Planning",
                "id": "2"
            },
            "change": {
                "id": "3"
            },
            "name": "checklist",
            "updated_by": null,
            "description": null,
            "id": "15"
        },
        "services": [],
        "priority": null,
        "scheduled_end_time": null,
        "back_out_plan": {
            "updated_on": null,
            "internal_name": "back_out_plan",
            "attachments": [],
            "stage": {
                "internal_name": "Planning",
                "stage_index": "2",
                "name": "Planning",
                "id": "2"
            },
            "change": {
                "id": "3"
            },
            "name": "back_out_plan",
            "updated_by": null,
            "description": null,
            "id": "16"
        },
        "stage": {
            "internal_name": "Submission",
            "stage_index": "1",
            "name": "Submission",
            "id": "1"
        },
        "reason_for_change": null,
        "completed_time": null,
        "risk": null,
        "impact_details": {
            "updated_on": null,
            "internal_name": "impact_details",
            "attachments": [],
            "stage": {
                "internal_name": "Planning",
                "stage_index": "2",
                "name": "Planning",
                "id": "2"
            },
            "change": {
                "id": "3"
            },
            "name": "impact_details",
            "updated_by": null,
            "description": null,
            "id": "14"
        },
        "category": null,
        "subcategory": null,
        "deleted_time": null,
        "notes_present": false,
        "status": {
            "internal_name": "Requested",
            "prominent": false,
            "stage": {
                "id": "1"
            },
            "action_name": null,
            "name": "Requested",
            "id": "3"
        },
        "scheduled_start_time": null
    }
}

Assign Change

This Operation allows you to assign a change owner for a change.

Url

<service domain|custom domain>/app/<portal>//api/v3/changes/assign?ids={change_ids}

$ curl <service domain|custom domain>/app/<portal>//api/v3/changes/assign?ids={change_ids}\
      -X PUT\ 
      -H "Accept: application/vnd.manageengine.sdp.v3+json"\
      -H "Authorization: authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"\
      -H "Content-Type: application/x-www-form-urlencoded"\
      -d input_data='{
    "change": {
        "change_owner": {
            "id": "4"
        }
    }
}'
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>//api/v3/changes/assign?ids={change_ids}";
headers = {"Accept":"application/vnd.manageengine.sdp.v3+json",
           "Content-Type": "application/x-www-form-urlencoded",
           "Authorization": "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"};
input_data = {
    "change": {
        "change_owner": {
            "id": "4"
        }
    }
};
params = {"input_data": input_data};
response = invokeurl
[
    url: url
    type: PUT
    parameters: params
    headers: headers
];
info response;
#Powershell version - 5.1
$url = "<service domain|custom domain>/app/<portal>//api/v3/changes/assign?ids={change_ids}"
$headers = @{ "Accept" = "application/vnd.manageengine.sdp.v3+json"
    "Authorization" = "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"
    "Content-Type" = "application/x-www-form-urlencoded"}
$input_data = @'
{
    "change": {
        "change_owner": {
            "id": "4"
        }
    }
}
'@
$data = @{ 'input_data' = $input_data}
$response = Invoke-RestMethod -Uri $url -Method put -Body $data -Headers $headers
$response
#Python version - 3.10
from urllib.error import HTTPError
from urllib.parse import urlencode
from urllib.request import urlopen,Request

url = "<service domain|custom domain>/app/<portal>//api/v3/changes/assign?ids={change_ids}"
headers ={"Accept": "application/vnd.manageengine.sdp.v3+json", 
          "Authorization" : "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX", 
          "Content-Type" : "application/x-www-form-urlencoded"}
input_data = '''{
    "change": {
        "change_owner": {
            "id": "4"
        }
    }
}'''
data = urlencode({"input_data":input_data}).encode()
httprequest = Request(url, headers=headers,data=data, method="PUT")
try:
    with urlopen(httprequest) as response:
        print(response.read().decode())
except HTTPError as e:
    print(e.read().decode())
{
    "response_status": [
        {
            "status_code": 2000,
            "id": "3",
            "status": "success"
        }
    ],
    "changes": {
        "template": {
            "name": "General Template",
            "id": "1"
        },
        "short_description": null,
        "attachments": [],
        "roll_out_plan": {
            "updated_on": null,
            "internal_name": "roll_out_plan",
            "attachments": [],
            "stage": {
                "internal_name": "Planning",
                "stage_index": "2",
                "name": "Planning",
                "id": "2"
            },
            "change": {
                "id": "3"
            },
            "name": "roll_out_plan",
            "updated_by": null,
            "description": null,
            "id": "13"
        },
        "closure_code": null,
        "sla_violation": null,
        "roles": [],
        "description": null,
        "emergency": false,
        "change_type": null,
        "title": "xsc x",
        "review_details": {
            "updated_on": null,
            "internal_name": "review_details",
            "attachments": [],
            "stage": {
                "internal_name": "Review",
                "stage_index": "5",
                "name": "Review",
                "id": "5"
            },
            "change": {
                "id": "3"
            },
            "name": "review_details",
            "updated_by": null,
            "description": null,
            "id": "17"
        },
        "change_owner": {
            "email_id": null,
            "phone": "1122334455",
            "name": "administrator",
            "mobile": "1234567890",
            "profile_pic": {
                "content-url": "/images/default-profile-pic2.svg"
            },
            "is_vipuser": false,
            "id": "5",
            "department": null
        },
        "next_review_on": null,
        "assets": [],
        "urgency": null,
        "close_details": {
            "updated_on": null,
            "internal_name": "close_details",
            "attachments": [],
            "stage": {
                "internal_name": "Close",
                "stage_index": "6",
                "name": "Close",
                "id": "6"
            },
            "change": {
                "id": "3"
            },
            "name": "close_details",
            "updated_by": null,
            "description": null,
            "id": "18"
        },
        "id": "3",
        "change_requester": null,
        "group": null,
        "created_time": {
            "display_value": "Dec 28, 2022 03:44 PM",
            "value": "1672222459029"
        },
        "item": null,
        "workflow": {
            "validated": true,
            "name": "SDGeneral",
            "id": "1",
            "type": "General"
        },
        "approval_status": {
            "name": "Pending Approval",
            "id": "1"
        },
        "change_manager": null,
        "impact": null,
        "retrospective": false,
        "sla": null,
        "checklist": {
            "updated_on": null,
            "internal_name": "checklist",
            "attachments": [],
            "stage": {
                "internal_name": "Planning",
                "stage_index": "2",
                "name": "Planning",
                "id": "2"
            },
            "change": {
                "id": "3"
            },
            "name": "checklist",
            "updated_by": null,
            "description": null,
            "id": "15"
        },
        "services": [],
        "priority": null,
        "scheduled_end_time": null,
        "back_out_plan": {
            "updated_on": null,
            "internal_name": "back_out_plan",
            "attachments": [],
            "stage": {
                "internal_name": "Planning",
                "stage_index": "2",
                "name": "Planning",
                "id": "2"
            },
            "change": {
                "id": "3"
            },
            "name": "back_out_plan",
            "updated_by": null,
            "description": null,
            "id": "16"
        },
        "stage": {
            "internal_name": "Submission",
            "stage_index": "1",
            "name": "Submission",
            "id": "1"
        },
        "reason_for_change": null,
        "completed_time": null,
        "risk": null,
        "impact_details": {
            "updated_on": null,
            "internal_name": "impact_details",
            "attachments": [],
            "stage": {
                "internal_name": "Planning",
                "stage_index": "2",
                "name": "Planning",
                "id": "2"
            },
            "change": {
                "id": "3"
            },
            "name": "impact_details",
            "updated_by": null,
            "description": null,
            "id": "14"
        },
        "category": null,
        "subcategory": null,
        "deleted_time": null,
        "notes_present": false,
        "status": {
            "internal_name": "Requested",
            "prominent": false,
            "stage": {
                "id": "1"
            },
            "action_name": null,
            "name": "Requested",
            "id": "3"
        },
        "scheduled_start_time": null
    }
}

Close A Change

This operation allows you to close a change.

Url

<service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}/close_change

$ curl <service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}/close_change\
      -X PUT\ 
      -H "Accept: application/vnd.manageengine.sdp.v3+json"\
      -H "Authorization: authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"\
      -H "Content-Type: application/x-www-form-urlencoded"\
      -d input_data='{
    "comment": "This is canceled",
    "status": "canceled"
}'
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}/close_change";
headers = {"Accept":"application/vnd.manageengine.sdp.v3+json",
           "Content-Type": "application/x-www-form-urlencoded",
           "Authorization": "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"};
input_data = {
    "comment": "This is canceled",
    "status": "canceled"
};
params = {"input_data": input_data};
response = invokeurl
[
    url: url
    type: PUT
    parameters: params
    headers: headers
];
info response;
#Powershell version - 5.1
$url = "<service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}/close_change"
$headers = @{ "Accept" = "application/vnd.manageengine.sdp.v3+json"
    "Authorization" = "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"
    "Content-Type" = "application/x-www-form-urlencoded"}
$input_data = @'
{
    "comment": "This is canceled",
    "status": "canceled"
}
'@
$data = @{ 'input_data' = $input_data}
$response = Invoke-RestMethod -Uri $url -Method put -Body $data -Headers $headers
$response
#Python version - 3.10
from urllib.error import HTTPError
from urllib.parse import urlencode
from urllib.request import urlopen,Request

url = "<service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}/close_change"
headers ={"Accept": "application/vnd.manageengine.sdp.v3+json", 
          "Authorization" : "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX", 
          "Content-Type" : "application/x-www-form-urlencoded"}
input_data = '''{
    "comment": "This is canceled",
    "status": "canceled"
}'''
data = urlencode({"input_data":input_data}).encode()
httprequest = Request(url, headers=headers,data=data, method="PUT")
try:
    with urlopen(httprequest) as response:
        print(response.read().decode())
except HTTPError as e:
    print(e.read().decode())
{
    "response_status": {
        "status_code": 2000,
        "status": "success"
    },
    "change": {
        "template": {
            "name": "General Template",
            "id": "1"
        },
        "short_description": "description",
        "attachments": [],
        "roll_out_plan": {
            "updated_on": {
                "display_value": "Feb 28, 2020 06:18 PM",
                "value": "1582894101462"
            },
            "internal_name": "roll_out_plan",
            "attachments": [],
            "stage": {
                "internal_name": "Planning",
                "name": "Planning",
                "id": "2"
            },
            "change": {
                "id": "15"
            },
            "name": "roll_out_plan",
            "updated_by": {
                "email_id": null,
                "name": "administrator",
                "is_vipuser": false,
                "id": "4",
                "department": null
            },
            "description": "test",
            "id": "302"
        },
        "closure_code": null,
        "sla_violation": null,
        "roles": [
            {
                "role": {
                    "internal_name": "Implementer",
                    "name": "Implementer",
                    "id": "8"
                },
                "change": {
                    "short_description": "description",
                    "id": "15",
                    "title": "WAN - Port - Reconfigure"
                },
                "id": "907",
                "user": {
                    "email_id": null,
                    "name": "Shawn Adams",
                    "is_vipuser": false,
                    "id": "5",
                    "department": null
                },
                "label_id": null
            },
            {
                "role": {
                    "internal_name": "Implementer",
                    "name": "Implementer",
                    "id": "8"
                },
                "change": {
                    "short_description": "description",
                    "id": "15",
                    "title": "WAN - Port - Reconfigure"
                },
                "id": "908",
                "user": {
                    "email_id": null,
                    "name": "John Roberts",
                    "is_vipuser": false,
                    "id": "7",
                    "department": null
                },
                "label_id": null
            }
        ],
        "downtimes": [
            {
                "start_time": {
                    "display_value": "Jul 21, 2019 01:37 AM",
                    "value": "1563653240000"
                },
                "change": {
                    "short_description": "description",
                    "id": "15",
                    "title": "WAN - Port - Reconfigure"
                },
                "end_time": {
                    "display_value": "Aug 1, 2019 03:24 PM",
                    "value": "1564653240000"
                },
                "description": "downtime",
                "id": "904"
            }
        ],
        "description": "description",
        "emergency": false,
        "title": "WAN - Port - Reconfigure",
        "change_type": {
            "color": "#ff6666",
            "name": "Major",
            "id": "2"
        },
        "review_details": {
            "updated_on": {
                "display_value": "Feb 28, 2020 06:18 PM",
                "value": "1582894101499"
            },
            "internal_name": "review",
            "attachments": [],
            "stage": {
                "internal_name": "Review",
                "name": "Review",
                "id": "5"
            },
            "change": {
                "id": "15"
            },
            "name": "review_details",
            "updated_by": {
                "email_id": null,
                "name": "administrator",
                "is_vipuser": false,
                "id": "4",
                "department": null
            },
            "description": "test",
            "id": "305"
        },
        "change_owner": {
            "email_id": null,
            "name": "administrator",
            "is_vipuser": false,
            "id": "4",
            "department": null
        },
        "next_review_on": {
            "display_value": "Dec 19, 2022 01:03 AM",
            "value": "1671392007925"
        },
        "assets": [],
        "urgency": {
            "name": "Normal",
            "id": "3"
        },
        "close_details": {
            "updated_on": {
                "display_value": "Feb 28, 2020 06:18 PM",
                "value": "1582894101511"
            },
            "internal_name": "close_details",
            "attachments": [],
            "stage": {
                "internal_name": "Close",
                "name": "Close",
                "id": "6"
            },
            "change": {
                "id": "15"
            },
            "name": "close_details",
            "updated_by": {
                "email_id": null,
                "name": "administrator",
                "is_vipuser": false,
                "id": "4",
                "department": null
            },
            "description": "test",
            "id": "306"
        },
        "id": "15",
        "change_requester": {
            "email_id": null,
            "name": "administrator",
            "is_vipuser": false,
            "id": "4",
            "department": null
        },
        "group": null,
        "created_time": {
            "display_value": "Feb 28, 2020 03:46 PM",
            "value": "1582884960909"
        },
        "item": {
            "name": "Install",
            "id": "8"
        },
        "workflow": {
            "name": "SDGeneral",
            "id": "1",
            "is_emergency": false
        },
        "approval_status": {
            "name": "Pending Approval",
            "id": "1"
        },
        "change_manager": {
            "email_id": null,
            "name": "administrator",
            "is_vipuser": false,
            "id": "4",
            "department": null
        },
        "impact": {
            "name": "Low",
            "id": "3"
        },
        "retrospective": false,
        "checklist": {
            "updated_on": {
                "display_value": "Feb 28, 2020 06:18 PM",
                "value": "1582894101487"
            },
            "internal_name": "checklist",
            "attachments": [],
            "stage": {
                "internal_name": "Planning",
                "name": "Planning",
                "id": "2"
            },
            "change": {
                "id": "15"
            },
            "name": "checklist",
            "updated_by": {
                "email_id": null,
                "name": "administrator",
                "is_vipuser": false,
                "id": "4",
                "department": null
            },
            "description": "test",
            "id": "304"
        },
        "services": [
            {
                "name": "Application Login",
                "id": "1"
            }
        ],
        "priority": {
            "color": "#ff0000",
            "name": "High",
            "id": "4"
        },
        "scheduled_end_time": {
            "display_value": "Feb 23, 2017 11:59 PM",
            "value": "1487874599999"
        },
        "back_out_plan": {
            "updated_on": {
                "display_value": "Feb 28, 2020 06:18 PM",
                "value": "1582894101448"
            },
            "internal_name": "back_out_plan",
            "attachments": [],
            "stage": {
                "internal_name": "Planning",
                "name": "Planning",
                "id": "2"
            },
            "change": {
                "id": "15"
            },
            "name": "back_out_plan",
            "updated_by": {
                "email_id": null,
                "name": "administrator",
                "is_vipuser": false,
                "id": "4",
                "department": null
            },
            "description": "test",
            "id": "301"
        },
        "stage": {
            "internal_name": "Close",
            "name": "Close",
            "id": "6"
        },
        "reason_for_change": {
            "name": "Security compliance",
            "id": "2"
        },
        "completed_time": {
            "display_value": "Feb 29, 2020 11:25 AM",
            "value": "1582955730341"
        },
        "risk": {
            "name": "High",
            "id": "3"
        },
        "impact_details": {
            "updated_on": {
                "display_value": "Feb 28, 2020 06:18 PM",
                "value": "1582894101474"
            },
            "internal_name": "impact_details",
            "attachments": [],
            "stage": {
                "internal_name": "Planning",
                "name": "Planning",
                "id": "2"
            },
            "change": {
                "id": "15"
            },
            "name": "impact_details",
            "updated_by": {
                "email_id": null,
                "name": "administrator",
                "is_vipuser": false,
                "id": "4",
                "department": null
            },
            "description": "test",
            "id": "303"
        },
        "category": {
            "name": "Software",
            "id": "3"
        },
        "subcategory": {
            "name": "Adobe Reader",
            "id": "8"
        },
        "notes_present": false,
        "status": {
            "prominent": true,
            "stage": {
                "id": "6"
            },
            "action_name": "Cancel",
            "name": "Canceled",
            "id": "13"
        },
        "scheduled_start_time": {
            "display_value": "Feb 16, 2017 12:00 AM",
            "value": "1487183400000"
        }
    }
}

Copy Change

No Description

Url

<service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}/copy

$ curl <service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}/copy\
      -X POST\ 
      -H "Accept: application/vnd.manageengine.sdp.v3+json"\
      -H "Authorization: authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"\
      -H "Content-Type: application/x-www-form-urlencoded"\
      -d input_data='{
    "copy_fields": {
        "Submission": [
            "changefields",
            "change_roles",
            "submission.attachments",
            "udf_fields",
            "tasks"
        ],
        "Planning": [
            "impact_details",
            "roll_out_plan",
            "back_out_plan",
            "checklist",
            "downtime",
            "udf_fields",
            "tasks"
        ],
        "Approval": [
            "udf_fields",
            "tasks"
        ],
        "UAT": [
            "uat_description",
            "uat_testplan",
            "udf_fields",
            "tasks"
        ],
        "Implementation": [
            "udf_fields",
            "tasks"
        ],
        "Review": [
            "review_details.description",
            "review_details.attachments",
            "udf_fields",
            "tasks"
        ],
        "Release": [
            "release_description",
            "udf_fields",
            "tasks"
        ],
        "Close": [
            "close_details.description",
            "close_details.attachments",
            "udf_fields",
            "tasks"
        ],
        "change": {
            "template": {
                "id": "1",
                "name": "General Template"
            },
            "workflow": {
                "id": "1",
                "name": "SDGeneral"
            },
            "change_requester": {
                "id": "4",
                "name": "Guest"
            },
            "change_type": {
                "id": "4",
                "name": "Minor"
            },
            "group": null,
            "category": {
                "id": "3",
                "name": "Software"
            },
            "change_owner": {
                "id": "5",
                "name": "administrator"
            },
            "subcategory": {
                "id": "9",
                "name": "MSSQL Server"
            },
            "change_manager": {
                "id": "5",
                "name": "administrator"
            },
            "item": {
                "id": "10",
                "name": "Install"
            },
            "impact": {
                "id": "2",
                "name": "Medium"
            },
            "stage": {
                "id": "1",
                "name": "Submission"
            },
            "urgency": {
                "id": "3",
                "name": "Normal"
            },
            "status": {
                "id": "3",
                "name": "Requested"
            },
            "priority": {
                "id": "2",
                "name": "Normal"
            },
            "comment": "The above stage/status is set as part of 'Change' creation",
            "risk": {
                "id": "2",
                "name": "Medium"
            },
            "scheduled_start_time": null,
            "scheduled_end_time": null,
            "services": [
                {
                    "id": "2",
                    "name": "Communication"
                },
                {
                    "id": "5",
                    "name": "Hardware"
                },
                {
                    "id": "8",
                    "name": "User Management"
                },
                {
                    "id": "6",
                    "name": "Internet"
                },
                {
                    "id": "4",
                    "name": "Email"
                },
                {
                    "id": "1",
                    "name": "Application Login"
                },
                {
                    "id": "3",
                    "name": "Data Management"
                },
                {
                    "id": "7",
                    "name": "Software"
                }
            ],
            "assets": [],
            "title": "ex",
            "reason_for_change": {
                "id": "6",
                "name": "Anti virus,firewall upgrades"
            },
            "description": "<div>Submission Stage Description<br></div>",
            "attachments": [],
            "roles": [
                {
                    "role": {
                        "id": "5"
                    },
                    "user": {
                        "id": "10"
                    },
                    "id": "7"
                },
                {
                    "role": {
                        "id": "5"
                    },
                    "user": {
                        "id": "9"
                    },
                    "id": "8"
                },
                {
                    "role": {
                        "id": "7"
                    },
                    "user": {
                        "id": "5"
                    },
                    "id": "1"
                },
                {
                    "role": {
                        "id": "7"
                    },
                    "user": {
                        "id": "4"
                    },
                    "id": "2"
                },
                {
                    "role": {
                        "id": "8"
                    },
                    "user": {
                        "id": "7"
                    },
                    "id": "3"
                },
                {
                    "role": {
                        "id": "8"
                    },
                    "user": {
                        "id": "5"
                    },
                    "id": "4"
                },
                {
                    "role": {
                        "id": "9"
                    },
                    "user": {
                        "id": "10"
                    },
                    "id": "5"
                },
                {
                    "role": {
                        "id": "9"
                    },
                    "user": {
                        "id": "9"
                    },
                    "id": "6"
                },
                {
                    "role": {
                        "id": "10"
                    },
                    "user": {
                        "id": "7"
                    },
                    "id": "9"
                },
                {
                    "role": {
                        "id": "10"
                    },
                    "user": {
                        "id": "4"
                    },
                    "id": "10"
                }
            ]
        }
    }
}'
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}/copy";
headers = {"Accept":"application/vnd.manageengine.sdp.v3+json",
           "Content-Type": "application/x-www-form-urlencoded",
           "Authorization": "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"};
input_data = {
    "copy_fields": {
        "Submission": [
            "changefields",
            "change_roles",
            "submission.attachments",
            "udf_fields",
            "tasks"
        ],
        "Planning": [
            "impact_details",
            "roll_out_plan",
            "back_out_plan",
            "checklist",
            "downtime",
            "udf_fields",
            "tasks"
        ],
        "Approval": [
            "udf_fields",
            "tasks"
        ],
        "UAT": [
            "uat_description",
            "uat_testplan",
            "udf_fields",
            "tasks"
        ],
        "Implementation": [
            "udf_fields",
            "tasks"
        ],
        "Review": [
            "review_details.description",
            "review_details.attachments",
            "udf_fields",
            "tasks"
        ],
        "Release": [
            "release_description",
            "udf_fields",
            "tasks"
        ],
        "Close": [
            "close_details.description",
            "close_details.attachments",
            "udf_fields",
            "tasks"
        ],
        "change": {
            "template": {
                "id": "1",
                "name": "General Template"
            },
            "workflow": {
                "id": "1",
                "name": "SDGeneral"
            },
            "change_requester": {
                "id": "4",
                "name": "Guest"
            },
            "change_type": {
                "id": "4",
                "name": "Minor"
            },
            "group": null,
            "category": {
                "id": "3",
                "name": "Software"
            },
            "change_owner": {
                "id": "5",
                "name": "administrator"
            },
            "subcategory": {
                "id": "9",
                "name": "MSSQL Server"
            },
            "change_manager": {
                "id": "5",
                "name": "administrator"
            },
            "item": {
                "id": "10",
                "name": "Install"
            },
            "impact": {
                "id": "2",
                "name": "Medium"
            },
            "stage": {
                "id": "1",
                "name": "Submission"
            },
            "urgency": {
                "id": "3",
                "name": "Normal"
            },
            "status": {
                "id": "3",
                "name": "Requested"
            },
            "priority": {
                "id": "2",
                "name": "Normal"
            },
            "comment": "The above stage/status is set as part of 'Change' creation",
            "risk": {
                "id": "2",
                "name": "Medium"
            },
            "scheduled_start_time": null,
            "scheduled_end_time": null,
            "services": [
                {
                    "id": "2",
                    "name": "Communication"
                },
                {
                    "id": "5",
                    "name": "Hardware"
                },
                {
                    "id": "8",
                    "name": "User Management"
                },
                {
                    "id": "6",
                    "name": "Internet"
                },
                {
                    "id": "4",
                    "name": "Email"
                },
                {
                    "id": "1",
                    "name": "Application Login"
                },
                {
                    "id": "3",
                    "name": "Data Management"
                },
                {
                    "id": "7",
                    "name": "Software"
                }
            ],
            "assets": [],
            "title": "ex",
            "reason_for_change": {
                "id": "6",
                "name": "Anti virus,firewall upgrades"
            },
            "description": "<div>Submission Stage Description<br></div>",
            "attachments": [],
            "roles": [
                {
                    "role": {
                        "id": "5"
                    },
                    "user": {
                        "id": "10"
                    },
                    "id": "7"
                },
                {
                    "role": {
                        "id": "5"
                    },
                    "user": {
                        "id": "9"
                    },
                    "id": "8"
                },
                {
                    "role": {
                        "id": "7"
                    },
                    "user": {
                        "id": "5"
                    },
                    "id": "1"
                },
                {
                    "role": {
                        "id": "7"
                    },
                    "user": {
                        "id": "4"
                    },
                    "id": "2"
                },
                {
                    "role": {
                        "id": "8"
                    },
                    "user": {
                        "id": "7"
                    },
                    "id": "3"
                },
                {
                    "role": {
                        "id": "8"
                    },
                    "user": {
                        "id": "5"
                    },
                    "id": "4"
                },
                {
                    "role": {
                        "id": "9"
                    },
                    "user": {
                        "id": "10"
                    },
                    "id": "5"
                },
                {
                    "role": {
                        "id": "9"
                    },
                    "user": {
                        "id": "9"
                    },
                    "id": "6"
                },
                {
                    "role": {
                        "id": "10"
                    },
                    "user": {
                        "id": "7"
                    },
                    "id": "9"
                },
                {
                    "role": {
                        "id": "10"
                    },
                    "user": {
                        "id": "4"
                    },
                    "id": "10"
                }
            ]
        }
    }
};
params = {"input_data": input_data};
response = invokeurl
[
    url: url
    type: POST
    parameters: params
    headers: headers
];
info response;
#Powershell version - 5.1
$url = "<service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}/copy"
$headers = @{"Accept": "application/vnd.manageengine.sdp.v3+json", 
          "Authorization" : "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX", 
          "Content-Type" : "application/x-www-form-urlencoded"}
$input_data = @'
{
    "copy_fields": {
        "Submission": [
            "changefields",
            "change_roles",
            "submission.attachments",
            "udf_fields",
            "tasks"
        ],
        "Planning": [
            "impact_details",
            "roll_out_plan",
            "back_out_plan",
            "checklist",
            "downtime",
            "udf_fields",
            "tasks"
        ],
        "Approval": [
            "udf_fields",
            "tasks"
        ],
        "UAT": [
            "uat_description",
            "uat_testplan",
            "udf_fields",
            "tasks"
        ],
        "Implementation": [
            "udf_fields",
            "tasks"
        ],
        "Review": [
            "review_details.description",
            "review_details.attachments",
            "udf_fields",
            "tasks"
        ],
        "Release": [
            "release_description",
            "udf_fields",
            "tasks"
        ],
        "Close": [
            "close_details.description",
            "close_details.attachments",
            "udf_fields",
            "tasks"
        ],
        "change": {
            "template": {
                "id": "1",
                "name": "General Template"
            },
            "workflow": {
                "id": "1",
                "name": "SDGeneral"
            },
            "change_requester": {
                "id": "4",
                "name": "Guest"
            },
            "change_type": {
                "id": "4",
                "name": "Minor"
            },
            "group": null,
            "category": {
                "id": "3",
                "name": "Software"
            },
            "change_owner": {
                "id": "5",
                "name": "administrator"
            },
            "subcategory": {
                "id": "9",
                "name": "MSSQL Server"
            },
            "change_manager": {
                "id": "5",
                "name": "administrator"
            },
            "item": {
                "id": "10",
                "name": "Install"
            },
            "impact": {
                "id": "2",
                "name": "Medium"
            },
            "stage": {
                "id": "1",
                "name": "Submission"
            },
            "urgency": {
                "id": "3",
                "name": "Normal"
            },
            "status": {
                "id": "3",
                "name": "Requested"
            },
            "priority": {
                "id": "2",
                "name": "Normal"
            },
            "comment": "The above stage/status is set as part of 'Change' creation",
            "risk": {
                "id": "2",
                "name": "Medium"
            },
            "scheduled_start_time": null,
            "scheduled_end_time": null,
            "services": [
                {
                    "id": "2",
                    "name": "Communication"
                },
                {
                    "id": "5",
                    "name": "Hardware"
                },
                {
                    "id": "8",
                    "name": "User Management"
                },
                {
                    "id": "6",
                    "name": "Internet"
                },
                {
                    "id": "4",
                    "name": "Email"
                },
                {
                    "id": "1",
                    "name": "Application Login"
                },
                {
                    "id": "3",
                    "name": "Data Management"
                },
                {
                    "id": "7",
                    "name": "Software"
                }
            ],
            "assets": [],
            "title": "ex",
            "reason_for_change": {
                "id": "6",
                "name": "Anti virus,firewall upgrades"
            },
            "description": "<div>Submission Stage Description<br></div>",
            "attachments": [],
            "roles": [
                {
                    "role": {
                        "id": "5"
                    },
                    "user": {
                        "id": "10"
                    },
                    "id": "7"
                },
                {
                    "role": {
                        "id": "5"
                    },
                    "user": {
                        "id": "9"
                    },
                    "id": "8"
                },
                {
                    "role": {
                        "id": "7"
                    },
                    "user": {
                        "id": "5"
                    },
                    "id": "1"
                },
                {
                    "role": {
                        "id": "7"
                    },
                    "user": {
                        "id": "4"
                    },
                    "id": "2"
                },
                {
                    "role": {
                        "id": "8"
                    },
                    "user": {
                        "id": "7"
                    },
                    "id": "3"
                },
                {
                    "role": {
                        "id": "8"
                    },
                    "user": {
                        "id": "5"
                    },
                    "id": "4"
                },
                {
                    "role": {
                        "id": "9"
                    },
                    "user": {
                        "id": "10"
                    },
                    "id": "5"
                },
                {
                    "role": {
                        "id": "9"
                    },
                    "user": {
                        "id": "9"
                    },
                    "id": "6"
                },
                {
                    "role": {
                        "id": "10"
                    },
                    "user": {
                        "id": "7"
                    },
                    "id": "9"
                },
                {
                    "role": {
                        "id": "10"
                    },
                    "user": {
                        "id": "4"
                    },
                    "id": "10"
                }
            ]
        }
    }
}
'@
$data = @{ 'input_data' = $input_data}
$response = Invoke-RestMethod -Uri $url -Method post -Body $data -Headers $headers
$response
#Python version - 3.10
from urllib.error import HTTPError
from urllib.parse import urlencode
from urllib.request import urlopen,Request

url = "<service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}/copy"
headers ={"Accept": "application/vnd.manageengine.sdp.v3+json", 
          "Authorization" : "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX", 
          "Content-Type" : "application/x-www-form-urlencoded"}
input_data = '''{
    "copy_fields": {
        "Submission": [
            "changefields",
            "change_roles",
            "submission.attachments",
            "udf_fields",
            "tasks"
        ],
        "Planning": [
            "impact_details",
            "roll_out_plan",
            "back_out_plan",
            "checklist",
            "downtime",
            "udf_fields",
            "tasks"
        ],
        "Approval": [
            "udf_fields",
            "tasks"
        ],
        "UAT": [
            "uat_description",
            "uat_testplan",
            "udf_fields",
            "tasks"
        ],
        "Implementation": [
            "udf_fields",
            "tasks"
        ],
        "Review": [
            "review_details.description",
            "review_details.attachments",
            "udf_fields",
            "tasks"
        ],
        "Release": [
            "release_description",
            "udf_fields",
            "tasks"
        ],
        "Close": [
            "close_details.description",
            "close_details.attachments",
            "udf_fields",
            "tasks"
        ],
        "change": {
            "template": {
                "id": "1",
                "name": "General Template"
            },
            "workflow": {
                "id": "1",
                "name": "SDGeneral"
            },
            "change_requester": {
                "id": "4",
                "name": "Guest"
            },
            "change_type": {
                "id": "4",
                "name": "Minor"
            },
            "group": null,
            "category": {
                "id": "3",
                "name": "Software"
            },
            "change_owner": {
                "id": "5",
                "name": "administrator"
            },
            "subcategory": {
                "id": "9",
                "name": "MSSQL Server"
            },
            "change_manager": {
                "id": "5",
                "name": "administrator"
            },
            "item": {
                "id": "10",
                "name": "Install"
            },
            "impact": {
                "id": "2",
                "name": "Medium"
            },
            "stage": {
                "id": "1",
                "name": "Submission"
            },
            "urgency": {
                "id": "3",
                "name": "Normal"
            },
            "status": {
                "id": "3",
                "name": "Requested"
            },
            "priority": {
                "id": "2",
                "name": "Normal"
            },
            "comment": "The above stage/status is set as part of 'Change' creation",
            "risk": {
                "id": "2",
                "name": "Medium"
            },
            "scheduled_start_time": null,
            "scheduled_end_time": null,
            "services": [
                {
                    "id": "2",
                    "name": "Communication"
                },
                {
                    "id": "5",
                    "name": "Hardware"
                },
                {
                    "id": "8",
                    "name": "User Management"
                },
                {
                    "id": "6",
                    "name": "Internet"
                },
                {
                    "id": "4",
                    "name": "Email"
                },
                {
                    "id": "1",
                    "name": "Application Login"
                },
                {
                    "id": "3",
                    "name": "Data Management"
                },
                {
                    "id": "7",
                    "name": "Software"
                }
            ],
            "assets": [],
            "title": "ex",
            "reason_for_change": {
                "id": "6",
                "name": "Anti virus,firewall upgrades"
            },
            "description": "<div>Submission Stage Description<br></div>",
            "attachments": [],
            "roles": [
                {
                    "role": {
                        "id": "5"
                    },
                    "user": {
                        "id": "10"
                    },
                    "id": "7"
                },
                {
                    "role": {
                        "id": "5"
                    },
                    "user": {
                        "id": "9"
                    },
                    "id": "8"
                },
                {
                    "role": {
                        "id": "7"
                    },
                    "user": {
                        "id": "5"
                    },
                    "id": "1"
                },
                {
                    "role": {
                        "id": "7"
                    },
                    "user": {
                        "id": "4"
                    },
                    "id": "2"
                },
                {
                    "role": {
                        "id": "8"
                    },
                    "user": {
                        "id": "7"
                    },
                    "id": "3"
                },
                {
                    "role": {
                        "id": "8"
                    },
                    "user": {
                        "id": "5"
                    },
                    "id": "4"
                },
                {
                    "role": {
                        "id": "9"
                    },
                    "user": {
                        "id": "10"
                    },
                    "id": "5"
                },
                {
                    "role": {
                        "id": "9"
                    },
                    "user": {
                        "id": "9"
                    },
                    "id": "6"
                },
                {
                    "role": {
                        "id": "10"
                    },
                    "user": {
                        "id": "7"
                    },
                    "id": "9"
                },
                {
                    "role": {
                        "id": "10"
                    },
                    "user": {
                        "id": "4"
                    },
                    "id": "10"
                }
            ]
        }
    }
}'''
data = urlencode({"input_data":input_data}).encode()
httprequest = Request(url, headers=headers,data=data, method="POST")
try:
    with urlopen(httprequest) as response:
        print(response.read().decode())
except HTTPError as e:
    print(e.read().decode())
{
    "response_status": {
        "status_code": 2000,
        "status": "success"
    },
    "change": {
        "template": {
            "name": "General Template",
            "id": "1"
        },
        "short_description": null,
        "attachments": [],
        "roll_out_plan": {
            "updated_on": null,
            "internal_name": "roll_out_plan",
            "attachments": [],
            "stage": {
                "internal_name": "Planning",
                "name": "Planning",
                "id": "2"
            },
            "change": {
                "id": "4"
            },
            "name": "roll_out_plan",
            "updated_by": null,
            "description": null,
            "id": "302"
        },
        "closure_code": null,
        "sla_violation": null,
        "roles": [
            {
                "role": {
                    "name": "Reviewer",
                    "id": "9"
                },
                "change": {
                    "short_description": null,
                    "id": "4",
                    "title": "WAN - Port - Reconfigure"
                },
                "id": "301",
                "user": {
                    "email_id": null,
                    "name": "Howard Stern",
                    "is_vipuser": false,
                    "id": "8",
                    "department": null
                },
                "label_id": null
            },
            {
                "role": {
                    "name": "Reviewer",
                    "id": "9"
                },
                "change": {
                    "short_description": null,
                    "id": "4",
                    "title": "WAN - Port - Reconfigure"
                },
                "id": "302",
                "user": {
                    "email_id": null,
                    "name": "Heather Graham",
                    "is_vipuser": false,
                    "id": "6",
                    "department": null
                },
                "label_id": null
            },
            {
                "role": {
                    "name": "Reviewer",
                    "id": "9"
                },
                "change": {
                    "short_description": null,
                    "id": "4",
                    "title": "WAN - Port - Reconfigure"
                },
                "id": "303",
                "user": {
                    "email_id": null,
                    "name": "Jeniffer Doe",
                    "is_vipuser": false,
                    "id": "9",
                    "department": null
                },
                "label_id": null
            }
        ],
        "description": null,
        "emergency": false,
        "change_type": null,
        "title": "WAN - Port - Reconfigure",
        "review_details": {
            "updated_on": null,
            "internal_name": "review_details",
            "attachments": [],
            "stage": {
                "internal_name": "Review",
                "name": "Review",
                "id": "5"
            },
            "change": {
                "id": "4"
            },
            "name": "review_details",
            "updated_by": null,
            "description": null,
            "id": "305"
        },
        "change_owner": {
            "email_id": null,
            "name": "Heather Graham",
            "is_vipuser": false,
            "id": "6",
            "department": null
        },
        "next_review_on": null,
        "assets": [],
        "urgency": null,
        "close_details": {
            "updated_on": null,
            "internal_name": "close_details",
            "attachments": [],
            "stage": {
                "internal_name": "Close",
                "name": "Close",
                "id": "6"
            },
            "change": {
                "id": "4"
            },
            "name": "close_details",
            "updated_by": null,
            "description": null,
            "id": "306"
        },
        "id": "4",
        "change_requester": null,
        "group": null,
        "created_time": {
            "display_value": "Sep 9, 2020 04:39 PM",
            "value": "1599649785346"
        },
        "item": null,
        "workflow": {
            "name": "SDGeneral",
            "id": "1",
            "is_emergency": false
        },
        "approval_status": {
            "name": "Pending Approval",
            "id": "1"
        },
        "change_manager": null,
        "impact": null,
        "retrospective": false,
        "checklist": {
            "updated_on": null,
            "internal_name": "checklist",
            "attachments": [],
            "stage": {
                "internal_name": "Planning",
                "name": "Planning",
                "id": "2"
            },
            "change": {
                "id": "4"
            },
            "name": "checklist",
            "updated_by": null,
            "description": null,
            "id": "304"
        },
        "services": [],
        "priority": null,
        "scheduled_end_time": null,
        "back_out_plan": {
            "updated_on": null,
            "internal_name": "back_out_plan",
            "attachments": [],
            "stage": {
                "internal_name": "Planning",
                "name": "Planning",
                "id": "2"
            },
            "change": {
                "id": "4"
            },
            "name": "back_out_plan",
            "updated_by": null,
            "description": null,
            "id": "301"
        },
        "stage": {
            "internal_name": "Submission",
            "name": "Submission",
            "id": "1"
        },
        "reason_for_change": null,
        "completed_time": null,
        "risk": null,
        "impact_details": {
            "updated_on": {
                "display_value": "Sep 9, 2020 04:39 PM",
                "value": "1599649785384"
            },
            "internal_name": "impact_details",
            "attachments": [],
            "stage": {
                "internal_name": "Planning",
                "name": "Planning",
                "id": "2"
            },
            "change": {
                "id": "4"
            },
            "name": "impact_details",
            "updated_by": {
                "email_id": null,
                "name": "administrator",
                "is_vipuser": false,
                "id": "4",
                "department": null
            },
            "description": "<div>wadwad<br /></div>",
            "id": "303"
        },
        "category": null,
        "subcategory": null,
        "notes_present": false,
        "status": {
            "prominent": false,
            "stage": {
                "id": "1"
            },
            "action_name": null,
            "name": "Requested",
            "id": "3"
        },
        "scheduled_start_time": null
    }
}

Get Summary

This Operation allows you to get a summary of the change(s).

Url

<service domain|custom domain>/app/<portal>//api/v3/changes/summary?ids={change_ids}

$ curl -G <service domain|custom domain>/app/<portal>//api/v3/changes/summary?ids={change_ids}\
      -X GET\ 
      -H "Accept: application/vnd.manageengine.sdp.v3+json"\
      -H "Authorization: authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"\
      -H "Content-Type: application/x-www-form-urlencoded"
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>//api/v3/changes/summary?ids={change_ids}";
headers = {"Accept":"application/vnd.manageengine.sdp.v3+json",
           "Content-Type": "application/x-www-form-urlencoded",
           "Authorization": "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"};
response = invokeurl
[
    url: url
    type: GET
    headers: headers
];
info response;
#Powershell version - 5.1
$url = "<service domain|custom domain>/app/<portal>//api/v3/changes/summary?ids={change_ids}"
$headers = @{ "Accept" = "application/vnd.manageengine.sdp.v3+json"
    "Authorization" = "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"
    "Content-Type" = "application/x-www-form-urlencoded"}
$response = Invoke-RestMethod -Uri $url -Method get -Headers $headers 
$response
#Python version - 3.8
#This script requires requests module installed in python.
from urllib.error import HTTPError
from urllib.parse import urlencode
from urllib.request import urlopen,Request

url = "<service domain|custom domain>/app/<portal>//api/v3/changes/summary?ids={change_ids}"
headers ={"Accept": "application/vnd.manageengine.sdp.v3+json", 
          "Authorization" : "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX", 
          "Content-Type" : "application/x-www-form-urlencoded"}
httprequest = Request(url, headers=headers)
try:
    with urlopen(httprequest) as response:
        print(response.read().decode())
except HTTPError as e:
    print(e.read().decode())
{
    "summary": [
        {
            "id": 3,
            "task_completed_count": 0,
            "task_total_count": 0,
            "my_task_total_count": 0,
            "my_task_completed_count": 0
        }
    ],
    "response_status": [
        {
            "status_code": 2000,
            "id": "3",
            "status": "success"
        }
    ]
}

Meta-info For Change Add

This operation allows you to get the metainfo of add change operation.

Url

<service domain|custom domain>/app/<portal>//api/v3/changes/metainfo

$ curl -G <service domain|custom domain>/app/<portal>//api/v3/changes/metainfo\
      -X GET\ 
      -H "Accept: application/vnd.manageengine.sdp.v3+json"\
      -H "Authorization: authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"\
      -H "Content-Type: application/x-www-form-urlencoded"
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>//api/v3/changes/metainfo";
headers = {"Accept":"application/vnd.manageengine.sdp.v3+json",
           "Content-Type": "application/x-www-form-urlencoded",
           "Authorization": "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"};
response = invokeurl
[
    url: url
    type: GET
    headers: headers
];
info response;
#Powershell version - 5.1
$url = "<service domain|custom domain>/app/<portal>//api/v3/changes/metainfo"
$headers = @{ "Accept" = "application/vnd.manageengine.sdp.v3+json"
    "Authorization" = "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"
    "Content-Type" = "application/x-www-form-urlencoded"}
$response = Invoke-RestMethod -Uri $url -Method get -Headers $headers 
$response
#Python version - 3.8
#This script requires requests module installed in python.
from urllib.error import HTTPError
from urllib.parse import urlencode
from urllib.request import urlopen,Request

url = "<service domain|custom domain>/app/<portal>//api/v3/changes/metainfo"
headers ={"Accept": "application/vnd.manageengine.sdp.v3+json", 
          "Authorization" : "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX", 
          "Content-Type" : "application/x-www-form-urlencoded"}
httprequest = Request(url, headers=headers)
try:
    with urlopen(httprequest) as response:
        print(response.read().decode())
except HTTPError as e:
    print(e.read().decode())
{
    "response_status": {
        "status_code": 2000,
        "status": "success"
    },
    "metainfo": {
        "is_dynamic": false,
        "plural_name": "changes",
        "relationship": false,
        "fields": {
            "roll_out_plan": {
                "form_field": false,
                "lookup_entity": "change_descriptive_field",
                "lookup_field": "name",
                "href": "/changes/roll_out_plan",
                "type": "lookup",
                "display_name": "Roll Out Plan",
                "partial_field": false
            },
            "closure_code": {
                "display_type": "Pick List",
                "lookup_entity": "change_closure_code",
                "lookup_field": "name",
                "href": "/changes/closure_code",
                "type": "lookup",
                "display_name": "Closure Code",
                "partial_field": false
            },
            "sla_violation": {
                "read_only": true,
                "editable": false,
                "form_field": false,
                "sortable": false,
                "type": "boolean",
                "display_name": "SLA Violated",
                "partial_field": false
            },
            "emergency": {
                "read_only": true,
                "editable": false,
                "form_field": false,
                "sortable": false,
                "type": "boolean",
                "display_name": "Emergency",
                "partial_field": false
            },
            "change_type": {
                "display_type": "Pick List",
                "lookup_entity": "change_type",
                "lookup_field": "name",
                "href": "/changes/change_type",
                "type": "lookup",
                "display_name": "Change Type",
                "partial_field": false
            },
            "review_details": {
                "form_field": false,
                "lookup_entity": "change_descriptive_field",
                "lookup_field": "name",
                "href": "/changes/review_details",
                "type": "lookup",
                "display_name": "Review",
                "partial_field": false
            },
            "assets": {
                "display_type": "MultiSelect",
                "multiple": true,
                "lookup_entity": "ci",
                "lookup_field": "name",
                "href": "/changes/assets",
                "type": "lookup",
                "display_name": "Assets Involved",
                "partial_field": false
            },
            "status_comments": {
                "multiple": true,
                "form_field": false,
                "lookup_entity": "change_status_comment",
                "lookup_field": "name",
                "sortable": false,
                "href": "/changes/status_comments",
                "type": "lookup",
                "partial_field": false,
                "searchable": false
            },
            "initiated_requests": {
                "multiple": true,
                "form_field": false,
                "lookup_entity": "request_initiated_by_change",
                "lookup_field": "name",
                "sortable": false,
                "href": "/changes/initiated_requests",
                "type": "lookup",
                "partial_field": false,
                "searchable": false
            },
            "id": {
                "identifier": true,
                "read_only": true,
                "form_field": false,
                "type": "long",
                "partial_field": false
            },
            "change_requester": {
                "lookup_entity": "user",
                "lookup_field": "name",
                "href": "/changes/change_requester",
                "type": "lookup",
                "partial_field": false,
                "display_name": "ChangeRequester"
            },
            "group": {
                "display_type": "Pick List",
                "depends_on": [
                    "site"
                ],
                "lookup_entity": "support_group",
                "lookup_field": "name",
                "href": "/changes/group",
                "type": "lookup",
                "display_name": "Group",
                "partial_field": false
            },
            "created_time": {
                "default_value": {
                    "value": 1595314415031
                },
                "type": "datetime",
                "display_name": "Created Time",
                "partial_field": false,
                "searchable": false
            },
            "item": {
                "display_type": "Pick List",
                "depends_on": [
                    "subcategory"
                ],
                "lookup_entity": "item",
                "lookup_field": "name",
                "href": "/changes/item",
                "type": "lookup",
                "display_name": "Item",
                "partial_field": false
            },
            "workflow": {
                "display_type": "Pick List",
                "lookup_entity": "change_workflow",
                "lookup_field": "name",
                "href": "/changes/workflow",
                "type": "lookup",
                "display_name": "Workflow",
                "partial_field": false
            },
            "approval_status": {
                "read_only": true,
                "editable": false,
                "form_field": false,
                "lookup_entity": "approval_status",
                "lookup_field": "name",
                "href": "/changes/approval_status",
                "type": "lookup",
                "display_name": "Approval Status",
                "partial_field": false
            },
            "impact": {
                "display_type": "Pick List",
                "lookup_entity": "impact",
                "lookup_field": "name",
                "href": "/changes/impact",
                "type": "lookup",
                "display_name": "Impact",
                "partial_field": false
            },
            "initiated_by_requests": {
                "multiple": true,
                "form_field": false,
                "lookup_entity": "change_initiated_by_request",
                "lookup_field": "name",
                "sortable": false,
                "href": "/changes/initiated_by_requests",
                "type": "lookup",
                "partial_field": false,
                "searchable": false
            },
            "priority": {
                "display_type": "Pick List",
                "lookup_entity": "priority",
                "lookup_field": "name",
                "href": "/changes/priority",
                "type": "lookup",
                "display_name": "Priority",
                "partial_field": false
            },
            "scheduled_end_time": {
                "type": "datetime",
                "display_name": "Scheduled End",
                "partial_field": false,
                "searchable": false
            },
            "reason_for_change": {
                "display_type": "Pick List",
                "lookup_entity": "reason_for_change",
                "lookup_field": "name",
                "href": "/changes/reason_for_change",
                "type": "lookup",
                "display_name": "Reason For Change",
                "partial_field": false
            },
            "udf_fields": {
                "fields": {},
                "type": "udf"
            },
            "impact_details": {
                "form_field": false,
                "lookup_entity": "change_descriptive_field",
                "lookup_field": "name",
                "href": "/changes/impact_details",
                "type": "lookup",
                "display_name": "Impact",
                "partial_field": false
            },
            "subcategory": {
                "display_type": "Pick List",
                "depends_on": [
                    "category"
                ],
                "lookup_entity": "subcategory",
                "lookup_field": "name",
                "href": "/changes/subcategory",
                "type": "lookup",
                "display_name": "Subcategory",
                "partial_field": false
            },
            "status": {
                "display_type": "Pick List",
                "depends_on": [
                    "stage"
                ],
                "lookup_entity": "change_status",
                "lookup_field": "name",
                "href": "/changes/status",
                "type": "lookup",
                "display_name": "Status",
                "partial_field": false,
                "mandatory": true
            },
            "scheduled_start_time": {
                "type": "datetime",
                "display_name": "Scheduled Start",
                "partial_field": false,
                "searchable": false
            },
            "descriptive_fields": {
                "multiple": true,
                "form_field": false,
                "lookup_entity": "change_descriptive_field",
                "lookup_field": "name",
                "sortable": false,
                "href": "/changes/descriptive_fields",
                "type": "lookup",
                "partial_field": false,
                "searchable": false
            },
            "problems": {
                "multiple": true,
                "form_field": false,
                "lookup_entity": "change_problem_association",
                "lookup_field": "name",
                "sortable": false,
                "href": "/changes/problems",
                "type": "lookup",
                "partial_field": false,
                "searchable": false
            },
            "template": {
                "display_type": "Pick List",
                "lookup_entity": "change_template",
                "lookup_field": "name",
                "href": "/changes/template",
                "type": "lookup",
                "display_name": "Template",
                "partial_field": false
            },
            "short_description": {
                "read_only": true,
                "editable": false,
                "form_field": false,
                "type": "string",
                "partial_field": true
            },
            "attachments": {
                "multiple": true,
                "form_field": false,
                "lookup_entity": "attachment",
                "lookup_field": "name",
                "sortable": false,
                "href": "/changes/attachments",
                "type": "lookup",
                "display_name": "Attachments",
                "partial_field": false,
                "searchable": false
            },
            "roles": {
                "multiple": true,
                "form_field": false,
                "lookup_entity": "change_to_change_role",
                "lookup_field": "name",
                "sortable": false,
                "href": "/changes/roles",
                "type": "lookup",
                "display_name": "Roles",
                "partial_field": false,
                "searchable": false
            },
            "downtimes": {
                "multiple": true,
                "form_field": false,
                "lookup_entity": "downtime",
                "lookup_field": "name",
                "sortable": false,
                "href": "/changes/downtimes",
                "type": "lookup",
                "display_name": "Downtime",
                "partial_field": false,
                "searchable": false
            },
            "description": {
                "sortable": false,
                "type": "html",
                "display_name": "Description",
                "partial_field": false
            },
            "title": {
                "display_type": "Single Line",
                "type": "string",
                "display_name": "Title",
                "partial_field": true,
                "mandatory": true,
                "constraints": {
                    "max_length": "250"
                }
            },
            "change_owner": {
                "lookup_entity": "technician",
                "lookup_field": "name",
                "href": "/changes/change_owner",
                "type": "lookup",
                "partial_field": false,
                "display_name": "ChangeOwner"
            },
            "next_review_on": {
                "display_type": "Date/Time",
                "type": "datetime",
                "display_name": "Next Review date",
                "partial_field": false,
                "searchable": false
            },
            "urgency": {
                "display_type": "pick_list",
                "lookup_entity": "urgency",
                "lookup_field": "name",
                "href": "/changes/urgency",
                "type": "lookup",
                "display_name": "Urgency",
                "partial_field": false
            },
            "close_details": {
                "form_field": false,
                "lookup_entity": "change_descriptive_field",
                "lookup_field": "name",
                "href": "/changes/close_details",
                "type": "lookup",
                "display_name": "Close Details",
                "partial_field": false
            },
            "summary": {
                "read_only": true,
                "form_field": false,
                "lookup_entity": "change_summary",
                "lookup_field": "name",
                "sortable": false,
                "href": "/changes/summary",
                "type": "lookup",
                "partial_field": false,
                "searchable": false
            },
            "change_manager": {
                "lookup_entity": "technician",
                "lookup_field": "name",
                "href": "/changes/change_manager",
                "type": "lookup",
                "partial_field": false,
                "display_name": "ChangeManager"
            },
            "approval_levels": {
                "editable": false,
                "multiple": true,
                "form_field": false,
                "lookup_entity": "change_approval_level",
                "lookup_field": "name",
                "sortable": false,
                "href": "/changes/approval_levels",
                "type": "lookup",
                "partial_field": false,
                "searchable": false
            },
            "retrospective": {
                "sortable": false,
                "type": "boolean",
                "display_name": "Retrospective",
                "partial_field": false
            },
            "checklist": {
                "form_field": false,
                "lookup_entity": "change_descriptive_field",
                "lookup_field": "name",
                "href": "/changes/checklist",
                "type": "lookup",
                "display_name": "Check List",
                "partial_field": false
            },
            "services": {
                "display_type": "MultiSelect",
                "multiple": true,
                "lookup_entity": "service_category",
                "lookup_field": "name",
                "href": "/changes/services",
                "type": "lookup",
                "display_name": "Services Affected",
                "partial_field": false
            },
            "back_out_plan": {
                "form_field": false,
                "lookup_entity": "change_descriptive_field",
                "lookup_field": "name",
                "href": "/changes/back_out_plan",
                "type": "lookup",
                "display_name": "Backout Plan",
                "partial_field": false
            },
            "site": {
                "display_type": "Pick List",
                "lookup_entity": "site",
                "lookup_field": "name",
                "href": "/changes/site",
                "type": "lookup",
                "display_name": "Site",
                "partial_field": false
            },
            "stage": {
                "display_type": "Pick List",
                "lookup_entity": "change_stage",
                "lookup_field": "name",
                "href": "/changes/stage",
                "type": "lookup",
                "display_name": "Stage",
                "partial_field": false,
                "mandatory": true
            },
            "completed_time": {
                "type": "datetime",
                "display_name": "Completed Time",
                "partial_field": false,
                "searchable": false
            },
            "risk": {
                "display_type": "Pick List",
                "lookup_entity": "risk",
                "lookup_field": "name",
                "href": "/changes/risk",
                "type": "lookup",
                "display_name": "Risk",
                "partial_field": false
            },
            "comment": {
                "display_type": "Multi Line",
                "sortable": false,
                "type": "string",
                "partial_field": false,
                "constraints": {
                    "max_length": "-1"
                },
                "searchable": false
            },
            "category": {
                "display_type": "Pick List",
                "lookup_entity": "category",
                "lookup_field": "name",
                "href": "/changes/category",
                "type": "lookup",
                "display_name": "Category",
                "partial_field": false
            },
            "notes_present": {
                "read_only": true,
                "form_field": false,
                "sortable": false,
                "type": "boolean",
                "partial_field": false
            }
        },
        "entity": "change"
    }
}

Meta-info For Change Edit

This operation allows you to get the metainfo of edit change operation.

Url

<service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}/metainfo

$ curl -G <service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}/metainfo\
      -X GET\ 
      -H "Accept: application/vnd.manageengine.sdp.v3+json"\
      -H "Authorization: authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"\
      -H "Content-Type: application/x-www-form-urlencoded"
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}/metainfo";
headers = {"Accept":"application/vnd.manageengine.sdp.v3+json",
           "Content-Type": "application/x-www-form-urlencoded",
           "Authorization": "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"};
response = invokeurl
[
    url: url
    type: GET
    headers: headers
];
info response;
#Powershell version - 5.1
$url = "<service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}/metainfo"
$headers = @{ "Accept" = "application/vnd.manageengine.sdp.v3+json"
    "Authorization" = "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX"
    "Content-Type" = "application/x-www-form-urlencoded"}
$response = Invoke-RestMethod -Uri $url -Method get -Headers $headers 
$response
#Python version - 3.8
#This script requires requests module installed in python.
from urllib.error import HTTPError
from urllib.parse import urlencode
from urllib.request import urlopen,Request

url = "<service domain|custom domain>/app/<portal>//api/v3/changes/{change_id}/metainfo"
headers ={"Accept": "application/vnd.manageengine.sdp.v3+json", 
          "Authorization" : "authtoken: 6FXXXXX2-0XXX-XXXX-XXXX-5XXXXXAXXXXX", 
          "Content-Type" : "application/x-www-form-urlencoded"}
httprequest = Request(url, headers=headers)
try:
    with urlopen(httprequest) as response:
        print(response.read().decode())
except HTTPError as e:
    print(e.read().decode())
{
    "response_status": {
        "status_code": 2000,
        "status": "success"
    },
    "metainfo": {
        "is_dynamic": false,
        "plural_name": "changes",
        "relationship": false,
        "fields": {
            "roll_out_plan": {
                "form_field": false,
                "lookup_entity": "change_descriptive_field",
                "lookup_field": "name",
                "href": "/changes/1/roll_out_plan",
                "type": "lookup",
                "display_name": "Roll Out Plan",
                "partial_field": false
            },
            "closure_code": {
                "display_type": "Pick List",
                "lookup_entity": "change_closure_code",
                "lookup_field": "name",
                "href": "/changes/1/closure_code",
                "type": "lookup",
                "display_name": "Closure Code",
                "partial_field": false
            },
            "sla_violation": {
                "read_only": true,
                "editable": false,
                "form_field": false,
                "sortable": false,
                "type": "boolean",
                "display_name": "SLA Violated",
                "partial_field": false
            },
            "emergency": {
                "read_only": true,
                "editable": false,
                "form_field": false,
                "sortable": false,
                "type": "boolean",
                "display_name": "Emergency",
                "partial_field": false
            },
            "change_type": {
                "display_type": "Pick List",
                "lookup_entity": "change_type",
                "lookup_field": "name",
                "href": "/changes/1/change_type",
                "type": "lookup",
                "display_name": "Change Type",
                "partial_field": false
            },
            "review_details": {
                "form_field": false,
                "lookup_entity": "change_descriptive_field",
                "lookup_field": "name",
                "href": "/changes/1/review_details",
                "type": "lookup",
                "display_name": "Review",
                "partial_field": false
            },
            "assets": {
                "display_type": "MultiSelect",
                "multiple": true,
                "lookup_entity": "ci",
                "lookup_field": "name",
                "href": "/changes/1/assets",
                "type": "lookup",
                "display_name": "Assets Involved",
                "partial_field": false
            },
            "status_comments": {
                "multiple": true,
                "form_field": false,
                "lookup_entity": "change_status_comment",
                "lookup_field": "name",
                "sortable": false,
                "href": "/changes/1/status_comments",
                "type": "lookup",
                "partial_field": false,
                "searchable": false
            },
            "initiated_requests": {
                "multiple": true,
                "form_field": false,
                "lookup_entity": "request_initiated_by_change",
                "lookup_field": "name",
                "sortable": false,
                "href": "/changes/1/initiated_requests",
                "type": "lookup",
                "partial_field": false,
                "searchable": false
            },
            "id": {
                "identifier": true,
                "read_only": true,
                "form_field": false,
                "type": "long",
                "partial_field": false
            },
            "change_requester": {
                "lookup_entity": "user",
                "lookup_field": "name",
                "href": "/changes/1/change_requester",
                "type": "lookup",
                "partial_field": false,
                "display_name": "ChangeRequester"
            },
            "group": {
                "display_type": "Pick List",
                "depends_on": [
                    "site"
                ],
                "lookup_entity": "support_group",
                "lookup_field": "name",
                "href": "/changes/1/group",
                "type": "lookup",
                "display_name": "Group",
                "partial_field": false
            },
            "created_time": {
                "default_value": {
                    "value": 1595260588478
                },
                "type": "datetime",
                "display_name": "Created Time",
                "partial_field": false,
                "searchable": false
            },
            "item": {
                "display_type": "Pick List",
                "depends_on": [
                    "subcategory"
                ],
                "lookup_entity": "item",
                "lookup_field": "name",
                "href": "/changes/1/item",
                "type": "lookup",
                "display_name": "Item",
                "partial_field": false
            },
            "workflow": {
                "display_type": "Pick List",
                "lookup_entity": "change_workflow",
                "lookup_field": "name",
                "href": "/changes/1/workflow",
                "type": "lookup",
                "display_name": "Workflow",
                "partial_field": false
            },
            "approval_status": {
                "read_only": true,
                "editable": false,
                "form_field": false,
                "lookup_entity": "approval_status",
                "lookup_field": "name",
                "href": "/changes/1/approval_status",
                "type": "lookup",
                "display_name": "Approval Status",
                "partial_field": false
            },
            "impact": {
                "display_type": "Pick List",
                "lookup_entity": "impact",
                "lookup_field": "name",
                "href": "/changes/1/impact",
                "type": "lookup",
                "display_name": "Impact",
                "partial_field": false
            },
            "initiated_by_requests": {
                "multiple": true,
                "form_field": false,
                "lookup_entity": "change_initiated_by_request",
                "lookup_field": "name",
                "sortable": false,
                "href": "/changes/1/initiated_by_requests",
                "type": "lookup",
                "partial_field": false,
                "searchable": false
            },
            "priority": {
                "display_type": "Pick List",
                "lookup_entity": "priority",
                "lookup_field": "name",
                "href": "/changes/1/priority",
                "type": "lookup",
                "display_name": "Priority",
                "partial_field": false
            },
            "scheduled_end_time": {
                "type": "datetime",
                "display_name": "Scheduled End",
                "partial_field": false,
                "searchable": false
            },
            "reason_for_change": {
                "display_type": "Pick List",
                "lookup_entity": "reason_for_change",
                "lookup_field": "name",
                "href": "/changes/1/reason_for_change",
                "type": "lookup",
                "display_name": "Reason For Change",
                "partial_field": false
            },
            "udf_fields": {
                "fields": {},
                "type": "udf"
            },
            "impact_details": {
                "form_field": false,
                "lookup_entity": "change_descriptive_field",
                "lookup_field": "name",
                "href": "/changes/1/impact_details",
                "type": "lookup",
                "display_name": "Impact",
                "partial_field": false
            },
            "subcategory": {
                "display_type": "Pick List",
                "depends_on": [
                    "category"
                ],
                "lookup_entity": "subcategory",
                "lookup_field": "name",
                "href": "/changes/1/subcategory",
                "type": "lookup",
                "display_name": "Subcategory",
                "partial_field": false
            },
            "status": {
                "display_type": "Pick List",
                "depends_on": [
                    "stage"
                ],
                "lookup_entity": "change_status",
                "lookup_field": "name",
                "href": "/changes/1/status",
                "type": "lookup",
                "display_name": "Status",
                "partial_field": false,
                "mandatory": true
            },
            "scheduled_start_time": {
                "type": "datetime",
                "display_name": "Scheduled Start",
                "partial_field": false,
                "searchable": false
            },
            "descriptive_fields": {
                "multiple": true,
                "form_field": false,
                "lookup_entity": "change_descriptive_field",
                "lookup_field": "name",
                "sortable": false,
                "href": "/changes/1/descriptive_fields",
                "type": "lookup",
                "partial_field": false,
                "searchable": false
            },
            "problems": {
                "multiple": true,
                "form_field": false,
                "lookup_entity": "change_problem_association",
                "lookup_field": "name",
                "sortable": false,
                "href": "/changes/1/problems",
                "type": "lookup",
                "partial_field": false,
                "searchable": false
            },
            "template": {
                "display_type": "Pick List",
                "lookup_entity": "change_template",
                "lookup_field": "name",
                "href": "/changes/1/template",
                "type": "lookup",
                "display_name": "Template",
                "partial_field": false
            },
            "short_description": {
                "read_only": true,
                "editable": false,
                "form_field": false,
                "type": "string",
                "partial_field": true
            },
            "attachments": {
                "multiple": true,
                "form_field": false,
                "lookup_entity": "attachment",
                "lookup_field": "name",
                "sortable": false,
                "href": "/changes/1/attachments",
                "type": "lookup",
                "display_name": "Attachments",
                "partial_field": false,
                "searchable": false
            },
            "roles": {
                "multiple": true,
                "form_field": false,
                "lookup_entity": "change_to_change_role",
                "lookup_field": "name",
                "sortable": false,
                "href": "/changes/1/roles",
                "type": "lookup",
                "display_name": "Roles",
                "partial_field": false,
                "searchable": false
            },
            "downtimes": {
                "multiple": true,
                "form_field": false,
                "lookup_entity": "downtime",
                "lookup_field": "name",
                "sortable": false,
                "href": "/changes/1/downtimes",
                "type": "lookup",
                "display_name": "Downtime",
                "partial_field": false,
                "searchable": false
            },
            "description": {
                "sortable": false,
                "type": "html",
                "display_name": "Description",
                "partial_field": false
            },
            "title": {
                "display_type": "Single Line",
                "type": "string",
                "display_name": "Title",
                "partial_field": true,
                "mandatory": true,
                "constraints": {
                    "max_length": "250"
                }
            },
            "change_owner": {
                "lookup_entity": "technician",
                "lookup_field": "name",
                "href": "/changes/1/change_owner",
                "type": "lookup",
                "partial_field": false,
                "display_name": "ChangeOwner"
            },
            "next_review_on": {
                "display_type": "Date/Time",
                "type": "datetime",
                "display_name": "Next Review date",
                "partial_field": false,
                "searchable": false
            },
            "urgency": {
                "display_type": "pick_list",
                "lookup_entity": "urgency",
                "lookup_field": "name",
                "href": "/changes/1/urgency",
                "type": "lookup",
                "display_name": "Urgency",
                "partial_field": false
            },
            "close_details": {
                "form_field": false,
                "lookup_entity": "change_descriptive_field",
                "lookup_field": "name",
                "href": "/changes/1/close_details",
                "type": "lookup",
                "display_name": "Close Details",
                "partial_field": false
            },
            "summary": {
                "read_only": true,
                "form_field": false,
                "lookup_entity": "change_summary",
                "lookup_field": "name",
                "sortable": false,
                "href": "/changes/1/summary",
                "type": "lookup",
                "partial_field": false,
                "searchable": false
            },
            "change_manager": {
                "lookup_entity": "technician",
                "lookup_field": "name",
                "href": "/changes/1/change_manager",
                "type": "lookup",
                "partial_field": false,
                "display_name": "ChangeManager"
            },
            "approval_levels": {
                "editable": false,
                "multiple": true,
                "form_field": false,
                "lookup_entity": "change_approval_level",
                "lookup_field": "name",
                "sortable": false,
                "href": "/changes/1/approval_levels",
                "type": "lookup",
                "partial_field": false,
                "searchable": false
            },
            "retrospective": {
                "sortable": false,
                "type": "boolean",
                "display_name": "Retrospective",
                "partial_field": false
            },
            "checklist": {
                "form_field": false,
                "lookup_entity": "change_descriptive_field",
                "lookup_field": "name",
                "href": "/changes/1/checklist",
                "type": "lookup",
                "display_name": "Check List",
                "partial_field": false
            },
            "services": {
                "display_type": "MultiSelect",
                "multiple": true,
                "lookup_entity": "service_category",
                "lookup_field": "name",
                "href": "/changes/1/services",
                "type": "lookup",
                "display_name": "Services Affected",
                "partial_field": false
            },
            "back_out_plan": {
                "form_field": false,
                "lookup_entity": "change_descriptive_field",
                "lookup_field": "name",
                "href": "/changes/1/back_out_plan",
                "type": "lookup",
                "display_name": "Backout Plan",
                "partial_field": false
            },
            "site": {
                "display_type": "Pick List",
                "lookup_entity": "site",
                "lookup_field": "name",
                "href": "/changes/1/site",
                "type": "lookup",
                "display_name": "Site",
                "partial_field": false
            },
            "stage": {
                "display_type": "Pick List",
                "lookup_entity": "change_stage",
                "lookup_field": "name",
                "href": "/changes/1/stage",
                "type": "lookup",
                "display_name": "Stage",
                "partial_field": false,
                "mandatory": true
            },
            "completed_time": {
                "type": "datetime",
                "display_name": "Completed Time",
                "partial_field": false,
                "searchable": false
            },
            "risk": {
                "display_type": "Pick List",
                "lookup_entity": "risk",
                "lookup_field": "name",
                "href": "/changes/1/risk",
                "type": "lookup",
                "display_name": "Risk",
                "partial_field": false
            },
            "comment": {
                "display_type": "Multi Line",
                "sortable": false,
                "type": "string",
                "partial_field": false,
                "constraints": {
                    "max_length": "-1"
                },
                "searchable": false
            },
            "category": {
                "display_type": "Pick List",
                "lookup_entity": "category",
                "lookup_field": "name",
                "href": "/changes/1/category",
                "type": "lookup",
                "display_name": "Category",
                "partial_field": false
            },
            "notes_present": {
                "read_only": true,
                "form_field": false,
                "sortable": false,
                "type": "boolean",
                "partial_field": false
            }
        },
        "entity": "change"
    }
}