openapi: 3.2.0 info: title: Partner Service Partner Document 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: partner-document-controller paths: /user/{userId}/verify/document: post: tags: - partner-document-controller operationId: verifyDocument parameters: - name: userId in: path required: true schema: type: integer format: int64 requestBody: content: application/json: schema: $ref: '#/components/schemas/DocumentVerifyRequest' 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: $ref: '#/components/schemas/DMSUploadResponse' summary: Verify document x-summary-source: derived /user/{userId}/partner/document: post: tags: - partner-document-controller operationId: uploadPartnerDocument parameters: - name: userId in: path required: true schema: type: integer format: int64 - name: files in: query required: false schema: type: array items: type: string format: binary - name: coPartner in: query required: false schema: type: string - name: attributes in: query required: false schema: type: string - name: updateDetails in: query required: false schema: type: string 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: $ref: '#/components/schemas/DocumentResponse' summary: Upload partner document x-summary-source: derived /user/{userId}/partner/documents: get: tags: - partner-document-controller operationId: getPartnerDocuments parameters: - name: userId in: path required: true schema: type: integer format: int64 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/DocumentResponse' summary: Get partner documents x-summary-source: derived /user/{userId}/partner/co-partner/{partnerCoOwnerId}: delete: tags: - partner-document-controller operationId: deleteCoOwner parameters: - name: partnerCoOwnerId in: path required: true schema: type: integer format: int64 - name: userId in: path required: true schema: type: integer format: int64 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: Delete co owner x-summary-source: derived components: schemas: CoPartnerDto: type: object properties: id: type: integer format: int64 name: type: string mobile: type: string type: type: string DMSUploadResponse: type: object properties: id: type: string DocumentDto: type: object properties: docAttributes: type: object additionalProperties: type: string documentConfigCode: type: string status: type: integer format: int64 dmsUploadId: type: string statusLabel: type: string comments: type: string fileLabel: type: string documentUrl: type: string DocumentResponse: type: object properties: coPartner: $ref: '#/components/schemas/CoPartnerDto' documents: type: array items: $ref: '#/components/schemas/DocumentDto' status: type: string ErrorContext: type: object properties: errorCode: type: string messages: type: array items: type: string data: type: object additionalProperties: type: object DocumentVerifyRequest: type: object properties: userUploadEventId: type: string verified: type: boolean comments: type: string securitySchemes: AUTH-TOKEN: type: apiKey name: AUTH-TOKEN in: header