Skip to main content
Version: main

Patch configuration item

Partially update a CI's attributes.

HTTP request

PATCH /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}").Patch(ctx, body, nil)
if err != nil {
log.Fatal(err)
}
Was this page helpful?