openapi: 3.2.0 info: version: V1 title: Orion Connect Portfolio/Goals API x-swagger-net-version: 8.4.12.001 servers: - url: https://api.orionadvisor.com/api tags: - name: Portfolio/Goals paths: /v1/Portfolio/Goals: get: tags: - Portfolio/Goals summary: Update a goal operationId: Goal_GetAllAsync responses: '200': description: OK content: text/plain: schema: items: $ref: '#/components/schemas/OAS.WebApi.DTO.Portfolio.GoalDto' xml: name: GoalDto wrapped: true type: array application/json: schema: items: $ref: '#/components/schemas/OAS.WebApi.DTO.Portfolio.GoalDto' xml: name: GoalDto wrapped: true type: array text/json: schema: items: $ref: '#/components/schemas/OAS.WebApi.DTO.Portfolio.GoalDto' xml: name: GoalDto wrapped: true type: array application/xml: schema: items: $ref: '#/components/schemas/OAS.WebApi.DTO.Portfolio.GoalDto' xml: name: GoalDto wrapped: true type: array text/xml: schema: items: $ref: '#/components/schemas/OAS.WebApi.DTO.Portfolio.GoalDto' xml: name: GoalDto wrapped: true type: array multipart/form-data: schema: items: $ref: '#/components/schemas/OAS.WebApi.DTO.Portfolio.GoalDto' xml: name: GoalDto wrapped: true type: array security: - Authorization: [] post: tags: - Portfolio/Goals summary: Create new goal operationId: Goal_CreateGoalAsync parameters: - name: cancellationToken in: header required: true responses: '200': description: OK content: text/plain: schema: type: object application/json: schema: type: object text/json: schema: type: object multipart/form-data: schema: type: object security: - Authorization: [] requestBody: content: text/plain: schema: $ref: '#/components/schemas/OAS.WebApi.DTO.Portfolio.GoalDto' application/json: schema: $ref: '#/components/schemas/OAS.WebApi.DTO.Portfolio.GoalDto' text/json: schema: $ref: '#/components/schemas/OAS.WebApi.DTO.Portfolio.GoalDto' application/xml: schema: $ref: '#/components/schemas/OAS.WebApi.DTO.Portfolio.GoalDto' text/xml: schema: $ref: '#/components/schemas/OAS.WebApi.DTO.Portfolio.GoalDto' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/OAS.WebApi.DTO.Portfolio.GoalDto' multipart/form-data: schema: $ref: '#/components/schemas/OAS.WebApi.DTO.Portfolio.GoalDto' required: true /v1/Portfolio/Goals/{key}: get: tags: - Portfolio/Goals summary: Find goal by id operationId: Goal_FindAsync parameters: - name: key in: path required: true schema: type: integer format: int32 responses: '200': description: OK content: text/plain: schema: $ref: '#/components/schemas/OAS.WebApi.DTO.Portfolio.GoalDto' application/json: schema: $ref: '#/components/schemas/OAS.WebApi.DTO.Portfolio.GoalDto' text/json: schema: $ref: '#/components/schemas/OAS.WebApi.DTO.Portfolio.GoalDto' application/xml: schema: $ref: '#/components/schemas/OAS.WebApi.DTO.Portfolio.GoalDto' text/xml: schema: $ref: '#/components/schemas/OAS.WebApi.DTO.Portfolio.GoalDto' multipart/form-data: schema: $ref: '#/components/schemas/OAS.WebApi.DTO.Portfolio.GoalDto' security: - Authorization: [] put: tags: - Portfolio/Goals summary: Update an existing goal operationId: Goal_UpdateGoalAsync parameters: - name: cancellationToken in: header required: true - name: key in: path required: true schema: type: string responses: '200': description: OK content: text/plain: schema: $ref: '#/components/schemas/OAS.WebApi.DTO.Portfolio.GoalDto' application/json: schema: $ref: '#/components/schemas/OAS.WebApi.DTO.Portfolio.GoalDto' text/json: schema: $ref: '#/components/schemas/OAS.WebApi.DTO.Portfolio.GoalDto' application/xml: schema: $ref: '#/components/schemas/OAS.WebApi.DTO.Portfolio.GoalDto' text/xml: schema: $ref: '#/components/schemas/OAS.WebApi.DTO.Portfolio.GoalDto' multipart/form-data: schema: $ref: '#/components/schemas/OAS.WebApi.DTO.Portfolio.GoalDto' security: - Authorization: [] requestBody: content: text/plain: schema: $ref: '#/components/schemas/OAS.WebApi.DTO.Portfolio.GoalDto' application/json: schema: $ref: '#/components/schemas/OAS.WebApi.DTO.Portfolio.GoalDto' text/json: schema: $ref: '#/components/schemas/OAS.WebApi.DTO.Portfolio.GoalDto' application/xml: schema: $ref: '#/components/schemas/OAS.WebApi.DTO.Portfolio.GoalDto' text/xml: schema: $ref: '#/components/schemas/OAS.WebApi.DTO.Portfolio.GoalDto' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/OAS.WebApi.DTO.Portfolio.GoalDto' multipart/form-data: schema: $ref: '#/components/schemas/OAS.WebApi.DTO.Portfolio.GoalDto' required: true delete: tags: - Portfolio/Goals summary: Delete goal by id operationId: Goal_DeleteGoalAsync parameters: - name: key in: path required: true schema: type: integer format: int32 - name: cancellationToken in: header required: true responses: '204': description: No Content security: - Authorization: [] /v1/Portfolio/Goals/Types: get: tags: - Portfolio/Goals summary: Return goal types operationId: Goal_GetGoalTypesAsync responses: '200': description: OK content: text/plain: schema: items: $ref: '#/components/schemas/OAS.DataModel.Portfolio.GoalType' xml: name: GoalType wrapped: true type: array application/json: schema: items: $ref: '#/components/schemas/OAS.DataModel.Portfolio.GoalType' xml: name: GoalType wrapped: true type: array text/json: schema: items: $ref: '#/components/schemas/OAS.DataModel.Portfolio.GoalType' xml: name: GoalType wrapped: true type: array multipart/form-data: schema: items: $ref: '#/components/schemas/OAS.DataModel.Portfolio.GoalType' xml: name: GoalType wrapped: true type: array security: - Authorization: [] components: schemas: OAS.DataModel.Portfolio.GoalType: properties: id: readOnly: true type: integer format: int32 goalName: type: string xml: name: GoalType type: object OAS.WebApi.DTO.Portfolio.GoalDto: required: - name - value - startDate properties: id: type: integer format: int32 name: type: string value: type: number format: double startDate: type: string format: date-time endDate: type: string format: date-time timeFrame: type: string enum: - Monthly - Quarterly - Annually xml: name: GoalDto type: object securitySchemes: Authorization: type: apiKey description: 'JWT Authorization header using the Session scheme. Example: "Authorization: Session {token}"' name: Authorization in: header