openapi: 3.2.0 info: title: WorkBoard External Public Datastream API description: This is the API documentation for WorkBoard's version 1 REST API. version: 1.0.0 servers: - url: https://demo.biz.wobo-int.com/wb/apis description: Demo Server tags: - name: Data Stream description: WorkBoard's help center documentation on Datastreams. paths: /stream: get: summary: Get the details of datastreams to which the authenticated user has access description: '' tags: - Data Stream responses: '200': description: Success content: application/json: schema: type: object properties: success: type: boolean readOnly: true message: type: string readOnly: true data: type: object readOnly: true properties: totalCount: type: integer stream: type: array items: type: object properties: stream_id: type: string stream_private_key: type: string stream_name: type: string stream_frequency: type: string stream_category: type: string stream_data_type: type: string stream_description: type: string stream_active: type: string stream_connector_id: type: - string - 'null' stream_data_last_updated: type: - string - 'null' stream_last_data_value: type: - string - 'null' '400': description: Unauthorized / Invalid content: application/json: schema: properties: success: type: boolean description: 'false' error: type: string error_description: type: string example: success: false error: '' error_description: '' security: - bearerAuth: [] operationId: getStream x-operation-id-source: derived post: summary: Create a datastream description: '' tags: - Data Stream requestBody: content: application/json: schema: properties: stream_name: type: string stream_description: type: string stream_data_type: type: string enum: - numbers - percentage - currency stream_frequency: type: string enum: - daily - weekly - monthly - quarterly stream_category: type: string stream_permission: type: array items: type: object properties: id: description: The `user_id`, `team_id` or `org_id` respective to the type. type: string type: type: string enum: - user - team - org responses: '200': description: Success content: application/json: schema: type: object properties: success: type: boolean readOnly: true message: type: string readOnly: true data: type: object readOnly: true properties: totalCount: type: integer stream: type: object properties: stream_id: type: string stream_private_key: type: string stream_name: type: string stream_frequency: type: string stream_category: type: string stream_data_type: type: string stream_description: type: string stream_active: type: string stream_connector_id: type: - string - 'null' stream_data_last_updated: type: - string - 'null' stream_last_data_value: type: - string - 'null' '400': description: Unauthorized / Invalid content: application/json: schema: properties: success: type: boolean description: 'false' error: type: string error_description: type: string example: success: false error: '' error_description: '' security: - bearerAuth: [] operationId: postStream x-operation-id-source: derived /stream/{stream_id}: post: summary: Update the value(s) in your datastream description: '' tags: - Data Stream parameters: - in: header name: X-Stream-Signature description: Obtained from within WorkBoard when you create a Datastream schema: type: string required: true - in: header name: Content-Type schema: type: string default: application/json required: true - name: stream_id in: path description: Obtained from within WorkBoard when you create a Datastream schema: type: string required: true requestBody: required: true content: application/json: schema: required: - data properties: data: type: object required: - stream properties: stream: type: object required: - connector properties: connector: type: object required: - connector_data properties: connector_id: type: string connector_data: type: object required: - value properties: value: type: string date: description: A date value for the update in YYYY-MM-DD format. type: string connector_attributes: type: object properties: source: type: string comment: type: string connector_property: type: object properties: comment: type: string responses: '200': description: Success content: application/json: schema: type: object properties: success: type: boolean readOnly: true message: type: string readOnly: true data: type: object readOnly: true properties: totalCount: type: integer stream: type: array items: type: object properties: stream_id: type: string stream_private_key: type: string stream_name: type: string stream_frequency: type: string stream_category: type: string stream_data_type: type: string stream_description: type: string stream_active: type: string stream_connector_id: type: - string - 'null' stream_data_last_updated: type: - string - 'null' stream_last_data_value: type: - string - 'null' '400': description: Unauthorized / Invalid content: application/json: schema: properties: success: type: boolean description: 'false' error: type: string error_description: type: string example: success: false error: '' error_description: '' operationId: postStreamByStreamId x-operation-id-source: derived components: securitySchemes: bearerAuth: type: http description: JWT Authorization header using the Bearer scheme. scheme: bearer bearerFormat: JWT