Skip to main content
Version: main

Update configuration item

Replace a CI's attributes.

HTTP request​

PUT /api/now/v1/cmdb/instance/{className}/{sys_id}

Path parameters​

NameDescription
classNameClass name
sys_idSys_id

Query parameters​

None.

Request body​

Supply a cmdbinstanceapi.CmdbInstance.

Response​

An item envelope of the updated CmdbInstance.

Example​

// Build the request body
var body cmdbinstanceapi.CmdbInstance
response, err := client.Now().Cmdb().Instance().ByClass("cmdb_ci_linux_server").ByID("{sysID}").Put(ctx, body, nil)
if err != nil {
log.Fatal(err)
}
Was this page helpful?