openapi: 3.2.0 info: title: Airia Web User Avatars API version: 1.0.0 servers: - url: https://api.airia.ai tags: - name: UserAvatars paths: /v1/avatars: post: tags: - UserAvatars operationId: UserAvatars_UploadAvatar parameters: - name: x-correlation-id in: header schema: type: string requestBody: content: multipart/form-data: schema: type: object properties: file: type: - string - 'null' format: binary responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/ImageUploadResponse' 400: description: '' content: application/json: schema: type: string 401: description: '' content: application/json: schema: $ref: '#/components/schemas/ProblemDetails' 403: description: '' content: application/json: schema: $ref: '#/components/schemas/ProblemDetails' summary: User avatars upload avatar x-summary-source: derived get: tags: - UserAvatars operationId: UserAvatars_GetCurrentUserAvatar parameters: - name: x-correlation-id in: header schema: type: string responses: 200: description: '' 401: description: '' content: application/json: schema: $ref: '#/components/schemas/ProblemDetails' 404: description: '' content: application/json: schema: $ref: '#/components/schemas/ProblemDetails' 403: description: '' content: application/json: schema: $ref: '#/components/schemas/ProblemDetails' summary: User avatars get current user avatar x-summary-source: derived delete: tags: - UserAvatars operationId: UserAvatars_DeleteAvatar parameters: - name: x-correlation-id in: header schema: type: string responses: 204: description: '' 401: description: '' content: application/json: schema: $ref: '#/components/schemas/ProblemDetails' 404: description: '' content: application/json: schema: $ref: '#/components/schemas/ProblemDetails' 403: description: '' content: application/json: schema: $ref: '#/components/schemas/ProblemDetails' summary: User avatars delete avatar x-summary-source: derived /v1/avatars/user/{userId}: get: tags: - UserAvatars operationId: UserAvatars_GetUserAvatar parameters: - name: userId in: path required: true schema: type: string format: guid x-position: 1 - name: x-correlation-id in: header schema: type: string responses: 200: description: '' 401: description: '' content: application/json: schema: $ref: '#/components/schemas/ProblemDetails' 404: description: '' content: application/json: schema: $ref: '#/components/schemas/ProblemDetails' 403: description: '' content: application/json: schema: $ref: '#/components/schemas/ProblemDetails' summary: User avatars get user avatar x-summary-source: derived /v1/avatars/{id}: get: tags: - UserAvatars operationId: UserAvatars_GetAvatarById parameters: - name: id in: path required: true schema: type: string format: guid x-position: 1 - name: x-correlation-id in: header schema: type: string responses: 200: description: '' 401: description: '' content: application/json: schema: $ref: '#/components/schemas/ProblemDetails' 404: description: '' content: application/json: schema: $ref: '#/components/schemas/ProblemDetails' 403: description: '' content: application/json: schema: $ref: '#/components/schemas/ProblemDetails' summary: User avatars get avatar by id x-summary-source: derived components: schemas: ProblemDetails: type: object additionalProperties: {} properties: type: type: - string - 'null' title: type: - string - 'null' status: type: - integer - 'null' format: int32 detail: type: - string - 'null' instance: type: - string - 'null' ImageUploadResponse: type: object additionalProperties: false properties: id: type: string format: guid imageUrl: type: - string - 'null' securitySchemes: ApiKey: type: apiKey description: API Key Authentication name: X-API-Key in: header Cookies: type: apiKey description: Cookie based Authentication name: Cookie in: header x-generator: NSwag v14.7.1.0 (NJsonSchema v11.6.1.0 (Newtonsoft.Json v13.0.0.0))