Insights & updates from our experts
Set Manager of New Change with API
A minor feature has been added to the REST API for changes. This API now allows the manager of the change to be set when a new change is created. In the past, the API user would always become the manager of the change, which mimics the behavior of the user interface when a change manager opens a new change.
By making it possible to select a different manager for a new change, the API now provides some extra flexibility that developers will surely appreciate. Hereās an example of a CURL command for creating a new change for a manager whose person record in Xurrent has the ID 558:
curl -u āapi-token:xā -X POST -H āX-4meAccount: wna-itā -d ā{āsubjectā:āServer Upgradeā, āsourceā:āAPIā ācategoryā:āstandardā, āchange_typeā:āinfrastructure_changeā, ājustificationā:ācorrectionā, āserviceā:ā17230ā³, ātemplate_idā:ā20362ā³, āstart_atā:ā2018-10-06T03:00:00Zā, āmanagerā:ā558ā³}ā āhttps://api.4me.com/v1/changesā
If a manager is not specified, the manager of the new change will still automatically be set to the API user.













.webp)
.webp)













