{"type":"api","title":"Task Create","meta":{"id":"/apps/pubhub/media/sd-wan-api-20-16/58fb893fa751949ea20a40274e9ab219a20e19fa/e77267b5-7b4b-3f93-807c-c6d1c6b41343","info":{"title":"Cisco Catalyst SD-WAN Manager API","description":"The vManage API exposes the functionality of operations maintaining devices and the overlay network","contact":{"email":"vmanage@cisco.com"},"license":{"name":"Commercial License","url":"https://www.cisco.com/c/en/us/solutions/enterprise-networks/sd-wan/index.html"},"version":"2.0.0"},"openapi":"3.0.1","servers":[{"url":"/dataservice"}]},"spec":{"tags":["Troubleshooting Tools - Network Wide Path Insight"],"description":"Task Action - Create","operationId":"taskCreate","requestBody":{"content":{"application/json":{"schema":{"type":"object"},"examples":{"Create Trace Start Task with empty Duration":{"description":"Create Trace Start Task with empty Duration","value":{"taskName":"auto-on","events":["sla-violation","qos-congestion"],"sites":["100","500"],"duration":""}},"Create Trace Start Task with Duration":{"description":"Create Trace Start Task with Duration","value":{"taskName":"auto-on","events":["sla-violation","qos-congestion"],"sites":["100","500"],"duration":"1440"}},"Create Trace Start Task without Duration":{"description":"Create Trace Start Task without Duration","value":{"taskName":"auto-on","events":["sla-violation","qos-congestion"],"sites":["100","500"]}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string"},"entry_time":{"type":"integer","format":"int32"},"expire-time":{"type":"integer","format":"int32"},"sites":{"type":"array","items":{"type":"string"}},"state":{"type":"string"},"taskId":{"type":"integer","format":"int32"},"taskName":{"type":"string"}},"description":"Auto on task create schema for POST response","$$ref":"#/components/schemas/TasksCreateResponsePayload"},"examples":{"Create task response":{"description":"Create task response","value":{"action":"success","sites":["100","500"],"taskId":3,"taskName":"auto_on","entry_time":1716795211822,"expire-time":1716881611822,"state":"active"}}}}}},"400":{"description":"Bad Request"},"403":{"description":"Forbidden"},"500":{"description":"Internal Server Error"}},"x-roles-required":"Device Monitoring-write","__originalOperationId":"taskCreate","method":"post","path":"/stream/device/nwpi/tasks/create"}}