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.