{"type":"api","title":"Create","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/86ecd438-8734-3f16-a735-542a35795cd3","info":{"title":"Crosswork Workflow Manager Solutions - MOP","description":"MOP component enables users to assemble pre and post checks based on the use case, known as mop profiles, and attach to device upgrade/smu upg activities such as fleet-upgrade.\nMOP also supports CRUD operations on MOP profiles and includes filters for browsing created MOPs.","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.1.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":["Application Group"],"summary":"Create","description":"Create an application group.","operationId":"createAppGrp","parameters":[{"name":"X-Correlation-ID","in":"header","description":"Unique correlation id","schema":{"type":"string"}}],"requestBody":{"description":"Application Group","content":{"application/json":{"schema":{"required":["app","stages"],"type":"object","properties":{"app":{"maxLength":64,"type":"string","description":"Name of the application group.","example":"Fleet Upgrade"},"stages":{"minItems":1,"type":"array","description":"Stages of the application group.","items":{"required":["orderIndex","stage"],"type":"object","properties":{"orderIndex":{"minimum":1,"type":"integer","description":"Ordering index of the stage.","example":1},"stage":{"maxLength":64,"type":"string","description":"Name of the stage.","example":"pre"}},"description":"Application group stage model.","$$ref":"#/components/schemas/ApgStage"}}},"description":"Application group model.","$$ref":"#/components/schemas/AppGroup"}}},"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/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/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/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/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/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/InternalErrorResponse"}}}}},"security":[{"Bearer":[]}],"x-codegen-request-body-name":"request","__originalOperationId":"createAppGrp","method":"post","path":"/appGrps"}}