organization_data_campaigns_api module#
- class edgeimpulse_api.api.organization_data_campaigns_api.OrganizationDataCampaignsApi(api_client=None)[source]#
Bases:
object
- add_organization_data_campaign(
- organization_id: StrictInt[StrictInt],
- add_organization_data_campaign_request: AddOrganizationDataCampaignRequest,
- **kwargs,
Add a data campaign
Add a new data campaign to a data campaign dashboard
- Parameters:
organization_id (int) – Organization ID (required)
add_organization_data_campaign_request (AddOrganizationDataCampaignRequest) – (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- add_organization_data_campaign_dashboard(
- organization_id: StrictInt[StrictInt],
- add_organization_data_campaign_dashboard_request: AddOrganizationDataCampaignDashboardRequest,
- **kwargs,
Add data campaign dashboard
Add a new data campaign dashboard
- Parameters:
organization_id (int) – Organization ID (required)
add_organization_data_campaign_dashboard_request (AddOrganizationDataCampaignDashboardRequest) – (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- delete_organization_data_campaign(
- organization_id: StrictInt[StrictInt],
- campaign_id: StrictInt,
- **kwargs,
Delete data campaign
Delete a data campaign
- Parameters:
organization_id (int) – Organization ID (required)
campaign_id (int) – (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- delete_organization_data_campaign_dashboard(
- organization_id: StrictInt[StrictInt],
- campaign_dashboard_id: StrictInt,
- **kwargs,
Delete data campaign dashboard
Delete a data campaign dashboard
- Parameters:
organization_id (int) – Organization ID (required)
campaign_dashboard_id (int) – (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- get_organization_data_campaign(
- organization_id: StrictInt[StrictInt],
- campaign_id: StrictInt,
- **kwargs,
Get data campaign
Get a data campaign
- Parameters:
organization_id (int) – Organization ID (required)
campaign_id (int) – (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- get_organization_data_campaign_dashboard(
- organization_id: StrictInt[StrictInt],
- campaign_dashboard_id: StrictInt,
- **kwargs,
Get data campaign dashboard
Get a data campaign dashboard
- Parameters:
organization_id (int) – Organization ID (required)
campaign_dashboard_id (int) – (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- get_organization_data_campaign_dashboards(
- organization_id: StrictInt[StrictInt],
- **kwargs,
Get data campaign dashboards
List all data campaign dashboards
- Parameters:
organization_id (int) – Organization ID (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- get_organization_data_campaign_diff(
- organization_id: StrictInt[StrictInt],
- campaign_id: StrictInt,
- organization_data_campaign_diff_request: OrganizationDataCampaignDiffRequest,
- **kwargs,
Get diff for data campaign
Get which items have changed for a data campaign. You post the data points and we’ll return which data items are different in the past day.
- Parameters:
organization_id (int) – Organization ID (required)
campaign_id (int) – (required)
organization_data_campaign_diff_request (OrganizationDataCampaignDiffRequest) – (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- get_organization_data_campaigns_for_dashboard(
- organization_id: StrictInt[StrictInt],
- campaign_dashboard_id: StrictInt,
- **kwargs,
Get data campaigns
Get a list of all data campaigns for a dashboard
- Parameters:
organization_id (int) – Organization ID (required)
campaign_dashboard_id (int) – (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- update_organization_data_campaign(
- organization_id: StrictInt[StrictInt],
- campaign_id: StrictInt,
- update_organization_data_campaign_request: UpdateOrganizationDataCampaignRequest,
- **kwargs,
Update data campaign
Update a data campaign
- Parameters:
organization_id (int) – Organization ID (required)
campaign_id (int) – (required)
update_organization_data_campaign_request (UpdateOrganizationDataCampaignRequest) – (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- update_organization_data_campaign_dashboard(
- organization_id: StrictInt[StrictInt],
- campaign_dashboard_id: StrictInt,
- update_organization_data_campaign_dashboard_request: UpdateOrganizationDataCampaignDashboardRequest,
- **kwargs,
Update data campaign dashboard
Update a data campaign dashboard
- Parameters:
organization_id (int) – Organization ID (required)
campaign_dashboard_id (int) – (required)
update_organization_data_campaign_dashboard_request (UpdateOrganizationDataCampaignDashboardRequest) – (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- upload_dashboard_screenshot(
- organization_id: StrictInt[StrictInt],
- campaign_dashboard_id: StrictInt,
- image: StrictStr,
- **kwargs,
Upload a dashboard screenshot
Used internally to upload a picture of a screenshot
- Parameters:
organization_id (int) – Organization ID (required)
campaign_dashboard_id (int) – (required)
image (str) – (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type: