{"type":"api","title":"Update sync all actions job schedule","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-2/76fd4bb9d069fd2530d7a02f0b3a4ca00eccfd35/86ecd438-8734-3f16-a735-542a35795cd3","info":{"title":"Crosswork Workflow Manager Solutions - MOP","description":"The MOP (Method of Procedure) service provides a flexible framework for orchestrating network maintenance activities through reusable workflow components.\n\nApplication type represents a specific use case with mop execution startegy and are associated with products.\n\nMOP Actions are reusable CWM workflows that perform specific tasks during maintenance operations at different stages.\n\nMOPs (MOP Profiles) are complete maintenance procedures assembled from multiple actions. MOPs provide:\n- Ordered execution of actions across maintenance stages\n- Reusability across similar maintenance scenarios\n- Consistent operational procedures\n- Integration with Crosswork maintenance activities\n\nThis service enables network operators to build, manage, and execute standardized maintenance procedures while maintaining flexibility for custom workflows and device-specific requirements.","contact":{"name":"Crosswork Team, Cisco","email":"support@cisco.com"},"license":{"name":"Cisco Software License Agreement","url":"https://www.cisco.com/public/sw-license-agreement.html"},"version":"7.2.0"},"x-parser-conf":{"overview":{"markdownPath":"reference/CWM-SOLUTIONS/mop-api.overview.md"}},"openapi":"3.0.1","servers":[{"url":"https://crosswork-ip:30603/crosswork/cwms/mop/v1"}],"securitySchemes":{"Bearer":{"type":"apiKey","description":"Type \"Bearer\" followed by a space and JWT token.","name":"Authorization","in":"header"}}},"spec":{"tags":["MOP Actions"],"summary":"Update sync all actions job schedule","description":"Update job schedule of sync all mop actions.","operationId":"updateSyncSchedule","parameters":[{"name":"X-Correlation-ID","in":"header","description":"Unique correlation id","schema":{"type":"string"}}],"requestBody":{"description":"Schedule Calendar","content":{"application/json":{"schema":{"type":"object","properties":{"cronExpr":{"type":"string","description":"A cron expression. If this is set all other fields are ignored.","format":"cron","example":"0 0 1 1 1 or @hourly/@daily/@weekly/@monthly/@yearly"},"dayOfMonth":{"type":"array","description":"List of ScheduleRange for the day of month field of a cron expression. E.g. [{start: 1, end: 5}, {start: 16, end: 31}]","items":{"type":"object","properties":{"end":{"type":"integer","description":"Ending value of the range.","example":0},"start":{"type":"integer","description":"Starting value of the range. If end is 0, this is the only value.","example":0},"step":{"type":"integer","description":"Step value for the range.","example":1}},"description":"ScheduleRange model.","$$ref":"#/components/schemas/mop.ScheduleRange"}},"dayOfWeek":{"type":"array","description":"List of ScheduleRange for the day of week field of a cron expression. E.g. [{start: 0, end: 2}, {start: 4, end: 6}]","items":{"type":"object","properties":{"end":{"type":"integer","description":"Ending value of the range.","example":0},"start":{"type":"integer","description":"Starting value of the range. If end is 0, this is the only value.","example":0},"step":{"type":"integer","description":"Step value for the range.","example":1}},"description":"ScheduleRange model.","$$ref":"#/components/schemas/mop.ScheduleRange"}},"hour":{"type":"array","description":"List of ScheduleRange for the hour field of a cron expression. E.g. [{start: 0, end: 12, step: 1}, {start: 13, end: 23, step: 2}]","items":{"type":"object","properties":{"end":{"type":"integer","description":"Ending value of the range.","example":0},"start":{"type":"integer","description":"Starting value of the range. If end is 0, this is the only value.","example":0},"step":{"type":"integer","description":"Step value for the range.","example":1}},"description":"ScheduleRange model.","$$ref":"#/components/schemas/mop.ScheduleRange"}},"minute":{"type":"array","description":"List of ScheduleRange for the minute field of a cron expression. E.g. [{start: 0, end: 29, step: 1}, {start: 30, end: 59, step: 5}]","items":{"type":"object","properties":{"end":{"type":"integer","description":"Ending value of the range.","example":0},"start":{"type":"integer","description":"Starting value of the range. If end is 0, this is the only value.","example":0},"step":{"type":"integer","description":"Step value for the range.","example":1}},"description":"ScheduleRange model.","$$ref":"#/components/schemas/mop.ScheduleRange"}},"month":{"type":"array","description":"List of ScheduleRange for the month field of a cron expression. E.g. [{start: 1, end: 3}, {start: 9, end: 12}]","items":{"type":"object","properties":{"end":{"type":"integer","description":"Ending value of the range.","example":0},"start":{"type":"integer","description":"Starting value of the range. If end is 0, this is the only value.","example":0},"step":{"type":"integer","description":"Step value for the range.","example":1}},"description":"ScheduleRange model.","$$ref":"#/components/schemas/mop.ScheduleRange"}}},"description":"ScheduleCalendar model.","$$ref":"#/components/schemas/mop.ScheduleCalendar"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status code.","example":200},"key":{"type":"string","description":"Object key."},"message":{"type":"string","description":"Message of the response.","example":"Success message"},"status":{"type":"string","description":"Status of the response.","example":"Success"}},"description":"SuccessResponse model.","$$ref":"#/components/schemas/mop.SuccessResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status code.","example":400},"message":{"type":"string","description":"Message of the response.","example":"Bad request error message"},"status":{"type":"string","description":"Status of the response.","example":"Failed"}},"description":"BadRequestResponse model.","$$ref":"#/components/schemas/mop.BadRequestResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Error message.","example":"Key not authorized: token has expired"}},"description":"FailureInfraResponse model.","$$ref":"#/components/schemas/mop.FailureInfraResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Error message.","example":"Key not authorized: token has expired"}},"description":"FailureInfraResponse model.","$$ref":"#/components/schemas/mop.FailureInfraResponse"}}}},"406":{"description":"Not Acceptable","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status code.","example":406},"message":{"type":"string","description":"Message of the response.","example":"Not acceptable error message"},"status":{"type":"string","description":"Status of the response.","example":"Failed"}},"description":"NotAcceptableResponse model.","$$ref":"#/components/schemas/mop.NotAcceptableResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP status code.","example":500},"message":{"type":"string","description":"Message of the response.","example":"Internal server error message"},"status":{"type":"string","description":"Status of the response.","example":"Failed"}},"description":"InternalErrorResponse model.","$$ref":"#/components/schemas/mop.InternalErrorResponse"}}}}},"security":[{"Bearer":[]}],"x-codegen-request-body-name":"request","__originalOperationId":"updateSyncSchedule","method":"put","path":"/scheduleSync"}}