{"type":"api","title":"Update an existing profiling rule","meta":{"id":"/apps/pubhub/media/dna-center-235/0e427c513038595590fc5a0593cb0e208dd78571/2192edf3-d24e-3461-ab8c-12a97b547df4","swagger":"2.0","info":{"description":"Cisco DNA Center Platform v. 2.3.5","version":"2.3.5","title":"Intent API"},"schemes":["https"],"x-parser-conf":{"expand":0,"labelConfig":{"endpoint":"summary"}}},"spec":{"operationId":"updateAnExistingProfilingRule","tags":["Policy"],"summary":"Update an existing profiling rule","description":"Updates the profiling rule for the given 'ruleId'.","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"request","description":"request","required":true,"schema":{"type":"object","properties":{"ruleId":{"type":"string"},"ruleName":{"type":"string"},"ruleType":{"type":"string","enum":["Cisco Default - Static","Cisco Default - Dynamic","Custom Rule","ML Rule"]},"ruleVersion":{"type":"integer"},"rulePriority":{"type":"integer"},"sourcePriority":{"type":"integer"},"isDeleted":{"type":"boolean"},"lastModifiedBy":{"type":"string"},"lastModifiedOn":{"type":"integer"},"pluginId":{"type":"string"},"clusterId":{"type":"string"},"rejected":{"type":"boolean"},"result":{"type":"object","properties":{"deviceType":{"type":"array","items":{"type":"string"}},"hardwareManufacturer":{"type":"array","items":{"type":"string"}},"hardwareModel":{"type":"array","items":{"type":"string"}},"operatingSystem":{"type":"array","items":{"type":"string"}}}},"conditionGroups":{"type":"object","properties":{"type":{"type":"string","enum":["attr","classification"]},"condition":{"type":"object","properties":{"attribute":{"type":"string"},"operator":{"type":"string","enum":["equals","contains","startswith","matches"]},"value":{"type":"string"},"attributeDictionary":{"type":"string"}}},"operator":{"type":"string","enum":["and","or"]},"conditionGroup":{"type":"array","items":{"type":"string"}}}},"usedAttributes":{"type":"array","items":{"type":"string"}}},"$$ref":"#/definitions/ProfilingRule"},"in":"body"},{"name":"Content-Type","description":"Request body content type","default":"application/json","required":true,"type":"string","in":"header"},{"name":"ruleId","description":"Unique rule identifier","required":true,"type":"string","in":"path"}],"responses":{"204":{"description":"Profiling rule updated successfully. No content in the response."},"400":{"description":"Invalid request. Check response body for more details."},"404":{"description":"Rule for the given 'ruleId' not found."},"500":{"description":"Internal server error. Check response body for more details."}},"__originalOperationId":"updateAnExistingProfilingRule","method":"put","path":"/dna/intent/api/v1/endpoint-analytics/profiling-rules/{ruleId}"}}