{"type":"api","title":"Clone a MopJob","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/c0404d8d-ff8e-36e9-bb59-ee336d247534","info":{"title":"Crosswork Change Automation API","version":"7.1.0","contact":{"name":"Crosswork Team, Cisco","email":"support@cisco.com"},"license":{"name":"Cisco Software License Agreement","url":"http://www.cisco.com/public/sw-license-agreement.html"},"description":"A web server dedicated to RESTful queries into the Crosswork Change Automation application."},"x-parser-conf":{"overview":{"markdownPath":"reference/CAHI/change_automation.overview.md"}},"openapi":"3.1.0","servers":[{"url":"https://{server_ip}:30603/crosswork/nca/v1","description":"Generated server url"}]},"spec":{"summary":"Clone a MopJob","operationId":"NCA_PostMopJobRerun","tags":["NCA"],"requestBody":{"description":"Argument to Clone a Mop Job Execution","required":true,"content":{"application/json":{"schema":{"type":"object","description":"Change Automation Mop Job Clone Request","properties":{"src_execution_id":{"type":"string","description":"Execution ID of the MoP job from which a new job will be created."},"src_set_id":{"type":"string","description":"Job set ID of MoP job(s) from which a new job set will be created."},"check_start_time":{"type":"string","format":"uint64","description":"Time at which pre-checks should start for the job. Default is now, i.e. as\nsoon as possible."},"exec_start_time":{"type":"string","format":"uint64","description":"Time at which the actual execution, i.e. maintenance tasks should begin.\nDefault is now, i.e. as soon as possible."},"submitter":{"type":"string","description":"The user who submitted the request."}},"$$ref":"#/components/schemas/change_automationMopJobCloneReq"},"example":{"src_execution_id":"1234-1234","src_set_id":"1234-1234-1234","check_start_time":"7812364","exec_start_time":"0","submitter":"admin"}}}},"responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"type":"object","description":"Change Automation Mop Job Create Response","properties":{"execution_id":{"type":"string","description":"A unique ID to track the MoP job created. If a device group and or series\nwas requested, this will empty."},"set_id":{"type":"string","description":"A unique ID to track the set of MoP job(s) created."},"created_at":{"type":"string","format":"uint64","description":"Time at which job got scheduled for execution."},"created_by":{"type":"string","description":"The user who created the request."}},"example":{"execution_id":"1687426280907-75acbf9b-044b-44fe-bc5f-7b9cf107b825","set_id":"5c38ecf9-c32d-4a97-bebd-08f50571ef3a","created_by":"admin"},"$$ref":"#/components/schemas/change_automationMopJobCreateResp"}}}},"400":{"description":"Bad Request. The request is malformed in some way and the server cannot process it.","content":{"application/json":{"schema":{"type":"object","description":"Change Automation Error 400","required":["code","severity","message"],"properties":{"code":{"type":"string","description":"HTTP return code","example":"400"},"severity":{"type":"string","description":"Error severity level","enum":["Critical","Warning","Fatal"]},"message":{"type":"string","description":"Error message","example":"top level error string"},"data":{"type":"string","description":"Details of the error","example":"detailed description of the error"}},"example":{"code":"400","severity":"Critical","message":"error message","data":"detailed description of the error"},"$$ref":"#/components/schemas/change_automationError400"}}}},"500":{"description":"Internal Server Error. The server could not fulfill the request.","content":{"application/json":{"schema":{"type":"object","description":"Change Automation Error 500","required":["code","severity","message"],"properties":{"code":{"type":"string","description":"HTTP return code","example":"500"},"severity":{"type":"string","description":"Error severity level","enum":["Critical","Warning","Fatal"]},"message":{"type":"string","description":"Error message","example":"top level error string"},"data":{"type":"string","description":"Error detailed description"}},"example":{"code":"500","severity":"Critical","message":"error message","data":"Server Error. detailed description of the error"},"$$ref":"#/components/schemas/change_automationError500"}}}}},"method":"post","path":"/mopjobs/clone"}}