openapi: 3.2.0 info: title: Partner Service Status Controller API license: name: Apache 2.0 url: https://upgrad.com version: '1' servers: - url: https://partner.upgrad.com description: Generated server url security: - AUTH-TOKEN: [] tags: - name: status-controller paths: /user/{userId}/partner/stage/{type}: put: tags: - status-controller operationId: updatePartnerStage parameters: - name: userId in: path required: true schema: type: integer format: int64 - name: type in: path required: true schema: type: string requestBody: content: multipart/form-data: schema: type: object properties: request: $ref: '#/components/schemas/UpdatePartnerStageRequestDto' file: type: string format: binary responses: '500': description: Internal Server Error content: '*/*': schema: $ref: '#/components/schemas/ErrorContext' '400': description: Bad Request content: '*/*': schema: $ref: '#/components/schemas/ErrorContext' '409': description: Conflict content: '*/*': schema: $ref: '#/components/schemas/ErrorContext' '405': description: Method Not Allowed content: '*/*': schema: $ref: '#/components/schemas/ErrorContext' '503': description: Service Unavailable content: '*/*': schema: $ref: '#/components/schemas/ErrorContext' '404': description: Not Found content: '*/*': schema: $ref: '#/components/schemas/ErrorContext' '403': description: Forbidden content: '*/*': schema: $ref: '#/components/schemas/ErrorContext' '429': description: Too Many Requests content: '*/*': schema: $ref: '#/components/schemas/ErrorContext' '200': description: OK summary: Update partner stage x-summary-source: derived /save-status: post: tags: - status-controller operationId: saveStatusData requestBody: content: application/json: schema: $ref: '#/components/schemas/StatusDto' required: true responses: '500': description: Internal Server Error content: '*/*': schema: $ref: '#/components/schemas/ErrorContext' '400': description: Bad Request content: '*/*': schema: $ref: '#/components/schemas/ErrorContext' '409': description: Conflict content: '*/*': schema: $ref: '#/components/schemas/ErrorContext' '405': description: Method Not Allowed content: '*/*': schema: $ref: '#/components/schemas/ErrorContext' '503': description: Service Unavailable content: '*/*': schema: $ref: '#/components/schemas/ErrorContext' '404': description: Not Found content: '*/*': schema: $ref: '#/components/schemas/ErrorContext' '403': description: Forbidden content: '*/*': schema: $ref: '#/components/schemas/ErrorContext' '429': description: Too Many Requests content: '*/*': schema: $ref: '#/components/schemas/ErrorContext' '200': description: OK content: '*/*': schema: type: string summary: Save status data x-summary-source: derived /partner-status: get: tags: - status-controller operationId: fetchLabelsByStatusTypes parameters: - name: partnerStatus in: query required: false schema: type: boolean - name: bvgStatus in: query required: false schema: type: boolean - name: agreementStatus in: query required: false schema: type: boolean responses: '500': description: Internal Server Error content: '*/*': schema: $ref: '#/components/schemas/ErrorContext' '400': description: Bad Request content: '*/*': schema: $ref: '#/components/schemas/ErrorContext' '409': description: Conflict content: '*/*': schema: $ref: '#/components/schemas/ErrorContext' '405': description: Method Not Allowed content: '*/*': schema: $ref: '#/components/schemas/ErrorContext' '503': description: Service Unavailable content: '*/*': schema: $ref: '#/components/schemas/ErrorContext' '404': description: Not Found content: '*/*': schema: $ref: '#/components/schemas/ErrorContext' '403': description: Forbidden content: '*/*': schema: $ref: '#/components/schemas/ErrorContext' '429': description: Too Many Requests content: '*/*': schema: $ref: '#/components/schemas/ErrorContext' '200': description: OK content: '*/*': schema: type: object additionalProperties: type: array items: $ref: '#/components/schemas/StatusDto' summary: Fetch labels by status types x-summary-source: derived components: schemas: StatusDto: type: object properties: label: type: string id: type: integer format: int64 type: type: string UpdatePartnerStageRequestDto: type: object properties: id: type: integer format: int64 statusId: type: integer format: int64 startDate: type: string format: date endDate: type: string format: date signDate: type: string format: date ErrorContext: type: object properties: errorCode: type: string messages: type: array items: type: string data: type: object additionalProperties: type: object securitySchemes: AUTH-TOKEN: type: apiKey name: AUTH-TOKEN in: header