--- title: Change Management API description: The Change Management API provides endpoints that enable third-party application integration with the ServiceNow Change Management process.Deletes the change request task identified by the specified sys\_ids.Deletes the change request associated with the specified sys\_id.Cancels the running conflict checking process for the specified change request \(sys\_id\).Deletes the emergency change request identified by the specified sys\_id.Deletes the normal change request identified by the specified sys\_id.Deletes the standard change request identified by the specified sys\_id.Enables retrieving available time slots by configuration item ID and duration, with an option to include planned start time.Retrieves one or more change requests based on the specified criteria.Retrieves a list of available states for the specified change request, including the current state.Enables retrieving the available time slots for a change request.Retrieves one or more tasks associated with a specified change request based on the specified criteria.Retrieves the change request identified by the specified sys\_id.Retrieves multiple configuration items \(CIs\) associated to a specified change request based on the specified association type.Retrieves the status of the currently running change request conflict checking process or the results of the last completed conflict checking process for the specified change request.Retrieves one or more emergency change requests based on the specified criteria.Retrieves the emergency change request identified by the specified sys\_id.Retrieves one or more change models based on the specified criteria.Retrieves the change model identified by the specified sys\_id.Retrieves one or more normal change requests based on the specified criteria.Retrieves the normal change request identified by the specified sys\_id.Retrieves one or more standard change requests based on the specified criteria.Retrieves the standard change request identified by the specified sys\_id.Retrieves one or more standard change templates based on the specified criteria.Retrieves the standard change template identified by the specified sys\_id.Retrieves the current status, information, and errors for the specified asynchronous worker.Updates the change request identified by the specified sys\_id with the key-value pairs in the request body or URL.Allows the current user to approve or reject a change request approval record for the specified change request.Updates the planned start and end times of a change request using the first available time slot found.Updates the change request task identified by the specified sys\_ids with the key-value pairs in the request body or the URL.Updates the emergency change request identified by the specified sys\_id with the key-value pairs in the request body or the URL.Updates the normal change request identified by the specified sys\_id with the parameters in the request body or the URL.Updates the standard change request identified by the specified sys\_id with the parameters in the request body or in the URL.Calculates the risk and impact of the specified standard change based on an evaluation of the risk conditions.Creates a change request record based on the change request. Creating multiple change requests within a single call isn’t supported.Creates the association between a change request and Configuration Management Database \(CMDB\) configuration items \(CI\).Starts a change request conflict checking process for the specified change request \(sys\_id\).Creates one emergency change request based on the default emergency change request record. Multiple emergency change request creations within a single call is not supported.Creates one normal change request based on the default normal change request record. Multiple normal change request creations within a single call is not supported.Populates the impacted services/configuration items \(CIs\) related list based on the primary CI.Creates one standard change request based on an existing standard change template as specified by the passed-in template sys\_id. Multiple standard change request creations within a single call is not supported.Creates one change request task based on the default change request task record and associates it with the specified change request. Multiple change request task creations within a single call is not supported. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/api-reference/rest-apis/change-management-api.html release: australia product: REST APIs classification: rest-apis topic_type: concept last_updated: "2026-03-12" reading_time_minutes: 204 breadcrumb: [REST API reference, API reference, API implementation and reference] --- # Change Management API The Change Management API provides endpoints that enable third-party application integration with the ServiceNow Change Management process. By integrating your application with the ServiceNow Change Management process, all change requests, regardless of where they are initiated, have a single source of truth, providing a single audit source. Use this REST API to integrate your change management process with external applications and when developing ServiceNow client-side applications. This REST API enables integrators to: - Initiate a standard change request from a published standard change request template. - Create a change request of type emergency or normal. - Update any field that exists in the change request table for any change request. - Update any field that exists in the change task table and work tasks from creation through closure/cancellation. - Retrieve a specific change request, standard template, change request task, or change model. - Retrieve multiple change requests, standard templates, change request tasks using pagination. - Perform risk evaluation. - Refresh impacted services. - Generate and process any related approval activity associated with a change request. - Identify potential scheduling conflicts and identify periods where conflicts do not exist. - Delete change requests, change request tasks, and conflict checking processes. - Create a change request record based on a change model record. - Retrieves a list of available states for the specified change request, including the current state. The Change Management API supports ITIL types and change models using Workflow Studio and Workflow. Change models deliver fit-for-purpose change. Types and models define transition criteria that must be met before the change request can progress to the next state. You can define this criteria using states, workflows, tools, and business rules. - Traditional ITIL types: Standard, Emergency, and Normal. - Change model states: New, Scheduled, Implement, Review, and Closed. You can configure additional change models within your ServiceNow instance and then create change requests based on those change models using endpoints in this API. Use the [Change Management - GET /sn\_chg\_rest/change/model/\{sys\_id\}](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-apis/change-management-api.md) and [Change Management - GET /sn\_chg\_rest/change/model](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-apis/change-management-api.md) endpoints to obtain the available change models in an instance. Then use the [Change Management - POST /sn\_chg\_rest/change](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-apis/change-management-api.md) to create a change request based on a specified change model. For information on configuring change models, see [Configure Change Management](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/it-service-management/configure-change-management.md). The following roles are required to access the Change Management endpoints: - DELETE: change\_manager or admin - GET: change\_manager, itil, sn\_change\_read, or admin - PATCH/POST: change\_manager, itil, or admin In addition, administrators can set change properties to configure Change Management behavior. For a list of these properties and a description of their available functionality, see [Change Management properties](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/it-service-management/r_ChangeManagementProperties.md). **Parent Topic:**[REST API reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-apis/api-rest.md) ## Change Management - DELETE /sn\_chg\_rest/change/\{change\_sys\_id\}/task/\{task\_sys\_id\} Deletes the change request task identified by the specified sys\_ids. ### URL format Versioned URL: `/api/sn_chg_rest/{api_version}/change/{change_sys_id}/task/{task_sys_id}` Default URL: `/api/sn_chg_rest/change/{change_sys_id}/task/{task_sys_id}` **Note:** Available versions are specified in the [REST API Explorer](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-api-explorer/use-REST-API-Explorer.md). For scripted REST APIs there is additional version information on the [Scripted REST Service form](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-api-explorer/c_CustomWebServices.md). ### Supported request parameters
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| change\_sys\_id | Sys\_id of the change request to which the task is associated. Verifies that the task is actually associated to the specified change request.Data type: String Table: Change Request \[change\_request\] |
| task\_sys\_id | Sys\_id of the change request task to delete.Data type: String Table: Change Tasks \[change\_task\] |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| name-value pairs | All fields \(key\) with their associated values for the identified change request task prior to the delete.Data type: Object |
| parent | Information for the change request to which this task was associated.Data type: Object ``` parent: { display_value: "String", value: "String" } ``` |
| parent.display\_value | Sys\_id of the parent task to display in a UI.Data type: String |
| parent.value | Sys\_id of the parent task.Data type: String |
| sys\_id | Sys\_id information for the deleted change request.Data type: Object ``` sys_id: { display_value: "String", value: "String" } ``` |
| sys\_id.display\_value | Sys\_id of the change request to display in a UI.Data type: String |
| sys\_id.value | Sys\_id of the change request.Data type: String |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| sys\_id | Sys\_id of the change request record to delete.Data type: String Table: Change Request \[change\_request\] |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| result | Change request record that was deleted. Each element in this object corresponds to a field in the record of the Change Request \[change\_request\] table.Data type: Object |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| sys\_id | Sys\_id of the change request record for which to cancel the running conflict checking process.Data type: String Table: Change Request \[change\_request\] |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| sys\_id | Sys\_id of the emergency change request to delete.Data type: String Table: Change Request \[ change\_request\] |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| name-value pairs | Values for all fields in the associated change request.Data type: Object |
| state | State of the change request prior to the delete.Data type: Object ``` state: { display_value: "String", value: "String" } ``` |
| state.display\_value | State to display in the UI.Data type: String |
| state.value | Internal state value.Data type: String |
| sys\_id | Sys\_id information for the change request.Data type: Object ``` sys_id: { display_value: "String", value: "String" } ``` |
| sys\_id.display\_value | Sys\_id of the change request to display in a UI.Data type: String |
| sys\_id.value | Sys\_id of the change request.Data type: String |
| type | Type of change request.Data type: Object ``` type: { display_value: "String", value: "String" } ``` |
| type.display\_value | Change type to display in a UI.Value is always "Emergency". Data type: String |
| type.value | Internal type value.Value is always "emergency". Data type: String |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| sys\_id | Sys\_id of the normal change request to delete.Data type: String Table: Change Request \[change\_request\] |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| name-value pairs | Values for all fields in the associated change request.Data type: Object |
| state | State of the change request prior to the delete.Data type: Object ``` state: { display_value: "String", value: "String" } ``` |
| state.display\_value | State to display in the UI.Data type: String |
| state.value | Internal state value.Data type: String |
| sys\_id | Sys\_id of the change request.Data type: String |
| type | Type of change request.Data type: Object ``` type: { display_value: "String", value: "String" } ``` |
| type.display\_value | Change type to display in the UI.Value is always "Normal". Data type: String |
| type.value | Internal type value.Value is always "normal". Data type: String |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| sys\_id | Sys\_id of the standard change request to delete.Data type: String Table: Change Request \[change\_request\] |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| name-value pairs | All fields \(key\) with their associated values for the identified change request. |
| state | State of the change request prior to the delete.Data type: Object ``` state: { display_value: "String", value: "String" } ``` |
| state.display\_value | State to display in the UI.Data type: String |
| state.value | Internal state value.Data type: String |
| sys\_id | Unique identifier of the change request. |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| cmdb\_ci\_sys\_id | Sys\_id of the configuration item record. This endpoint doesn't require a change request.Data type: String Table: Configuration Items \[cmdb\_ci\] |
| Name | Description |
|---|---|
| duration\_in\_seconds | Duration of change in seconds, that is, how much time is required to complete the change request task.Data type: Integer |
| planned\_start\_time | Optional. Date and time that the change request is planned to start implementation in UTC.Retrieve the available time slot start at or later than this time. If not provided, the system uses the current time as the start time. Format: yyyy-mm-dd hh:mm:ss Data type: String |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Status code | Description |
|---|---|
| 202 | System accepted the request. |
| 400 | Bad Request. A bad request type or malformed request was detected. Possible issues: - Can't find the cmdb\_ci with the provided sys\_id. The record either doesn't exist the or the user doesn't have read access to it. - The duration\_in\_seconds query parameter value wasn't provided. - Invalid duration\_in\_seconds or planned\_start\_time query parameter value provided. |
| Name | Description |
|---|---|
| error | Information on any errors encountered while processing the endpoint request. Data type: Object ``` "error": { "detail": "String", "message": "String", "status": "String" } ``` |
| error.detail | Additional information about the error.Data type: String |
| error.message | Message that identifies the error.Data type: String |
| messages | Message information.Data type: Object ``` "messages": { "errorMessages": [Array], "infoMessages": [Array], "warningMessages": [Array] } ``` |
| messages.errorMessages | Error messages encountered while processing the request. Data type: Array |
| messages.infoMessages | Information messages encountered while processing the request. Data type: Array |
| messages.warningMessages | Warning messages encountered while processing the request. Data type: Array |
| request | Original endpoint request.Data type: String |
| state | Information on the current state of the worker.Data type: Object ``` state: { display_value: "String", value: Number } ``` |
| state.display\_value | Display value of the state of the worker. These values directly correlate to the **state.value** parameter.Possible values: - Complete - Error - In-Progress - Waiting Data type: String |
| state.value | Numeric value of the state of the worker.Possible values: - 1 - 2 - 3 - 4 Data type: Number |
| type | Type of request.Valid value: schedule Data type: String |
| worker | Information about the associated worker.Data type: Object ``` "worker": { "link": "String", "sysId": "String" } ``` |
| worker.link | Link for retrieving time slot data. Use the sys\_id in [GET /sn\_chg\_rest/change/worker/\{sys\_id\}](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-apis/change-management-api.md) to view results.Data type: String |
| worker.sysId | Sys\_id of the worker associated with the change request.Data type: String |
| status | Only appears if an error is encountered. Status of the endpoint processing.Possible value: failure Data type: String |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| Name | Description |
|---|---|
| name-value pairs | Name-value pairs to use to filter the result set. The name is the field on which the specified value is filtered. This parameter is mutually exclusive with **sysparm\_query**. For example, instead of using `&sysparm_query=active=true`, you can simplify the calling statement by using `&active=true`. You can also use the display value when the field is a choice or reference type field, such as `&state=closed` instead of `&state=7`. To specify multiple key-value pairs, separate each with an ampersand, such as `&active=true&assigned_to=john.smith`. Data type: String |
| order | Field by which to sort the returned change requests.Data type: String Default: *name* |
| sysparm\_offset | Starting record index for which to begin retrieving records. Use this value to paginate record retrieval. This functionality enables the retrieval of all records, regardless of the number of records, in small manageable chunks. For example, the first time you call this endpoint, **sysparm\_offset** is set to "0". To simply page through all available records, use `sysparm_offset=sysparm_offset+sysparm_limit`, until you reach the end of all records. Don't pass a negative number in the **sysparm\_offset** parameter.Data type: Number Default: 0 |
| sysparm\_query |
[Encoded query](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-user-interface/c_EncodedQueryStrings.md) used to filter the result set. You can use a UI filter to obtain a properly encoded query.Syntax: `sysparm_query= |
| textSearch | String to use to search all normal change request record fields. This search uses ServiceNow full text search platform functionality. For more information on ServiceNow search capabilities, see [Search administration](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/search-administration.md).Default: `IR_AND_OR_QUERY` |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Element | Description |
|---|---|
| result | List containing one or more change request record objects. Each object describes a change request. Each element in the change request object corresponds to a field in its associated record in the Change Request \[change\_request\] table.All elements contain value and display\_value name-value pairs. Date fields also contain display\_value\_internal name-value pairs. Data type: Array |
| action\_status | Current action status of the associated change request.Possible values: - 1: Blocked internally - 2: Blocked by customer - 3: Blocked internally and by customer - 4: Needs attention Data type: Number |
| active | Flag that indicates whether the change request is active.Possible values: - true: Change request is active - false: Change request isn't active Data type: Boolean Default: true |
| activity\_due | Date and time for which the associated case is expected to be completed.Data type: String |
| additional\_assignee\_list | List of sys\_ids of additional persons assigned to work on the change request.Data type: Array |
| approval | Type of approval process required.Data type: String Default: not requested |
| approval\_history | Most recent approval history journal entry.Data type: String |
| approval\_set | Date and time that the associated action was approved.Data type: String |
| assigned\_to | Sys\_id of the user assigned to the change request.Data type: String |
| assignment\_group | Sys\_id of the group assigned to the change request.Data type: String |
| backout\_plan | Description of the plan to execute if the change must be reversed.Data type: String |
| business\_duration | Length in scheduled work hours, work days, and work weeks that it took to complete the change.Data type: String |
| business\_service | Sys\_id of the business service associated with the change request. Located in the Service \[cmdb\_ci\_service\] table.Data type: String |
| cab\_date | Date on which the Change Advisory Board \(CAB\) meets.Data type: String |
| cab\_delegate | Sys\_id of the user that can substitute for the CAB manager during a CAB meeting. Located in the User \[sys\_user\] tableData type: String |
| cab\_recommendation | Description of the CAB recommendations for the change request.Data type: String Maximum length: 4,000 |
| cab\_required | Flag that indicates whether the CAB is required.Possible values: - true: Change Advisory Board is required. - false: Change Advisory Board isn't required. Data type: Boolean Default: false |
| calendar\_duration | Not currently used by Change Management.Data type: String |
| category | Category of the change, for example hardware, network, or software.Data type: String Default: Other |
| change\_plan | Activities and roles for managing and controlling the change request.Data type: String |
| chg\_model | Sys\_id of the change model that the associated change request was based on. The Change Model defines the state flow, transitions, and process activities that must be completed for the change request.Data type: String Table: Change Model \[chg\_model\] |
| closed\_at | Date and time that the associated change request was closed.Data type: String |
| closed\_by | Sys\_id of the person that closed the change request.Data type: String Table: User \[sys\_user\] |
| close\_code | Code assigned to the change request when it was closed. For example, Successful, Successful with issues, and Unsuccessful.Data type: String |
| close\_notes | Notes that the person entered when closing the change request.Data type: String |
| cmdb\_ci | Sys\_id of the configuration item associated with the change request.Data type: String Table: Configuration Item \[cmdb\_ci\] |
| comments | List of customer-facing work notes entered in the associated change request.Data type: Array |
| comments\_and\_work\_notes | List of both internal and customer-facing work notes entered for the associated change request.Data type: Array Maximum length: 4,000 |
| company | Sys\_id of the company associated with the change request.Data type: String Table: Company \[core\_company\] |
| conflict\_last\_run | Date and time that the conflict detection script was last run on the change request.Data type: String |
| conflict\_status | Current conflict status as detected by the conflict detection script, such as Conflict and Not Run.Data type: String Maximum length: 40 Default: Not Run |
| contact\_type | Method in which the change request was initially requested.Possible values: - chat - email - phone - social - web Data type: String |
| contract | Sys\_id of the contract associated with the change request.Data type: String Table: Contract \[ast\_contract\] |
| correlation\_display | User-friendly name for the **correlation\_id**.Data type: String Maximum length: 100 |
| correlation\_id | Globally unique ID \(GUID\) of a matching change request record in a third-party system.Data type: String Maximum length: 100 |
| delivery\_plan | No longer in use. Sys\_id of the delivery plan associated with the change request.Data type: String Table: Execution Plan \[sc\_cat\_item\_delivery\_plan\] |
| delivery\_task | No longer in use. Sys\_id of the delivery task associated with the change request.Data type: String Table: Execution Plan Task \[sc\_cat\_item\_delivery\_task\] |
| description | Detailed description of the change request.Data type: String Maximum length: 4,000 |
| due\_date | Task due date. Not used by change request process.Data type: String |
| end\_date | Date and time when the change request is to be completed.Data type: String |
| escalation | Current escalation level.Possible values: - 0: Normal - 1: Moderate - 2: High - 3: Overdue Data type: Number \(Integer\) Default: 0 |
| expected\_start | Date and time when the task is to start. Not used by the change request process.Data type: String |
| follow\_up | Date and time when a user followed-up with the person requesting the change request.Data type: String |
| group\_list | List of sys\_ids and names of the groups associated with the change request.Data type: Array Maximum length: 4,000 |
| impact | Impact on the change request will have on the customer.Possible values: - 1: High - 2: Medium - 3: Low Data type: Number \(Integer\) Default: 3 |
| implementation\_plan | Sequential steps to execute to implement this change. It also contains any dependencies between steps and assignee details for each step.Data type: String Maximum length: 4,000 |
| justification | Benefits of implementing this change and the impact if this change is not implemented.Data type: String Maximum length: 4,000 |
| knowledge | Flag that indicates whether there are any knowledge base \(\)KB\) articles associated with the change request.Possible values: - true: Associated KB articles - false: No associated KB articles Data type: Boolean |
| location | Sys\_id and name of the location of the equipment referenced in the change request.Data type: String Table: Location \[cmn\_location\] |
| made\_sla | No longer used. Flag that indicates whether the change request was implemented in alignment with the associated service level agreement.Data type: Boolean |
| needs\_attention | Flag that indicates whether the change request needs attention.Possible values: - true: Change request needs additional attention. - false: Change request doesn't need additional attention. Data type: Boolean Default: false |
| number | Change number assigned to the change request by the system, such as CHG0040007.Data type: String |
| on\_hold | Flag that indicates whether the change request is currently on hold.Possible values: - true: On hold - false: Not on hold Data type: Boolean Default: false |
| on\_hold\_reason | If the **on\_hold** parameter is "true", description of the reason why the change request is being held up.Data type: String Maximum length: 4,000 |
| on\_hold\_task | If the **on\_hold** parameter is "true", list of the sys\_ids of the tasks that must be completed before the hold is released.Data type: String Maximum length: 4,000 |
| opened\_at | Date and time that the change release was created.Data type: String |
| opened\_by | Sys\_id and name of the user that created the change release.Data type: String Table: User \[sys\_user\] |
| order | Not used by Change Management. Optional numeric field by which to order records, such as when retrieving them from a database.Data type: Number \(Integer\) |
| outside\_maintenance\_schedule | Flag that indicates whether maintenance by an outside company has been schedule for the change request.Possible values: - true: Outside maintenance scheduled - false: No outside maintenance scheduled Data type: Boolean Default: false |
| parent | Sys\_id and name of the parent task to this change request, if any.Data type: String Table: Task \[task\] |
| phase | Current phase of the change request. This defines what the change is doing in greater detail.Possible values: - accept - build - plan - requested Data type: String |
| phase\_state | Change\_phase records that should be created for a change. They are dependent on the category, such that each type of change may have different change\_phase records. The change\_phase records provide an opportunity to control the approval process as each change\_phase can have a schedule and a set of approvers.Possible values: - complete - on hold - open - rejected - requested - work in progress Data type: String |
| priority | Priority of the change request.Possible values: - 1: Critical - 2: High - 3: Moderate - 4: Low Data type: Number \(Integer\) Default: 4 |
| production\_system | Flag that indicates whether the change request is for a ServiceNow instance that is in a production environment.Possible values: - true: Production environment - false: Non-production environment Data type: Boolean |
| reason | Description of why the change request was initiated.Possible values: - Business requirements - Hardware upgrade - Legislation - Location change - Network requirements - New or removed CI - Other - Problem resolved - Product or service changed - Software upgrade - User requested Data type: String Maximum length: 40 |
| reassignment\_count | Number of times that the change request has been reassigned to a new owner.Data type: Number \(Integer\) Default: 0 |
| rejection\_goto | Sys\_id of the task to perform if the change request is rejected.Data type: String Table: Task \[task\] |
| requested\_by | Sys\_id of the user that requested the change.Data type: String Table: User \[sys\_user\] |
| requested\_by\_date | Date and time when the change is requested to be implemented by.Data type: String |
| review\_comments | Comments entered when the change request was reviewed.Data type: String Maximum length: 4,000 |
| review\_date | Date that the change request was reviewed.Data type: String |
| review\_status | Current status of the requested change request review.Data type: String |
| risk | Level of risk associated with the change request.Valid values: - 1: High - 2: Moderate - 3: Low Data type: Number Default: 3 |
| risk\_impact\_analysis | Description of the risk and analysis of implementing the change request.Data type: String Maximum length: 4,000 |
| route\_reason | Not currently used by Change Management. Reason that the change request was transferred.Possible values: - 1: Transfer with Resolution - 9: Transfer without Resolutions Data type: Number |
| scope | Size of the change request.Possible values: - 1: Massive - 2: Large - 3: Medium - 4: Small - 5: Tiny Data type: Number Default: 3 |
| service\_offering | Sys\_id of the service offering associated with the change request. Service offerings uniquely define the level of service in terms of availability, scope, pricing, and packaging options.Data type: String Table: Offering \[service\_offering\] |
| short\_description | Description of the change request.Data type: String Maximum length: 40 |
| skills | List of the sys\_ids of all of the skills required to implement the change request.Data type: Array Table: Skill \[cmn\_skill\] |
| sla\_due | No longer in use. Date and time that the change request must be completed based on the associated service level agreement.Data type: String |
| sn\_esign\_document | Sys\_id of any E-signed document attached to the change request.Data type: String Table: Attachment \[sys\_attachment\] |
| sn\_esign\_esignature\_configuration | Sys\_id of the E-signed signature template used for the associated document.Data type: String Table: E-signature Template \[sn\_esign\_configuration\] |
| start\_date | Date and time that the change request is planned to start implementation.Data type: String |
| state | Current state of the change request. Possible values are defined in the change model.Data type: Number \(Integer\) Default: 1 |
| std\_change\_producer\_version | Sys\_id of the record producer and change proposal associated with the change request. It also includes the number and percentage of successful and unsuccessful change requests created from the proposal.Data type: String Table: Standard Change Template Version \[std\_change\_producer\_version\] |
| sys\_class\_name | Name of the table in which the change request is located.Data type: String |
| sys\_created\_by | Name of the user that initially created the change request.Data type: String Maximum length: 40 |
| sys\_created\_on | Date and time that the associated change request record was originally created.Data type: String |
| sys\_domain | If using domains in the instance, the name of the domain to which the change module record is associated.Data type: String |
| sys\_domain\_path | If using domains in the instance, the domain path in which the associated change module record resides.Data type: String |
| sys\_id | Unique identifier of the associated change request record.Data type: String |
| sys\_mod\_count | Number of updates to the case since it was initially created.Data type: Number \(Integer\) |
| sys\_updated\_by | Person that last updated the case.Data type: String Maximum length: 40 |
| sys\_updated\_on | Date and time when the case was last updated.Data type: String |
| task\_effective\_number | Universal request number.Data type: String Maximum length: 40 |
| task\_for | Not used by Change Management. Sys\_id of the user that the task was created for.Data type: String Table: User \[sys\_user\] |
| test\_plan | Description of the associated test plan for the change.Data type: String Maximum length: 4,000 |
| time\_worked | Total amount of time worked on the change request.Data type: String |
| type | Change request type.Possible values: - emergency - normal - standard Data type: String Maximum length: 40 |
| unauthorized | Flag that indicates whether the change request is unauthorizedPossible values: - true: Unauthorized - false: Authorized Data type: Boolean |
| universal\_request | Sys\_id of the Parent Universal request to which this change request is a part of.Data type: String Table: Task \[task\] |
| upon\_approval | Action to take if the change request is approved.Possible values: - do\_nothing - proceed Data type: String Maximum length: 40 Default: proceed |
| upon\_reject | Action to take if the change request is rejected.Possible values: - cancel - goto Data type: String Maximum length: 40 Default: cancel |
| urgency | Urgency of the change request.Possible values: - 1: High - 2: Medium - 3: Low Data type: Number \(Integer\) Default: 3 |
| user\_input | Additional user input.Data type: String Maximum length: 4,000 |
| variables | Name-value pairs of variables associated with the change request.Data type: String Maximum length: 40 |
| watch\_list | List of sys\_ids of the users who receive notifications about this change request when additional comments are added or if the state of a change request is changed to Resolved or Closed.Data type: Array Table: User \[sys\_user\] |
| wf\_activity | Sys\_id of the workflow activity record associated with the change request.Data type: String Table: Workflow Activity \[wf\_activity\] |
| work\_end | Date and time work ended on the change request.Data type: String |
| work\_notes | Information about how to resolve the change request, or steps taken to resolve it.Data type: String Maximum length: 4,000 |
| work\_notes\_list | List of sys\_ids of the internal users who receive notifications about this change request when work notes are added. Data type: Array Table: User \[sys\_user\] |
| work\_start | Date and time that work started on the change request.Data type: String |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| change\_sys\_id | Sys\_id of the change request. Data type: String Table: Change Request \[change\_request\] |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| available\_states | Values for the states that are available for the specified change request, including the current state.Data type: Array |
| state\_label | Key-value pairs that associate labels with the available states.Data type: Object |
| state\_transitions | Information on what is required to transition to each available state. Each distinct available "to state" is in its own Array with each differing set of conditions for that to state being in its own Object.Data type: Array ``` "state_transitions": [ { "automatic_transition": Boolean, "conditions": [Array], "display_value": "String", "from_state": "String", "sys_id": "String", "to_state": "String", "transition_available": Boolean } ] ``` |
| state\_transitions.automatic\_transition | Flag that indicates whether to automatically transition to this state. Valid values: - true: Change request automatically transitions to this state. - false: Change request does not automatically transition to this state. Data type: Boolean |
| state\_transitions.conditions | List of the conditions associated with the state.Data type: Array of Objects ``` "conditions": [ { "condition": {Object}, "passed": Boolean } ] ``` |
| state\_transitions.conditions.condition | Values of a specific condition.Data type: Object ``` "condition": { "description": "String", "name": "String", "sys_id": "String" } ``` |
| state\_transitions.conditions.condition.description | Description of the condition.Data type: String |
| state\_transitions.conditions.condition.name | Name of the condition.Data type: String |
| state\_transitions.conditions.condition.sys\_id | Sys\_id of the condition.Data type: String |
| state\_transitions.conditions.passed | Flag that indicates whether the change request met the associated condition. Valid values: - true: Met the condition. - false: Did not meet the condition. |
| state\_transitions.display\_value | Displayed description of the state.Data type: String |
| state\_transitions.from\_state | Value of the state that the change request is transitioning from.Data type: String |
| state\_transitions.sys\_id | Sys\_id of the transition state.Data type: String |
| state\_transitions.to\_state | Value of the state that the change request is transitioning to.Data type: String |
| state\_transitions.transition\_available | Flag that indicates whether the change request can transition from its current state to this state. Valid values: - true: Can transition to this state. - false: Cannot transition to this state. |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| change\_sys\_id | Sys\_id of the change request on which to find the next available time slot.The selected change request must have a configuration item \(cmdb\_ci\) with planned start and planned end times. Table: Change Request \[change\_request\] |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Status code | Description |
|---|---|
| 202 | System accepted the request. |
| 400 | Bad Request. A bad request type or malformed request was detected. Possible issues: - The specified change request is missing the planned start and end times. - The specified change request doesn't have an associated configuration item \(cmdb\_ci\). - User doesn't have read access to the fields of the change request. |
| 404 | Not Found. The specified record couldn't be found. Possible issues: - System can't find the change request based on information provided. - User doesn't have read access to the record. |
| Name | Description |
|---|---|
| error | Information on any errors encountered while processing the endpoint request. Data type: Object ``` "error": { "detail": "String", "message": "String", "status": "String" } ``` |
| error.detail | Additional information about the error.Data type: String |
| error.message | Message that identifies the error.Data type: String |
| messages | Message information.Data type: Object ``` "messages": { "errorMessages": [Array], "infoMessages": [Array], "warningMessages": [Array] } ``` |
| messages.errorMessages | Error messages encountered while processing the request. Data type: Array |
| messages.infoMessages | Information messages encountered while processing the request. Data type: Array |
| messages.warningMessages | Warning messages encountered while processing the request. Data type: Array |
| request | Original endpoint request.Data type: String |
| state | Information on the current state of the worker.Data type: Object ``` state: { display_value: "String", value: Number } ``` |
| state.display\_value | Display value of the state of the worker. These values directly correlate to the **state.value** parameter.Possible values: - Complete - Error - In-Progress - Waiting Data type: String |
| state.value | Numeric value of the state of the worker.Possible values: - 1 - 2 - 3 - 4 Data type: Number |
| type | Type of request.Valid value: schedule Data type: String |
| worker | Information about the associated worker.Data type: Object ``` "worker": { "link": "String", "sysId": "String" } ``` |
| worker.link | Link for retrieving time slot data. Use the sys\_id in [GET /sn\_chg\_rest/change/worker/\{sys\_id\}](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-apis/change-management-api.md) to view results.Data type: String |
| worker.sysId | Sys\_id of the worker associated with the change request.Data type: String |
| status | Only appears if an error is encountered. Status of the endpoint processing.Possible value: failure Data type: String |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| change\_sys\_id | Sys\_id of the change request whose tasks are to be retrieved.Data type: String Table: Change Request \[change\_request\] |
| Name | Description |
|---|---|
| key-value pairs | Fields to modify when creating the request. The key is the field name within the template and the value is the information to populate in the field. Fields that cannot be modified and are ignored if passed in: - Business rules - Read-only fields as defined in ACLs - Fields that do not exist Data type: String |
| order | Field by which to sort the returned change requests. Data type: String |
| sysparm\_limit | Maximum number of records to return. For requests that exceed this number of records, use the **sysparm\_offset** parameter to paginate record retrieval. Data type: Number Default: 500 |
| sysparm\_offset | Starting record index for which to begin retrieving records. Use this value to paginate record retrieval. This functionality enables the retrieval of all records, regardless of the number of records, in small manageable chunks. For example, the first time you call this endpoint, **sysparm\_offset** is set to "0". To simply page through all available records, use `sysparm_offset=sysparm_offset+sysparm_limit`, until you reach the end of all records. Don't pass a negative number in the **sysparm\_offset** parameter.Data type: Number Default: 0 |
| sysparm\_query |
[Encoded query](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-user-interface/c_EncodedQueryStrings.md) used to filter the result set. You can use a UI filter to obtain a properly encoded query.Syntax: `sysparm_query= |
| textSearch | String to use to search all change task record fields. This search uses ServiceNow full text search platform functionality and defaults to `IR_AND_OR_QUERY`.Data type: String |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| name-value pairs | All fields \(key\) with their associated values for the identified change request task prior to the delete.Data type: Object |
| parent | Information for the change request associated to the task.Data type: Object ``` parent: { display_value: "String", value: "String" } ``` |
| parent.display\_value | Change request information to display in a UI.Data type: String |
| parent.value | Sys\_id of the change request associated to the task.Data type: String |
| sys\_id | Sys\_id information for the change request task.Data type: Object ``` sys_id: { display_value: "String", value: "String" } ``` |
| sys\_id.display\_value | Sys\_id of the change request task to display in a UI.Data type: String |
| sys\_id.value | Sys\_id of the change request task.Data type: String |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| sys\_id | Sys\_id of the change request record.Data type: String Table: Change Request \[change\_request\] |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Element | Description |
|---|---|
| result | List containing one or more change request record objects. Each object describes a change request. Each element in the change request object corresponds to a field in its associated record in the Change Request \[change\_request\] table.All elements contain value and display\_value name-value pairs. Date fields also contain display\_value\_internal name-value pairs. Data type: Array |
| action\_status | Current action status of the associated change request.Possible values: - 1: Blocked internally - 2: Blocked by customer - 3: Blocked internally and by customer - 4: Needs attention Data type: Number |
| active | Flag that indicates whether the change request is active.Possible values: - true: Change request is active - false: Change request isn't active Data type: Boolean Default: true |
| activity\_due | Date and time for which the associated case is expected to be completed.Data type: String |
| additional\_assignee\_list | List of sys\_ids of additional persons assigned to work on the change request.Data type: Array |
| approval | Type of approval process required.Data type: String Default: not requested |
| approval\_history | Most recent approval history journal entry.Data type: String |
| approval\_set | Date and time that the associated action was approved.Data type: String |
| assigned\_to | Sys\_id of the user assigned to the change request.Data type: String |
| assignment\_group | Sys\_id of the group assigned to the change request.Data type: String |
| backout\_plan | Description of the plan to execute if the change must be reversed.Data type: String |
| business\_duration | Length in scheduled work hours, work days, and work weeks that it took to complete the change.Data type: String |
| business\_service | Sys\_id of the business service associated with the change request. Located in the Service \[cmdb\_ci\_service\] table.Data type: String |
| cab\_date | Date on which the Change Advisory Board \(CAB\) meets.Data type: String |
| cab\_delegate | Sys\_id of the user that can substitute for the CAB manager during a CAB meeting. Located in the User \[sys\_user\] tableData type: String |
| cab\_recommendation | Description of the CAB recommendations for the change request.Data type: String Maximum length: 4,000 |
| cab\_required | Flag that indicates whether the CAB is required.Possible values: - true: Change Advisory Board is required. - false: Change Advisory Board isn't required. Data type: Boolean Default: false |
| calendar\_duration | Not currently used by Change Management.Data type: String |
| category | Category of the change, for example hardware, network, or software.Data type: String Default: Other |
| change\_plan | Activities and roles for managing and controlling the change request.Data type: String |
| chg\_model | Sys\_id of the change model that the associated change request was based on. The Change Model defines the state flow, transitions, and process activities that must be completed for the change request.Data type: String Table: Change Model \[chg\_model\] |
| closed\_at | Date and time that the associated change request was closed.Data type: String |
| closed\_by | Sys\_id of the person that closed the change request.Data type: String Table: User \[sys\_user\] |
| close\_code | Code assigned to the change request when it was closed. For example, Successful, Successful with issues, and Unsuccessful.Data type: String |
| close\_notes | Notes that the person entered when closing the change request.Data type: String |
| cmdb\_ci | Sys\_id of the configuration item associated with the change request.Data type: String Table: Configuration Item \[cmdb\_ci\] |
| comments | List of customer-facing work notes entered in the associated change request.Data type: Array |
| comments\_and\_work\_notes | List of both internal and customer-facing work notes entered for the associated change request.Data type: Array Maximum length: 4,000 |
| company | Sys\_id of the company associated with the change request.Data type: String Table: Company \[core\_company\] |
| conflict\_last\_run | Date and time that the conflict detection script was last run on the change request.Data type: String |
| conflict\_status | Current conflict status as detected by the conflict detection script, such as Conflict and Not Run.Data type: String Maximum length: 40 Default: Not Run |
| contact\_type | Method in which the change request was initially requested.Possible values: - chat - email - phone - social - web Data type: String |
| contract | Sys\_id of the contract associated with the change request.Data type: String Table: Contract \[ast\_contract\] |
| correlation\_display | User-friendly name for the **correlation\_id**.Data type: String Maximum length: 100 |
| correlation\_id | Globally unique ID \(GUID\) of a matching change request record in a third-party system.Data type: String Maximum length: 100 |
| delivery\_plan | No longer in use. Sys\_id of the delivery plan associated with the change request.Data type: String Table: Execution Plan \[sc\_cat\_item\_delivery\_plan\] |
| delivery\_task | No longer in use. Sys\_id of the delivery task associated with the change request.Data type: String Table: Execution Plan Task \[sc\_cat\_item\_delivery\_task\] |
| description | Detailed description of the change request.Data type: String Maximum length: 4,000 |
| due\_date | Task due date. Not used by change request process.Data type: String |
| end\_date | Date and time when the change request is to be completed.Data type: String |
| escalation | Current escalation level.Possible values: - 0: Normal - 1: Moderate - 2: High - 3: Overdue Data type: Number \(Integer\) Default: 0 |
| expected\_start | Date and time when the task is to start. Not used by the change request process.Data type: String |
| follow\_up | Date and time when a user followed-up with the person requesting the change request.Data type: String |
| group\_list | List of sys\_ids and names of the groups associated with the change request.Data type: Array Maximum length: 4,000 |
| impact | Impact on the change request will have on the customer.Possible values: - 1: High - 2: Medium - 3: Low Data type: Number \(Integer\) Default: 3 |
| implementation\_plan | Sequential steps to execute to implement this change. It also contains any dependencies between steps and assignee details for each step.Data type: String Maximum length: 4,000 |
| justification | Benefits of implementing this change and the impact if this change is not implemented.Data type: String Maximum length: 4,000 |
| knowledge | Flag that indicates whether there are any knowledge base \(\)KB\) articles associated with the change request.Possible values: - true: Associated KB articles - false: No associated KB articles Data type: Boolean |
| location | Sys\_id and name of the location of the equipment referenced in the change request.Data type: String Table: Location \[cmn\_location\] |
| made\_sla | No longer used. Flag that indicates whether the change request was implemented in alignment with the associated service level agreement.Data type: Boolean |
| needs\_attention | Flag that indicates whether the change request needs attention.Possible values: - true: Change request needs additional attention. - false: Change request doesn't need additional attention. Data type: Boolean Default: false |
| number | Change number assigned to the change request by the system, such as CHG0040007.Data type: String |
| on\_hold | Flag that indicates whether the change request is currently on hold.Possible values: - true: On hold - false: Not on hold Data type: Boolean Default: false |
| on\_hold\_reason | If the **on\_hold** parameter is "true", description of the reason why the change request is being held up.Data type: String Maximum length: 4,000 |
| on\_hold\_task | If the **on\_hold** parameter is "true", list of the sys\_ids of the tasks that must be completed before the hold is released.Data type: String Maximum length: 4,000 |
| opened\_at | Date and time that the change release was created.Data type: String |
| opened\_by | Sys\_id and name of the user that created the change release.Data type: String Table: User \[sys\_user\] |
| order | Not used by Change Management. Optional numeric field by which to order records, such as when retrieving them from a database.Data type: Number \(Integer\) |
| outside\_maintenance\_schedule | Flag that indicates whether maintenance by an outside company has been schedule for the change request.Possible values: - true: Outside maintenance scheduled - false: No outside maintenance scheduled Data type: Boolean Default: false |
| parent | Sys\_id and name of the parent task to this change request, if any.Data type: String Table: Task \[task\] |
| phase | Current phase of the change request. This defines what the change is doing in greater detail.Possible values: - accept - build - plan - requested Data type: String |
| phase\_state | Change\_phase records that should be created for a change. They are dependent on the category, such that each type of change may have different change\_phase records. The change\_phase records provide an opportunity to control the approval process as each change\_phase can have a schedule and a set of approvers.Possible values: - complete - on hold - open - rejected - requested - work in progress Data type: String |
| priority | Priority of the change request.Possible values: - 1: Critical - 2: High - 3: Moderate - 4: Low Data type: Number \(Integer\) Default: 4 |
| production\_system | Flag that indicates whether the change request is for a ServiceNow instance that is in a production environment.Possible values: - true: Production environment - false: Non-production environment Data type: Boolean |
| reason | Description of why the change request was initiated.Possible values: - Business requirements - Hardware upgrade - Legislation - Location change - Network requirements - New or removed CI - Other - Problem resolved - Product or service changed - Software upgrade - User requested Data type: String Maximum length: 40 |
| reassignment\_count | Number of times that the change request has been reassigned to a new owner.Data type: Number \(Integer\) Default: 0 |
| rejection\_goto | Sys\_id of the task to perform if the change request is rejected.Data type: String Table: Task \[task\] |
| requested\_by | Sys\_id of the user that requested the change.Data type: String Table: User \[sys\_user\] |
| requested\_by\_date | Date and time when the change is requested to be implemented by.Data type: String |
| review\_comments | Comments entered when the change request was reviewed.Data type: String Maximum length: 4,000 |
| review\_date | Date that the change request was reviewed.Data type: String |
| review\_status | Current status of the requested change request review.Data type: String |
| risk | Level of risk associated with the change request.Valid values: - 1: High - 2: Moderate - 3: Low Data type: Number Default: 3 |
| risk\_impact\_analysis | Description of the risk and analysis of implementing the change request.Data type: String Maximum length: 4,000 |
| route\_reason | Not currently used by Change Management. Reason that the change request was transferred.Possible values: - 1: Transfer with Resolution - 9: Transfer without Resolutions Data type: Number |
| scope | Size of the change request.Possible values: - 1: Massive - 2: Large - 3: Medium - 4: Small - 5: Tiny Data type: Number Default: 3 |
| service\_offering | Sys\_id of the service offering associated with the change request. Service offerings uniquely define the level of service in terms of availability, scope, pricing, and packaging options.Data type: String Table: Offering \[service\_offering\] |
| short\_description | Description of the change request.Data type: String Maximum length: 40 |
| skills | List of the sys\_ids of all of the skills required to implement the change request.Data type: Array Table: Skill \[cmn\_skill\] |
| sla\_due | No longer in use. Date and time that the change request must be completed based on the associated service level agreement.Data type: String |
| sn\_esign\_document | Sys\_id of any E-signed document attached to the change request.Data type: String Table: Attachment \[sys\_attachment\] |
| sn\_esign\_esignature\_configuration | Sys\_id of the E-signed signature template used for the associated document.Data type: String Table: E-signature Template \[sn\_esign\_configuration\] |
| start\_date | Date and time that the change request is planned to start implementation.Data type: String |
| state | Current state of the change request. Possible values are defined in the change model.Data type: Number \(Integer\) Default: 1 |
| std\_change\_producer\_version | Sys\_id of the record producer and change proposal associated with the change request. It also includes the number and percentage of successful and unsuccessful change requests created from the proposal.Data type: String Table: Standard Change Template Version \[std\_change\_producer\_version\] |
| sys\_class\_name | Name of the table in which the change request is located.Data type: String |
| sys\_created\_by | Name of the user that initially created the change request.Data type: String Maximum length: 40 |
| sys\_created\_on | Date and time that the associated change request record was originally created.Data type: String |
| sys\_domain | If using domains in the instance, the name of the domain to which the change module record is associated.Data type: String |
| sys\_domain\_path | If using domains in the instance, the domain path in which the associated change module record resides.Data type: String |
| sys\_id | Unique identifier of the associated change request record.Data type: String |
| sys\_mod\_count | Number of updates to the case since it was initially created.Data type: Number \(Integer\) |
| sys\_updated\_by | Person that last updated the case.Data type: String Maximum length: 40 |
| sys\_updated\_on | Date and time when the case was last updated.Data type: String |
| task\_effective\_number | Universal request number.Data type: String Maximum length: 40 |
| task\_for | Not used by Change Management. Sys\_id of the user that the task was created for.Data type: String Table: User \[sys\_user\] |
| test\_plan | Description of the associated test plan for the change.Data type: String Maximum length: 4,000 |
| time\_worked | Total amount of time worked on the change request.Data type: String |
| type | Change request type.Possible values: - emergency - normal - standard Data type: String Maximum length: 40 |
| unauthorized | Flag that indicates whether the change request is unauthorizedPossible values: - true: Unauthorized - false: Authorized Data type: Boolean |
| universal\_request | Sys\_id of the Parent Universal request to which this change request is a part of.Data type: String Table: Task \[task\] |
| upon\_approval | Action to take if the change request is approved.Possible values: - do\_nothing - proceed Data type: String Maximum length: 40 Default: proceed |
| upon\_reject | Action to take if the change request is rejected.Possible values: - cancel - goto Data type: String Maximum length: 40 Default: cancel |
| urgency | Urgency of the change request.Possible values: - 1: High - 2: Medium - 3: Low Data type: Number \(Integer\) Default: 3 |
| user\_input | Additional user input.Data type: String Maximum length: 4,000 |
| variables | Name-value pairs of variables associated with the change request.Data type: String Maximum length: 40 |
| watch\_list | List of sys\_ids of the users who receive notifications about this change request when additional comments are added or if the state of a change request is changed to Resolved or Closed.Data type: Array Table: User \[sys\_user\] |
| wf\_activity | Sys\_id of the workflow activity record associated with the change request.Data type: String Table: Workflow Activity \[wf\_activity\] |
| work\_end | Date and time work ended on the change request.Data type: String |
| work\_notes | Information about how to resolve the change request, or steps taken to resolve it.Data type: String Maximum length: 4,000 |
| work\_notes\_list | List of sys\_ids of the internal users who receive notifications about this change request when work notes are added. Data type: Array Table: User \[sys\_user\] |
| work\_start | Date and time that work started on the change request.Data type: String |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| sys\_id | Sys\_id of the change request for which to return the associated CMDB CIs.Data type: String |
| Name | Description |
|---|---|
| association\_type | Required. Type of association between the CMDB CI and the change request. Valid values: - affected: CIs that are affected by the change request - impacted: Services impacted by the change request - offering: Impacted service offerings Data type: String |
| name-value pairs | Name-value pairs to use to filter the result set. The name is the field on which the specified value is filtered. This parameter is mutually exclusive with **sysparm\_query**. For example, instead of using `&sysparm_query=active=true`, you can simplify the calling statement by using `&active=true`. You can also use the display value when the field is a choice or reference type field, such as `&state=closed` instead of `&state=7`. To specify multiple key-value pairs, separate each with an ampersand, such as `&active=true&assigned_to=john.smith`. Data type: String |
| sysparm\_limit | Maximum number of records to return. For requests that exceed this number of records, use the **sysparm\_offset** parameter to paginate record retrieval. Data type: Number Default: 500 |
| sysparm\_offset | Starting record index for which to begin retrieving records. Use this value to paginate record retrieval. This functionality enables the retrieval of all records, regardless of the number of records, in small manageable chunks. For example, the first time you call this endpoint, **sysparm\_offset** is set to "0". To simply page through all available records, use `sysparm_offset=sysparm_offset+sysparm_limit`, until you reach the end of all records. Don't pass a negative number in the **sysparm\_offset** parameter.Data type: Number Default: 0 |
| sysparm\_query |
[Encoded query](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-user-interface/c_EncodedQueryStrings.md) used to filter the result set. You can use a UI filter to obtain a properly encoded query.Syntax: `sysparm_query= |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Status code | Description |
|---|---|
| 200 | Successful. The request was successfully processed. |
| 400 | Bad Request. A bad request type or malformed request was detected. The error response contains pertinent messages to help troubleshoot the problem. |
| 401 | Unauthorized. The user credentials are incorrect or have not been passed. |
| 500 | Internal server error. An unexpected error occurred while processing the request. The response contains additional information about the error. |
| Name | Description |
|---|---|
| ci\_item\|cmdb\_ci\_service | Either the ci\_item or cmdb\_ci\_service variables, depending upon the association type.Data type: Array ``` ci_item|cmdb_ci_service : { display_value: "String", value: "String" } ``` |
| ci\_item\|cmdb\_ci\_service.value | Sys\_id of the ci\_item or cmdb\_ci\_service.Data type: String |
| ci\_item\|cmdb\_ci\_service.display\_value | Display value of the ci\_item or cmdb\_ci\_service.Data type: String |
| sys\_id | Change request sys\_id information.Data type: Object ``` sys_id: { display_value: "String", value: "String" } ``` |
| sys\_id.value | Sys\_id of the change request.Data type: String |
| sys\_id.display\_value | Sys\_id of the change request to display in a UI.Data type: String |
| <record\_fields> | All valid fields in the ci\_item or cmdb\_ci\_service record; table based on association type.Data type: Object |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| sys\_id | Sys\_id of the change request for which to return the status of the running/completed conflict checking process.Data type: String Table: Change Request \[change\_request\] |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| conflicts | List of conflicts found for the change request. An empty object indicates that no conflicts were detected.Data type: Array |
| job\_status | Status of the actual conflict checking job.Data type: String |
| last\_run | Date and time the last conflict checking process started.Data type: String |
| record\_count | Number of records checked.Data type: String |
| status | Outcome of the conflict checking process, such as "Conflict" or "Not run". **Note:** Even if the change request does not have any conflicts, this field is set to "Conflict." However, the **conflicts** object is empty. Data type: String |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| Name | Description |
|---|---|
| order | Field by which to sort the returned change requests. Data type: String Default: *number* |
| sysparm\_limit | Maximum number of records to return. For requests that exceed this number of records, use the **sysparm\_offset** parameter to paginate record retrieval. Data type: Number Default: 500 |
| sysparm\_offset | Starting record index for which to begin retrieving records. Use this value to paginate record retrieval. This functionality enables the retrieval of all records, regardless of the number of records, in small manageable chunks. For example, the first time you call this endpoint, **sysparm\_offset** is set to "0". To simply page through all available records, use `sysparm_offset=sysparm_offset+sysparm_limit`, until you reach the end of all records. Don't pass a negative number in the **sysparm\_offset** parameter.Data type: Number Default: 0 |
| sysparm\_query |
[Encoded query](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-user-interface/c_EncodedQueryStrings.md) used to filter the result set. You can use a UI filter to obtain a properly encoded query.Syntax: `sysparm_query= |
| key-value pairs | Name-value pairs to use to filter the result set. The name is the field on which the specified value is filtered. This parameter is mutually exclusive with **sysparm\_query**. For example, instead of using `&sysparm_query=active=true`, you can simplify the calling statement by using `&active=true`. You can also use the display value when the field is a choice or reference type field, such as `&state=closed` instead of `&state=7`. To specify multiple key-value pairs, separate each with an ampersand, such as `&active=true&assigned_to=john.smith`. Data type: String |
| textSearch | String to use to search all emergency change request record fields. This search uses ServiceNow full text search platform functionality and defaults to `IR_AND_OR_QUERY`.Data type: String |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| name-value pairs | Values for all fields in the associated change request.Data type: Object |
| state | State of the change request.Data type: Object ``` state: { display_value: "String", value: "String" } ``` |
| state.display\_value | State to display in a UI.Data type: String |
| state.value | Internal state value.Data type: String |
| sys\_id | Sys\_id information for the change request.Data type: Object ``` sys_id: { display_value: "String", value: "String" } ``` |
| sys\_id.display\_value | Sys\_id of the change request to display in a UI.Data type: String |
| sys\_id.value | Sys\_id of the change request.Data type: String |
| type | Type of change request.Data type: Object ``` type: { display_value: "String", value: "String" } ``` |
| type.display\_value | Change type to display in a UI.Value is always "Emergency". Data type: String |
| type.value | Internal type value.Value is always "emergency". Data type: String |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| sys\_id | Sys\_id of the emergency change request to retrieve.Data type: String Table: Change Request \[change\_request\] |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| name-value pairs | Values for all fields in the associated change request.Data type: Object |
| state | State of the change request.Data type: Object ``` state: { display_value: "String", value: "String" } ``` |
| state.display\_value | State to display in a UI.Data type: String |
| state.value | Internal state value.Data type: String |
| sys\_id | Sys\_id information for the change request.Data type: Object ``` sys_id: { display_value: "String", value: "String" } ``` |
| sys\_id.display\_value | Sys\_id of the change request to display in a UI.Data type: String |
| sys\_id.value | Sys\_id of the change request.Data type: String |
| type | Type of change request.Data type: Object ``` type: { display_value: "String", value: "String" } ``` |
| type.display\_value | Change type to display in a UI.Value is always "Emergency". Data type: String |
| type.value | Internal type value.Value is always "emergency". Data type: String |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| Name | Description |
|---|---|
| name-value pairs | Name-value pairs to use to filter the result set. The name is the field on which the specified value is filtered. This parameter is mutually exclusive with **sysparm\_query**. For example, instead of using `&sysparm_query=active=true`, you can simplify the calling statement by using `&active=true`. You can also use the display value when the field is a choice or reference type field, such as `&state=closed` instead of `&state=7`. To specify multiple key-value pairs, separate each with an ampersand, such as `&active=true&assigned_to=john.smith`. Data type: String |
| order | Field by which to sort the returned change models.Data type: String Default: *name* |
| sysparm\_offset | Starting record index for which to begin retrieving records. Use this value to paginate record retrieval. This functionality enables the retrieval of all records, regardless of the number of records, in small manageable chunks. For example, the first time you call this endpoint, **sysparm\_offset** is set to "0". To simply page through all available records, use `sysparm_offset=sysparm_offset+sysparm_limit`, until you reach the end of all records. Don't pass a negative number in the **sysparm\_offset** parameter.Data type: Number Default: 0 |
| sysparm\_query |
[Encoded query](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-user-interface/c_EncodedQueryStrings.md) used to filter the result set. You can use a UI filter to obtain a properly encoded query.Syntax: `sysparm_query= |
| textSearch | String to use to search all change model record fields. This search uses ServiceNow full text search platform functionality. For more information on ServiceNow search capabilities, see [Search administration](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/search-administration.md).Data type: String Default: `IR_AND_OR_QUERY` |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| result | List containing one or more change model record objects. Each object describes a change model. Each element in the change model object corresponds to a field in its associated record in the Change Model \[chg\_model\] table.All elements contain value and display\_value name-value pairs. Some contain display\_value\_internal name-value pairs. Data type: Array |
| result.active | Flag that indicates whether the associated change model record is active and available within the instance.Valid values: - true: Change model is active. - false: Change model isn't active. Data type: Boolean Default: true |
| result.available\_in\_ui | Flag that indicates whether the associated change model record is available within the user interface.Valid values: - true: Change model is available in the user interface. - false: Change model isn't available in the user interface. Data type: Boolean Default: true |
| result.color | Color of the associated change model on the change request landing page.Data type: String Default: \#cbcbcb |
| result.default\_change\_model | Flag that indicates whether the associated change model record is the default change model.Valid values: - true: Default - false: Not the default Data type: Boolean Default: false |
| result.description | Short description of the purpose of the change model.Data type: String Maximum length: 4,000 |
| result.name | Name of the change model.Data type: String Maximum length: 200 |
| result.record\_preset | Name-value pairs of the fields that should automatically be populated, with their associated values, when a new change request record is created. Values are separated by caret symbols.For example: `"type=normal^assignment_group=a715cd759f2002002920bde8132e7018^short_description=Automated : Change^EQ"` Data type: String |
| result.state\_field | Choice list field from which to collect choices, based on the provided in **table\_name**. For change models, this is always set to "state".Data type: String |
| result.sys\_class\_name | Change module table name. Always Change Model/chg\_model.Data type: String |
| result.sys\_created\_by | Name of the user that initially created the associated change module record. Data type: String |
| result.sys\_created\_on | Date and time that the change module record was originally created.Data type: String |
| result.sys\_domain | If using domains in the instance, the name of the domain to which the change module record is associated.Data type: String |
| result.sys\_domain\_path | If using domains in the instance, the domain path in which the associated change module record resides.Data type: String |
| result.sys\_id | Unique identifier of the associated change model record.Data type: String |
| result.sys\_mod\_count | Number of times that the associated change model record has been modified.Data type: Number |
| result.sys\_name | Name of the change model. Always the same as the **name** parameter.Data type: String |
| result.sys\_tags | System tags associated with the change model record.Data type: String |
| result.sys\_updated\_by | Name of the user that last updated the associated change model record.Data type: String Maximum length: 40 |
| result.sys\_updated\_on | Date and time the associated change model record was last updated.Data type: String |
| result.table\_name | Table that defines the Choice list field from which to collect choices. For change models this is always set to "change\_request".Data type: String Maximum length: 80 |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| sys\_id | Sys\_id of the change model record to retrieve from the Change Model \[chg\_model\] table.Data type: String |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| result | Requested change model record object. Each element in this object corresponds to a field in the record in the Change Model \[chg\_model\] table.All elements contain **value** and **display\_value** name-value pairs. Some contain **display\_value\_internal** name-value pairs. Data type: Object |
| result.active | Flag that indicates whether the associated change model record is active and available within the instance.Valid values: - true: Change model is active. - false: Change model isn't active. Data type: Boolean Default: true |
| result.available\_in\_ui | Flag that indicates whether the associated change model record is available within the user interface.Valid values: - true: Change model is available in the user interface. - false: Change model isn't available in the user interface. Data type: Boolean Default: true |
| result.color | Color of the associated change model on the change request landing page.Data type: String Default: \#cbcbcb |
| result.default\_change\_model | Flag that indicates whether the associated change model record is the default change model.Valid values: - true: Default - false: Not the default Data type: Boolean Default: false |
| result.description | Short description of the purpose of the change model.Data type: String Maximum length: 4,000 |
| result.name | Name of the change model.Data type: String Maximum length: 200 |
| result.record\_preset | Name-value pairs of the fields that should automatically be populated, with their associated values, when a new change request record is created. Values are separated by caret symbols.For example: `"type=normal^assignment_group=a715cd759f2002002920bde8132e7018^short_description=Automated : Change^EQ"` Data type: String |
| result.state\_field | Choice list field from which to collect choices, based on the provided in **table\_name**. For change models, this is always set to "state".Data type: String |
| result.sys\_class\_name | Change module table name. Always Change Model/chg\_model.Data type: String |
| result.sys\_created\_by | Name of the user that initially created the associated change module record. Data type: String |
| result.sys\_created\_on | Date and time that the change module record was originally created.Data type: String |
| result.sys\_domain | If using domains in the instance, the name of the domain to which the change module record is associated.Data type: String |
| result.sys\_domain\_path | If using domains in the instance, the domain path in which the associated change module record resides.Data type: String |
| result.sys\_id | Unique identifier of the associated change model record.Data type: String |
| result.sys\_mod\_count | Number of times that the associated change model record has been modified.Data type: Number |
| result.sys\_name | Name of the change model. Always the same as the **name** parameter.Data type: String |
| result.sys\_tags | System tags associated with the change model record.Data type: String |
| result.sys\_updated\_by | Name of the user that last updated the associated change model record.Data type: String Maximum length: 40 |
| result.sys\_updated\_on | Date and time the associated change model record was last updated.Data type: String |
| result.table\_name | Table that defines the Choice list field from which to collect choices. For change models this is always set to "change\_request".Data type: String Maximum length: 80 |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| Name | Description |
|---|---|
| name-value pairs | Name-value pairs to use to filter the result set. The name is the field on which the specified value is filtered. This parameter is mutually exclusive with **sysparm\_query**. For example, instead of using `&sysparm_query=active=true`, you can simplify the calling statement by using `&active=true`. You can also use the display value when the field is a choice or reference type field, such as `&state=closed` instead of `&state=7`. To specify multiple key-value pairs, separate each with an ampersand, such as `&active=true&assigned_to=john.smith`. Data type: String |
| order | Field by which to sort the returned change requests. Data type: String |
| sysparm\_limit | Maximum number of records to return. For requests that exceed this number of records, use the **sysparm\_offset** parameter to paginate record retrieval. Data type: Number Default: 500 |
| sysparm\_offset | Starting record index for which to begin retrieving records. Use this value to paginate record retrieval. This functionality enables the retrieval of all records, regardless of the number of records, in small manageable chunks. For example, the first time you call this endpoint, **sysparm\_offset** is set to "0". To simply page through all available records, use `sysparm_offset=sysparm_offset+sysparm_limit`, until you reach the end of all records. Don't pass a negative number in the **sysparm\_offset** parameter.Data type: Number Default: 0 |
| sysparm\_query |
[Encoded query](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-user-interface/c_EncodedQueryStrings.md) used to filter the result set. You can use a UI filter to obtain a properly encoded query.Syntax: `sysparm_query= |
| textSearch | String to use to search all normal change request record fields. This search uses ServiceNow full text search platform functionality and defaults to `IR_AND_OR_QUERY`.Data type: String |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| name-value pairs | Values for all fields in the associated change request.Data type: Object |
| state | State of the change request prior to the delete.Data type: Object ``` state: { display_value: "String", value: "String" } ``` |
| state.display\_value | State to display in a UI.Data type: String |
| state.value | Internal state value.Data type: String |
| sys\_id | Sys\_id information for the change request.Data type: Object ``` sys_id: { display_value: "String", value: "String" } ``` |
| sys\_id.display\_value | Sys\_id of the change request to display in a UI.Data type: String |
| sys\_id.value | Sys\_id of the change request.Data type: String |
| type | Type of change request.Data type: Object ``` type: { display_value: "String", value: "String" } ``` |
| type.display\_value | Change type to display in a UI.Value is always "Normal". Data type: String |
| type.value | Internal type value.Value is always "normal". Data type: String |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| sys\_id | Sys\_id of the normal change request to retrieve.Data type: String Table: Change Request \[change\_request\] |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| name-value pairs | Values for all fields in the associated change request.Data type: Object |
| state | State of the change request prior to the delete.Data type: Object ``` state: { display_value: "String", value: "String" } ``` |
| state.display\_value | State to display in a UI.Data type: String |
| state.value | Internal state value.Data type: String |
| sys\_id | Sys\_id of the change request.Data type: String |
| type | Type of change request.Data type: Object ``` type: { display_value: "String", value: "String" } ``` |
| type.display\_value | Change type to display in a UI.Value is always "Normal". Data type: String |
| type.value | Internal type value.Value is always "normal". Data type: String |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| Name | Description |
|---|---|
| name-value pairs | Name-value pairs to use to filter the result set. The name is the field on which the specified value is filtered. This parameter is mutually exclusive with **sysparm\_query**. For example, instead of using `&sysparm_query=active=true`, you can simplify the calling statement by using `&active=true`. You can also use the display value when the field is a choice or reference type field, such as `&state=closed` instead of `&state=7`. To specify multiple key-value pairs, separate each with an ampersand, such as `&active=true&assigned_to=john.smith`. Data type: String |
| order | Field by which to sort the returned change requests. Data type: String |
| sysparm\_limit | Maximum number of records to return. For requests that exceed this number of records, use the **sysparm\_offset** parameter to paginate record retrieval. Data type: String Default: 500 |
| sysparm\_offset | Starting record index for which to begin retrieving records. Use this value to paginate record retrieval. This functionality enables the retrieval of all records, regardless of the number of records, in small manageable chunks. For example, the first time you call this endpoint, **sysparm\_offset** is set to "0". To simply page through all available records, use `sysparm_offset=sysparm_offset+sysparm_limit`, until you reach the end of all records. Don't pass a negative number in the **sysparm\_offset** parameter.Data type: Number Default: 0 |
| sysparm\_query |
[Encoded query](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-user-interface/c_EncodedQueryStrings.md) used to filter the result set. You can use a UI filter to obtain a properly encoded query.Syntax: `sysparm_query= |
| textSearch | String to use to search all standard change request record fields. This search uses ServiceNow full text search platform functionality and defaults to `IR_AND_OR_QUERY`.Data type: String |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| name-value pairs | All fields \(key\) with their associated values for the identified change request.Data type: Object |
| state | State of the change request prior to the delete.Data type: Object ``` state: { display_value: "String", value: "String" } ``` |
| state.display\_value | State to display in a UI.Data type: String |
| state.value | Internal state value.Data type: String |
| sys\_id | Sys\_id information for the change request.Data type: Object ``` sys_id: { display_value: "String", value: "String" } ``` |
| sys\_id.display\_value | Sys\_id of the change request to display in a UI.Data type: String |
| sys\_id.value | Sys\_id of the change request.Data type: String |
| type | Type of change request.Data type: Object ``` type: { display_value: "String", value: "String" } ``` |
| type.display\_value | Change type to display in a UI.Value is always "Standard". Data type: String |
| type.value | Internal type value.Value is always "standard". Data type: String |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| sys\_id | Sys\_id of the standard change request to retrieve.Data type: String Table: Change Request \[change\_request\] |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| name-value pairs | All fields \(key\) with their associated values for the identified change request.Data type: Object |
| state | State of the change request prior to the delete.Data type: Object ``` state: { display_value: "String", value: "String" } ``` |
| state.display\_value | State to display in a UI.Data type: String |
| state.value | Internal state value.Data type: String |
| sys\_id | Sys\_id information for the change request.Data type: Object ``` sys_id: { display_value: "String", value: "String" } ``` |
| sys\_id.display\_value | Sys\_id of the change request to display in a UI.Data type: String |
| sys\_id.value | Sys\_id of the change request.Data type: String |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| Name | Description |
|---|---|
| name-value pairs | Name-value pairs to use to filter the result set. The name is the field on which the specified value is filtered. This parameter is mutually exclusive with **sysparm\_query**. For example, instead of using `&sysparm_query=active=true`, you can simplify the calling statement by using `&active=true`. You can also use the display value when the field is a choice or reference type field, such as `&state=closed` instead of `&state=7`. To specify multiple key-value pairs, separate each with an ampersand, such as `&active=true&assigned_to=john.smith`. Data type: String |
| order | Field by which to sort the returned standard change templates. Data type: String Default: Number |
| sysparm\_limit | Maximum number of records to return. For requests that exceed this number of records, use the **sysparm\_offset** parameter to paginate record retrieval. Data type: Number Default: 500 |
| sysparm\_offset | Starting record index for which to begin retrieving records. Use this value to paginate record retrieval. This functionality enables the retrieval of all records, regardless of the number of records, in small manageable chunks. For example, the first time you call this endpoint, **sysparm\_offset** is set to "0". To simply page through all available records, use `sysparm_offset=sysparm_offset+sysparm_limit`, until you reach the end of all records. Don't pass a negative number in the **sysparm\_offset** parameter.Data type: Number Default: 0 |
| sysparm\_query |
[Encoded query](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-user-interface/c_EncodedQueryStrings.md) used to filter the result set. You can use a UI filter to obtain a properly encoded query.Syntax: `sysparm_query= |
| textSearch | String to use to search all standard change request record fields. This search uses ServiceNow full text search platform functionality and defaults to `IR_AND_OR_QUERY`.Data type: String |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| name-value pairs | All fields with their associated values for the identified standard change template.Data type: Object |
| sys\_id | Sys\_id information for the change request.Data type: Object ``` sys_id: { display_value: "String", value: "String" } ``` |
| sys\_id.display\_value | Sys\_id of the change request to display in a UI.Data type: String |
| sys\_id.value | Sys\_id of the change request.Data type: String |
| template | Information about the standard change template.Data type: Object ``` template: { display_value: "String", value: "String" } ``` |
| template.display\_value | Template information to display in the UI.Data type: String |
| template.value | Template sys\_id.Data type: String |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| sys\_id | Sys\_id of the standard change template to retrieve.Data type: String Table: Standard Change Template \[std\_change\_record\_producer\] |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| name-value pairs | All fields with their associated values for the identified standard change template.Data type: Object |
| sys\_id | Sys\_id of the change request.Data type: String |
| template | Information about the standard change template.Data type: Object ``` template: { display_value: "String", value: "String" } ``` |
| template.display\_value | Template information to display in a UI.Data type: String |
| template.value | Template sys\_id.Data type: String |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| sys\_id | Sys\_id of the change management asynchronous worker.Data type: String Table: Change Management Worker \[chg\_mgt\_worker\] |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| messages | Message information.Data type: Object ``` "messages": { "errorMessages": [Array], "infoMessages": [Array], "warningMessages": [Array] } ``` |
| messages.errorMessages | Error messages encountered while processing the request. For example: ``` Invalid CMDB_CI sys_id provided ``` Data type: Array |
| messages.infoMessages | Information messages encountered while processing the request. For example: ``` CMDB_CI sys_id already associated to provided. ``` Data type: Array |
| messages.warningMessages | Warning messages encountered while processing the request. For example: ``` Invalid CMDB_CI sys_id provided. ``` Data type: Array |
| payload | Unique payload provided when using a worker sys\_id from the successful response body of a scheduling endpoint.- [GET /ci/\{cmdb\_ci\_sys\_id\}/schedule](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-apis/change-management-api.md) - [GET /sn\_chg\_rest/change/\{change\_sys\_id\}/schedule](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-apis/change-management-api.md) ``` "payload": { "spans": [Array] } ``` Data type: Object |
| payload.spans | If a timespan is available within the duration provided in the schedule endpoint, the worker API lists the available time spans.``` "payload": { "spans": [ { "end": {Object}, "start": {Object} } ] } ``` Data type: Array |
| payload.spans.start | ``` "start": { "display_value": "String", "value": "String" } ``` Data type: Object |
| payload.spans.start.value | Date and time that the change request is planned to start implementation.Data type: String |
| payload.spans.start.display\_value | Displays the value of the change request start time.Time format: yyyy-mm-dd hh:mm:ss Data type: String |
| payload.spans.end | ``` "end": { "display_value": "String", "value": "String" } ``` Data type: Object |
| payload.spans.end.value | Date and time that the change request is planned for completion.Time format: yyyy-mm-dd hh:mm:ss Data type: String |
| payload.spans.end.display\_value | Displays the value of the change request completion time.Data type: String |
| request | Original endpoint request.Data type: String |
| state | Information on the current state of the worker.Data type: Object ``` state: { display_value: "String", value: Number } ``` |
| state.display\_value | Display value of the state of the worker. These values directly correlate to the **state.value** parameter.Possible values: - Complete - Error - In-Progress - Waiting Data type: String |
| state.value | Numeric value of the state of the worker.Possible values: - 1 - 2 - 3 - 4 Data type: Number |
| type | Type of association between the CMDB CI and the change request. Data type: String |
| worker | Information about the associated worker.Data type: Object ``` "worker": { "link": "String", "sysId": "String" } ``` |
| worker.link | URL to retrieve the status of the associated worker and other worker pertinent information.Data type: String |
| worker.sysId | Sys\_id of the worker associated with the change request.Data type: String |
| <other\_params> | Other parameters that are process-specific, such as **ignored\_cmdb\_ci\_sys\_ids**. |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| sys\_id | Sys\_id of the change request to modify.Data type: String Table: Change Request \[change\_request\] |
| Name | Description |
|---|---|
| name-value pairs | Name-value pairs representing the fields to update. Request body parameters override URL parameters. However, required parameters must be specified in the URL. Data type: String |
| encrypted\_fields | List of comma-separated fields to encrypt. These fields are encrypted before they are stored in the associated record. When specified, the endpoint calls the GlideRecord setDisplayValue\(\) method, instead of calling the setValue\(\) method.Because of this, you can also use this parameter to pass display values for non-encrypted fields, such as reference or choice fields, instead of passing sys\_ids or values. Data type: String |
| Name | Description |
|---|---|
| data | Name-value pairs representing the field\(s\) to update in the associated change request. For example, to update the short description file, enter a name-value pair similar to the following: `--data "{\"short_description\": \"my short desc\" }" \`. Data type: String |
| encrypted\_fields | List of comma-separated fields to encrypt. These fields are encrypted before they are stored in the associated record. When specified, the endpoint calls the GlideRecord setDisplayValue\(\) method, instead of calling the setValue\(\) method.Because of this, you can also use this parameter to pass display values for non-encrypted fields, such as reference or choice fields, instead of passing sys\_ids or values. Data type: String |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Content-Type | Data format of the request body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| result | Updated change request record. Each element in this object corresponds to a field in the record in the Change Request \[change\_request\] table.All elements contain **value** and **display\_value** name-value pairs. Some contain **display\_value\_internal** name-value pairs. Data type: Object |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| sys\_id | Sys\_id of the change request for which the approval/rejection applies.Data type: String Table: Change Request \[change\_request\] |
| Name | Description |
|---|---|
| comments | Required if **state** is `rejected`. Reason that the change was rejected.Data type: String |
| state | Required. Approval state. For example: `--data "{\"state\": \"approved\"}"` Valid values: - approved - rejected Data type: String |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Content-Type | Data format of the request body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| name-value pairs | Values for all fields in the associated change request.Data type: Object |
| state | Current state of the change request.Data type: Object ``` state: { display_value: "String", value: "String" } ``` |
| state.display\_value | State to display in a UI.Data type: String |
| state.value | Internal state value.Data type: String |
| sys\_id | Sys\_id of the change request being approved/rejected.Data type: String |
| type | Type of change request.Data type: Object ``` type: { display_value: "String", value: "String" } ``` |
| type.display\_value | Change type to display in a UI.Possible values: - Emergency - Normal - Standard Data type: String |
| type.value | Internal type value.Possible values: - emergency - normal - standard Data type: String |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| change\_sys\_id | Sys\_id of the change request on which to update with the next available time slot. The selected change request must have a configuration item \(cmdb\_ci\).Data type: String Table: Change Requests \[change\_request\] |
| Name | Description |
|---|---|
| duration\_in\_seconds | Duration of change in seconds, that is, how much time is required to complete the change request task.Data type: Integer |
| planned\_start\_time | Optional. Date and time that the change request is planned to start implementation in UTC.Retrieve the available time slot start at or later than this time. If not provided, the system uses the current time as the start time. Format: yyyy-mm-dd hh:mm:ss Data type: String |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Status code | Description |
|---|---|
| 202 | System accepted the request. |
| 400 | Bad Request. A bad request type or malformed request was detected. Possible issues: - The duration\_in\_seconds body parameter value is invalid or was not provided. - Invalid planned\_start\_time body parameter value provided. - The specified change request doesn't have an associated configuration item \(cmdb\_ci\). - User doesn't have read access to the fields of the change request. |
| 403 | Forbidden. User does not have write access to the planned start and end date values of the change request. |
| 404 | Not Found. The specified record couldn't be found. Possible issues: - System can't find the change request based on information provided. - User doesn't have read access to the record. |
| Name | Description |
|---|---|
| error | Information on any errors encountered while processing the endpoint request. Data type: Object ``` "error": { "detail": "String", "message": "String", "status": "String" } ``` |
| error.detail | Additional information about the error.Data type: String |
| error.message | Message that identifies the error.Data type: String |
| messages | Message information.Data type: Object ``` "messages": { "errorMessages": [Array], "infoMessages": [Array], "warningMessages": [Array] } ``` |
| messages.errorMessages | Error messages encountered while processing the request. Data type: Array |
| messages.infoMessages | Information messages encountered while processing the request. Data type: Array |
| messages.warningMessages | Warning messages encountered while processing the request. Data type: Array |
| request | Original endpoint request.Data type: String |
| state | Information on the current state of the worker.Data type: Object ``` state: { display_value: "String", value: Number } ``` |
| state.display\_value | Display value of the state of the worker. These values directly correlate to the **state.value** parameter.Possible values: - Complete - Error - In-Progress - Waiting Data type: String |
| state.value | Numeric value of the state of the worker.Possible values: - 1 - 2 - 3 - 4 Data type: Number |
| type | Type of request.Valid value: schedule Data type: String |
| worker | Information about the associated worker.Data type: Object ``` "worker": { "link": "String", "sysId": "String" } ``` |
| worker.link | Link for retrieving change request schedule status. Use the sys\_id in [GET /sn\_chg\_rest/change/worker/\{sys\_id\}](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-apis/change-management-api.md) to view results.Data type: String |
| worker.sysId | Sys\_id of the worker associated with the change request.Data type: String |
| status | Only appears if an error is encountered. Status of the endpoint processing.Possible value: failure Data type: String |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| change\_sys\_id | Sys\_id of the change request to which the task is associated. Verifies whether the specified task is associated with the specified change request.Data type: String Table: Change Request \[change\_request\] |
| task\_sys\_id | Sys\_id of the task to modify.Data type: String Table: Change Task \[change\_task\] |
| Name | Description |
|---|---|
| key-value pairs | Name-value pairs representing the fields to update. Request body parameters override URL parameters. However, required parameters must be specified in the URL. Data type: String |
| Name | Description |
|---|---|
| data | Name-value pairs representing the field\(s\) to update in the associated change request. For example, to update the short description file, enter a name-value pair similar to the following: `--data "{\"short_description\": \"my short desc\" }" \`. Data type: String |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Content-Type | Data format of the request body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| name-value pairs | All fields \(key\) with their associated values for the identified change request task prior to the delete.Data type: Object |
| sys\_id | Sys\_id information for the change request task.Data type: Object ``` sys_id: { display_value: "String", value: "String" } ``` |
| sys\_id.display\_value | Sys\_id of the change request task to display in a UI.Data type: String |
| sys\_id.value | Sys\_id of the change request task.Data type: String |
| parent | Unique identifier information for the change request associated to this task.Data type: Object ``` parent: { display_value: "String", value: "String" } ``` |
| parent.display\_value | Task information to display in a UI.Data type: String |
| parent.value | Sys\_id of the parent task.Data type: String |
| \_\_meta.ignoredFields | Key-value pairs that were passed in the call, but weren't applied to the change request as they either don't exist in the base record or the fields are read-only. Data type: Array |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| sys\_id | Sys\_id of the change request to modify.Data type: String Table: Change Request \[change\_request\] |
| Name | Description |
|---|---|
| name-value pairs | Name-value pairs representing the fields to update. Request body parameters override URL parameters. However, required parameters must be specified in the URL. Data type: String |
| Name | Description |
|---|---|
| data | Name-value pairs representing the field\(s\) to update in the associated change request. For example, to update the short description file, enter a name-value pair similar to the following: `--data "{\"short_description\": \"my short desc\" }" \`. Data type: String |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Content-Type | Data format of the request body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| name-value pairs | Values for all fields in the associated change request.Data type: String |
| state | Current state of the change request.Data type: Object ``` state: { display_value: "String", value: "String" } ``` |
| state.display\_value | State to display in a UI.Data type: String |
| state.value | Internal state value.Data type: String |
| sys\_id | Sys\_id of the change request.Data type: String |
| type | Type of change request.Data type: Object ``` type: { display_value: "String", value: "String" } ``` |
| type.display\_value | Change type to display in a UI.Value is always "Emergency". Data type: String |
| type.value | Internal type value.Value is always "emergency". Data type: String |
| \_\_meta.ignoredFields | Name-value pairs that were passed in the call, but were not applied to the change request as they either do not exist in the base record or the fields are read-only.Data type: Array |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| sys\_id | Sys\_id of the change request to modify.Data type: String Table: Change Request \[change\_request\] |
| Name | Description |
|---|---|
| name-value pairs | Name-value pairs representing the fields to update. Request body parameters override URL parameters. However, required parameters must be specified in the URL. Data type: String |
| Name | Description |
|---|---|
| data | Name-value pairs representing the field\(s\) to update in the associated change request. For example, to update the short description file, enter a name-value pair similar to the following: `--data "{\"short_description\": \"my short desc\" }" \`. Data type: String |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Content-Type | Data format of the request body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| name-value pairs | Values for all fields in the associated change request.Data type: Object |
| state | Current state of the change request.Data type: Object ``` state: { display_value: "String", value: "String" } ``` |
| state.display\_value | State to display in a UI.Data type: String |
| state.value | Internal state value.Data type: String |
| sys\_id | Sys\_id of the change request.Data type: String |
| type | Type of change request.Data type: Object ``` type: { display_value: "String", value: "String" } ``` |
| type.display\_value | Change type to display in a UI.Value is always "Normal". Data type: String |
| type.value | Internal type value.Value is always "normal". Data type: String |
| \_\_meta.ignoredFields | Name-value pairs that were passed in the call, but were not applied to the change request as they either do not exist in the base record or the fields are read-only.Data type: Array |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| sys\_id | Sys\_id of the change request to modify.Data type: String Table: Change Request \[change\_request\] |
| Name | Description |
|---|---|
| name-value pairs | Name-value pairs representing the fields to update. Request body parameters override URL parameters. However, required parameters must be specified in the URL. Data type: String |
| Name | Description |
|---|---|
| data | Name-value pairs representing the field\(s\) to update in the associated change request. For example, to update the short description file, enter a name-value pair similar to the following: `--data "{\"short_description\": \"my short desc\" }" \`. Data type: String |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Content-Type | Data format of the request body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| name-value pairs | All fields \(key\) with their associated values for the identified change request.Data type: Object |
| state | State of the change request.Data type: Object ``` state: { display_value: "String", value: "String" } ``` |
| state.display\_value | State to display in a UI.Data type: String |
| state.value | Internal state value.Data type: String |
| sys\_id | Sys\_id information for the change request.Data type: Object ``` sys_id: { display_value: "String", value: "String" } ``` |
| sys\_id.display\_value | Sys\_id of the change request to disply in a UI.Data type: String |
| sys\_id.value | Sys\_id of the change request.Data type: String |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| sys\_id | Sys\_id of the standard change to evaluate.Data type: String Table: Change Request \[change\_request\] |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| impact | Impact associated with the specified standard change.Data type: Object ``` impact: { display_value: "String", value: "String" } ``` |
| impact.display\_value | Impact information to display in a UI.Data type: String |
| impact.value | Internal impact value.Data type: String |
| name-value pairs | All valid fields within the standard change record.Data type: Object |
| risk | Risk calculated for the specified standard change.Data type: Object ``` risk: { display_value: "String", value: "String" } ``` |
| risk.display\_value | Risk information to display in a UI.Data type: String |
| risk.value | Internal risk value.Data type: String |
| sys\_id | Sys\_id information for the standard change request.Data type: Object ``` sys_id: { display_value: "String", value: "String" } ``` |
| sys\_id.display\_value | Sys\_id of the change request to display in a UI.Data type: String |
| sys\_id.value | Sys\_id of the change request.Data type: String |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| Name | Description |
|---|---|
| name-value pairs | Name-value pairs representing the fields to update. Request body parameters override URL parameters. However, required parameters must be specified in the URL. The same values can be set as request body parameters instead.**Note:** When creating a change request, set the change model \(**chg\_model**\) or **type**. If both **chg\_model**and **type** are set, the type is simply a categorization of the change. Not providing at least one of these values results in a default setting that is subject to change by release. It is strongly advised to set at least one of these values. Data type: String |
| chg\_model | Name of a change model listed in the Change Model \[chg\_model\] table. Provided in the following format: `chg_model=Normal`. For more information, see Change models. **Note:** Not providing either the change model \(**chg\_model**\) or **type** value results in a default setting that is subject to change by release. It is strongly advised to set at least one of these values. Data type: String |
| encrypted\_fields | List of comma-separated fields to encrypt. These fields are encrypted before they are stored in the associated record. When specified, the endpoint calls the GlideRecord setDisplayValue\(\) method, instead of calling the setValue\(\) method.Because of this, you can also use this parameter to pass display values for non-encrypted fields, such as reference or choice fields, instead of passing sys\_ids or values. Data type: String |
| type | Name of the change request type listed in the Choices \[sys\_choice\] table. If the **chg\_model** is also populated, this field is only used as a change categorization. Provided in the following format: `type=Normal`. For more information, see [Add a new change request type](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/it-service-management/t_AddNewChangeType.md). **Note:** Not providing either the change model \(**chg\_model**\) or **type** value results in a default setting that is subject to change by release. It is strongly advised to set at least one of these values. Data type: String |
| Name | Description |
|---|---|
| Object | Name-value pairs representing the field\(s\) to update in the associated change request. For example, to update the short description file, enter a name-value pair similar to the following: `--data "{\"short_description\": \"my short desc\" }" \`. The same properties can be set as query parameters instead.Data type: String |
| Object.chg\_model | Name of a change model listed in the Change Model \[chg\_model\] table. Provided as a name-value pair in the following format: `{"chg_model" : "Cloud Infrastructure"}` For more information, see Change models. **Note:** Not providing either the change model \(**chg\_model**\) or **type** value results in a default setting that is subject to change by release. It is strongly advised to set at least one of these values. Data type: String |
| Object.encrypted\_fields | List of comma-separated fields to encrypt. These fields are encrypted before they are stored in the associated record. When specified, the endpoint calls the GlideRecord setDisplayValue\(\) method, instead of calling the setValue\(\) method.Because of this, you can also use this parameter to pass display values for non-encrypted fields, such as reference or choice fields, instead of passing sys\_ids or values. Data type: String |
| Object.type | Name of the change request type listed in the Choices \[sys\_choice\] table. If the **chg\_model** is also populated, this field is only used as a change categorization. Provided as a name-value pair in the following format: `{"type" : "emergency"}` For more information, see [Add a new change request type](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/it-service-management/t_AddNewChangeType.md). **Note:** Not providing either the change model \(**chg\_model**\) or **type** value results in a default setting that is subject to change by release. It is strongly advised to set at least one of these values. Data type: String |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Content-Type | Data format of the request body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| result | New change request record. The elements of this object correspond to the record format in the Change Request \[change\_request\] table. All values that are not specified in the request are set to their defaults or are empty/null.Data type: Object |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| sys\_id | Sys\_id of the change request to associate with the CMDB CI.Data type: String |
| Name | Description |
|---|---|
| association\_type | Required. Type of association between the CMDB CI and the change request. Valid values: - affected: CIs that are affected by the change request - impacted: Services impacted by the change request - offering: Impacted service offerings Data type: String |
| cmdb\_ci\_sys\_ids | Required. List of CMDB CI sys\_ids to associate to the change request.Data type: Array or comma-separated string |
| refresh\_impacted\_services | Flag used when `association_type=affected` to populate impacted services based on the list of affected CIs.Valid values: - true: Populate impacted services based on the list of affected CIs - false: Do not automatically populate impacted services Data type: Boolean Default: false |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Content-Type | Data format of the request body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Status code | Description |
|---|---|
| 202 | Accepted. The request was accepted for processing. |
| 400 | Bad Request. A bad request type or malformed request was detected. The error response contains pertinent messages to help troubleshoot the problem. |
| 401 | Unauthorized. The user credentials are incorrect or have not been passed. |
| 404 | Not found. The requested item wasn't found. |
| 500 | Internal server error. An unexpected error occurred while processing the request. The response contains additional information about the error. |
| Name | Description |
|---|---|
| messages | Message information.Data type: Object ``` "messages": { "errorMessages": [Array], "infoMessages": [Array], "warningMessages": [Array] } ``` |
| messages.errorMessages | Error messages encountered while processing the request. For example: ``` Invalid CMDB_CI sys_id provided ``` Data type: Array |
| messages.infoMessages | Information messages encountered while processing the request. For example: ``` CMDB_CI sys_id already associated to provided. ``` Data type: Array |
| messages.warningMessages | Warning messages encountered while processing the request. For example: ``` Invalid CMDB_CI sys_id provided. ``` Data type: Array |
| request | Original endpoint request.Data type: String |
| state | Information on the current state of the worker.``` state: { display_value: "String", value: "String" } ``` |
| state.display\_value | Display value of the state of the worker. These values directly correlate to the **state.value** element.Possible values: - Complete - Error - In-Progress - Waiting Data type: String |
| state.value | Numeric value of the state of the worker.Possible values: - 1 - 2 - 3 - 4 Data type: Number |
| type | Type of association between the CMDB CI and the change request. Data type: String |
| worker | Information about the associated worker.Data type: Object ``` "worker": { "link": "String", "sysId": "String" } ``` |
| worker.link | URL to retrieve the status of the associated worker and other worker pertinent information.Data type: String |
| worker.sysId | Sys\_id of the worker associated with the change request.Data type: String |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| sys\_id | Sys\_id of the change management request for which to start the conflict checking process. For additional information on the conflict checking process, see [Conflict detection](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/it-service-management/c_ConflictDetection.md).Data type: String Table: Change Request \[change\_request\] |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| result | Sys\_id of the change request conflict checking process.Data type: String |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| Name | Description |
|---|---|
| key-value pairs | Key-value pairs of fields to modify when creating the request. The key is the field name within the template and the value is the information to populate in the field.Fields that cannot be modified and are ignored if passed in: - Business rules - Read-only fields as defined in ACLs - Fields that do not exist Data type: String |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| name-value pairs | Name-value pairs of the fields that were created in the emergency change request.Data type: Object |
| state | State of the change request prior to the delete.Data type: Object ``` state: { display_value: "String", value: "String" } ``` |
| state.display\_value | State to display in a UI. Value is always "New". Data type: String |
| state.value | Internal state value. Value is always "-5". Data type: String |
| sys\_id | Sys\_id of the newly created emergency change request.Data type: String |
| type | Type of change request.Data type: Object ``` type: { display_value: "String", value: "String" } ``` |
| type.display\_value | Change type to display in a UI.Value is always "Emergency". Data type: String |
| type.value | Internal type value.Value is always "emergency". Data type: String |
| \_\_meta.ignoredFields | Key-value pairs that were passed in the call, but weren't applied to the change request as they either don't exist in the base record or the fields are read-only. Data type: Array |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| Name | Description |
|---|---|
| key-value pairs | Fields to modify when creating the request. The key is the field name within the template and the value is the information to populate in the field.Fields that cannot be modified and are ignored if passed in: - Business rules - Read-only fields as defined in ACLs - Fields that do not exist Data type: String |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| name-value pairs | Values for all fields in the associated change request.Data type: Object |
| state | State of the newly created change request.Data type: Object ``` state: { display_value: "String", value: "String" } ``` |
| state.display\_value | State to display in a UI. Value is always "New". Data type: String |
| state.value | Internal state value. Value is always "-5". Data type: String |
| sys\_id | Sys\_id of the newly created normal change request.Data type: String |
| type | Type of change request.Data type: Object ``` type: { display_value: "String", value: "String" } ``` |
| type.display\_value | Change type to display in a UI.Value is always "Normal". Data type: String |
| type.value | Internal type value.Value is always "normal". Data type: String |
| \_\_meta.ignoredFields | Key-value pairs that were passed in the call, but weren't applied to the change request as they either don't exist in the base record or the fields are read-only. Data type: Array |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| sys\_id | Sys\_id of the change request to use to refresh the impacted services.Data type: String |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Content-Type | Data format of the request body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| messages | Message information.Data type: Object ``` "messages": { "errorMessages": [Array], "infoMessages": [Array], "warningMessages": [Array] } ``` |
| messages.errorMessages | Error messages encountered while processing the request. For example: ``` Invalid CMDB_CI sys_id provided ``` Data type: Array |
| messages.infoMessages | Information messages encountered while processing the request. For example: ``` CMDB_CI sys_id already associated to provided. ``` Data type: Array |
| messages.warningMessages | Warning messages encountered while processing the request. For example: ``` Invalid CMDB_CI sys_id provided. ``` Data type: Array |
| request | Original endpoint request.Data type: String |
| state | Information on the current state of the worker.Data type: Object ``` state: { display_value: "String", value: "String" } ``` |
| state.display\_value | Display value of the state of the worker. These values directly correlate to the **state.value** element.Possible values: - Complete - Error - In-Progress - Waiting Data type: String |
| state.value | Numeric value of the state of the worker.Possible values: - 1 - 2 - 3 - 4 Data type: Number |
| type | Type of association between the CMDB CI and the change request. Data type: String |
| worker | Information about the associated worker.Data type: Object ``` "worker": { "link": "String", "sysId": "String" } ``` |
| worker.link | URL to retrieve the status of the associated worker and other worker pertinent information.Data type: String |
| worker.sysId | Sys\_id of the worker associated with the change request.Data type: String |
| Parameter | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| standard\_change\_template\_id | Sys\_id of the standard change template on which to base the new standard change request.Data type: String Table: Standard Change Template \[std\_change\_record\_producer\] |
| Parameter | Description |
|---|---|
| name-value pairs | Fields within the specified standard change template to modify when creating the request. The key is the field name within the template and the value is the information to populate in the field.Fields that cannot be modified and are ignored if passed in: - Description - Backout plan - Test plan - Implementation plan - Read-only fields as defined in ACLs - Fields that do not exist in the specified standard change template Data type: String |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Element | Description |
|---|---|
| name-value pairs | Name-value pairs of the fields that were created in the standard change request.Data type: Object |
| sys\_id | Sys\_id information of the newly created standard change request.Data type: Object ``` sys_id: { display_value: "String", value: "String" } ``` |
| sys\_id.display\_value | Sys\_id of the standard change request to display in a UI.Data type: String |
| sys\_id.value | Sys\_id of the standard change request.Data type: String |
| \_\_meta.ignoredFields | Key-value pairs that were passed in the call, but weren't applied to the change request as they either don't exist in the base record or the fields are read-only. Data type: Array |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| change\_sys\_id | Sys\_id of the change request to which to associate this task.Data type: String Table: Change Request \[change\_request\] |
| Name | Description |
|---|---|
| key-value pairs | Fields to modify when creating the request. The key is the field name within the template and the value is the information to populate in the field. Fields that cannot be modified and are ignored if passed in: - Business rules - Read-only fields as defined in ACLs - Fields that do not exist Data type: String |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| name-value pairs | Name-value pairs of the fields that were created in the change request task.Data type: Object |
| parent | Information for the change request associated to the task.Data type: Object ``` parent: { display_value: "String", value: "String" } ``` |
| parent.display\_value | Information to display in the UI for the change request associated to the task.Data type: String |
| parent.value | Sys\_id of the change request associated to the task.Data type: String |
| sys\_id | Sys\_id information of the newly created change request task.Data type: Object ``` sys_id: { display_value: "String", value: "String" } ``` |
| sys\_id.display\_value | Sys\_id of the change request task to display in a UI.Data type: String |
| sys\_id.value | Sys\_id of the change request task.Data type: String |
| \_\_meta.ignoredFields | Key-value pairs that were passed in the call, but weren't applied to the change request as they either don't exist in the base record or the fields are read-only. Data type: Array |