{"type":"api","title":"Application Policy Intent","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":"applicationPolicyIntent","tags":["Application Policy"],"summary":"Application Policy Intent","description":"Create/Update/Delete application policy","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"request","description":"request","required":true,"schema":{"type":"object","properties":{"createList":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"deletePolicyStatus":{"type":"string","enum":["NONE","DELETED","RESTORED"]},"policyScope":{"type":"string"},"priority":{"type":"string"},"advancedPolicyScope":{"type":"object","properties":{"name":{"type":"string"},"advancedPolicyScopeElement":{"type":"array","items":{"type":"object","properties":{"groupId":{"type":"array","items":{"type":"string"}},"ssid":{"type":"array","items":{"type":"string"}}}}}}},"exclusiveContract":{"type":"object","properties":{"clause":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["BUSINESS_RELEVANCE","APPLICATION_POLICY_KNOBS"]},"relevanceLevel":{"type":"string","enum":["BUSINESS_RELEVANT","BUSINESS_IRRELEVANT","DEFAULT"]},"deviceRemovalBehavior":{"type":"string","enum":["DELETE","RESTORE","IGNORE"]},"hostTrackingEnabled":{"type":"boolean"}}}}}},"contract":{"type":"object","properties":{"idRef":{"type":"string"}}},"producer":{"type":"object","properties":{"scalableGroup":{"type":"array","items":{"type":"object","properties":{"idRef":{"type":"string"}}}}}},"consumer":{"type":"object","properties":{"scalableGroup":{"type":"array","items":{"type":"object","properties":{"idRef":{"type":"string"}}}}}}}}},"updateList":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"deletePolicyStatus":{"type":"string","enum":["NONE","DELETED","RESTORED"]},"policyScope":{"type":"string"},"priority":{"type":"string"},"advancedPolicyScope":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"advancedPolicyScopeElement":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"groupId":{"type":"array","items":{"type":"string"}},"ssid":{"type":"array","items":{"type":"string"}}}}}}},"exclusiveContract":{"type":"object","properties":{"id":{"type":"string"},"clause":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["BUSINESS_RELEVANCE","APPLICATION_POLICY_KNOBS"]},"relevanceLevel":{"type":"string","enum":["BUSINESS_RELEVANT","BUSINESS_IRRELEVANT","DEFAULT"]},"deviceRemovalBehavior":{"type":"string","enum":["DELETE","RESTORE","IGNORE"]},"hostTrackingEnabled":{"type":"boolean"}}}}}},"contract":{"type":"object","properties":{"idRef":{"type":"string"}}},"producer":{"type":"object","properties":{"id":{"type":"string"},"scalableGroup":{"type":"array","items":{"type":"object","properties":{"idRef":{"type":"string"}}}}}},"consumer":{"type":"object","properties":{"id":{"type":"string"},"scalableGroup":{"type":"array","items":{"type":"object","properties":{"idRef":{"type":"string"}}}}}}}}},"deleteList":{"type":"array","items":{"type":"string"}}},"$$ref":"#/definitions/ApplicationPolicyIntentRequest"},"in":"body"},{"name":"Content-Type","description":"content-type","default":"application/json","required":true,"type":"string","in":"header"}],"responses":{"200":{"description":"The request was successful. The result is contained in the response body.","schema":{"type":"object","properties":{"response":{"type":"object","properties":{"taskId":{"type":"string"},"url":{"type":"string"}}},"version":{"type":"string"}},"$$ref":"#/definitions/ApplicationPolicyIntentResponse"}},"202":{"description":"The request was accepted for processing, but the processing has not been completed."},"400":{"description":"The client made a request that the server could not understand (for example, the request syntax is incorrect)."},"401":{"description":"The client's authentication credentials included with the request are missing or invalid."},"404":{"description":"The client made a request for a resource that does not exist."},"500":{"description":"The server could not fulfill the request."}},"__originalOperationId":"applicationPolicyIntent","method":"post","path":"/dna/intent/api/v1/app-policy-intent"}}