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.