spartera_api_sdk 1.0.77 → 1.0.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile +9 -0
- data/README.md +333 -324
- data/Rakefile +10 -0
- data/docs/APIKeysApi.md +150 -126
- data/docs/Alerts.md +13 -13
- data/docs/AlertsApi.md +139 -139
- data/docs/AlertsInput.md +7 -7
- data/docs/AlertsUpdate.md +7 -7
- data/docs/ApiKeys.md +19 -11
- data/docs/ApiKeysInput.md +13 -5
- data/docs/ApiKeysUpdate.md +13 -5
- data/docs/AssetPriceHistory.md +14 -12
- data/docs/AssetPriceHistoryApi.md +164 -164
- data/docs/AssetPriceHistoryInput.md +8 -6
- data/docs/AssetPriceHistoryUpdate.md +8 -6
- data/docs/AssetUsecases.md +28 -0
- data/docs/AssetUsecasesApi.md +157 -0
- data/docs/Assets.md +113 -83
- data/docs/AssetsApi.md +534 -206
- data/docs/AssetsInput.md +100 -70
- data/docs/AssetsUpdate.md +100 -70
- data/docs/CloudProviders.md +12 -12
- data/docs/CloudProvidersApi.md +44 -31
- data/docs/CloudProvidersInput.md +6 -6
- data/docs/CloudProvidersUpdate.md +6 -6
- data/docs/Companies.md +27 -23
- data/docs/CompaniesApi.md +313 -147
- data/docs/CompaniesInput.md +21 -17
- data/docs/CompaniesUpdate.md +21 -17
- data/docs/Connections.md +22 -22
- data/docs/ConnectionsApi.md +149 -125
- data/docs/ConnectionsInput.md +16 -16
- data/docs/ConnectionsUpdate.md +16 -16
- data/docs/CreateAlerts200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdAlertsPost200ResponseData.md → CreateAlerts200ResponseData.md} +2 -2
- data/docs/CreateApiKeys200Response.md +20 -0
- data/docs/{CompaniesCompanyIdApiKeysPost200ResponseData.md → CreateApiKeys200ResponseData.md} +2 -2
- data/docs/{CompaniesCompanyIdPatch200Response.md → CreateAssetPriceHistory200Response.md} +3 -3
- data/docs/{CompaniesCompanyIdAssetsAssetIdPricesPost200ResponseData.md → CreateAssetPriceHistory200ResponseData.md} +2 -2
- data/docs/CreateAssetsAnalyze200Response.md +20 -0
- data/docs/{CompaniesCompanyIdAssetsPost200ResponseData.md → CreateAssetsAnalyze200ResponseData.md} +2 -2
- data/docs/CreateConnections200Response.md +20 -0
- data/docs/{CompaniesCompanyIdConnectionsPost200ResponseData.md → CreateConnections200ResponseData.md} +2 -2
- data/docs/CreateEndpoints200Response.md +20 -0
- data/docs/CreateEndpoints200ResponseData.md +18 -0
- data/docs/CreateFavorites200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdFavoritesPost200ResponseData.md → CreateFavorites200ResponseData.md} +2 -2
- data/docs/CreatePostgenIntegrations200Response.md +20 -0
- data/docs/CreatePostgenIntegrations200ResponseData.md +18 -0
- data/docs/CreatePosts200Response.md +20 -0
- data/docs/CreatePosts200ResponseData.md +18 -0
- data/docs/CreateUsers200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersPost200ResponseData.md → CreateUsers200ResponseData.md} +2 -2
- data/docs/DeleteAlerts200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdAlertsAlertIdDelete200ResponseData.md → DeleteAlerts200ResponseData.md} +2 -2
- data/docs/DeleteApiKeys200Response.md +20 -0
- data/docs/{CompaniesCompanyIdApiKeysApiKeyIdDelete200ResponseData.md → DeleteApiKeys200ResponseData.md} +2 -2
- data/docs/DeleteAssetPriceHistory200Response.md +20 -0
- data/docs/{CompaniesCompanyIdAssetsAssetIdPricesAphIdDelete200ResponseData.md → DeleteAssetPriceHistory200ResponseData.md} +2 -2
- data/docs/DeleteAssets200Response.md +20 -0
- data/docs/{CompaniesCompanyIdAssetsAssetIdDelete200ResponseData.md → DeleteAssets200ResponseData.md} +2 -2
- data/docs/DeleteConnections200Response.md +20 -0
- data/docs/{CompaniesCompanyIdConnectionsConnectionIdDelete200ResponseData.md → DeleteConnections200ResponseData.md} +2 -2
- data/docs/DeleteEndpoints200Response.md +20 -0
- data/docs/DeleteEndpoints200ResponseData.md +18 -0
- data/docs/DeleteFavorites200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdDelete200ResponseData.md → DeleteFavorites200ResponseData.md} +2 -2
- data/docs/DeletePostgenIntegrations200Response.md +20 -0
- data/docs/DeletePostgenIntegrations200ResponseData.md +18 -0
- data/docs/DeletePosts200Response.md +20 -0
- data/docs/DeletePosts200ResponseData.md +18 -0
- data/docs/DeleteUsers200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdDelete200ResponseData.md → DeleteUsers200ResponseData.md} +2 -2
- data/docs/Endpoints.md +80 -0
- data/docs/EndpointsApi.md +1043 -0
- data/docs/EndpointsInput.md +78 -0
- data/docs/EndpointsUpdate.md +78 -0
- data/docs/Favorites.md +15 -15
- data/docs/FavoritesApi.md +159 -159
- data/docs/FavoritesInput.md +9 -9
- data/docs/FavoritesUpdate.md +9 -9
- data/docs/{CompaniesCompanyIdUsersUserIdAlertsAssetAssetIdGet200Response.md → GetAlertsById200Response.md} +2 -2
- data/docs/{CompaniesCompanyIdApiKeysApiKeyIdGet200Response.md → GetApiKeysById200Response.md} +2 -2
- data/docs/{CompaniesCompanyIdAssetsAssetIdPricesAphIdGet200Response.md → GetAssetPriceHistoryById200Response.md} +2 -2
- data/docs/GetAssetUsecasesById200Response.md +20 -0
- data/docs/{AnalyzeCompanyHandleAssetsAssetSlugGet200Response.md → GetAssetsByIdAnalyze200Response.md} +2 -2
- data/docs/{CloudProvidersProviderIdGet200Response.md → GetCloudProvidersById200Response.md} +2 -2
- data/docs/{CompaniesCompanyIdGet200Response.md → GetCompaniesById200Response.md} +2 -2
- data/docs/{CompaniesCompanyIdConnectionsConnectionIdGet200Response.md → GetConnectionsById200Response.md} +2 -2
- data/docs/GetEndpointsByIdConnectionsDescribe200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdFavoritesCategoryCategoryGet200Response.md → GetFavoritesById200Response.md} +2 -2
- data/docs/GetIndustriesById200Response.md +20 -0
- data/docs/{JobFunctionsFunctionIdGet200Response.md → GetJobFunctionsById200Response.md} +2 -2
- data/docs/GetPostgenIntegrationsById200Response.md +20 -0
- data/docs/GetPostsById200Response.md +20 -0
- data/docs/GetStorageEnginesById200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdGet200Response.md → GetUsersById200Response.md} +2 -2
- data/docs/Industries.md +32 -0
- data/docs/IndustriesApi.md +237 -0
- data/docs/InlineObject4.md +20 -0
- data/docs/InlineObject5.md +20 -0
- data/docs/InlineObject6.md +22 -0
- data/docs/InlineObject7.md +20 -0
- data/docs/JobFunctions.md +8 -8
- data/docs/JobFunctionsApi.md +38 -25
- data/docs/JobFunctionsInput.md +2 -2
- data/docs/JobFunctionsUpdate.md +2 -2
- data/docs/{CompaniesCompanyIdApiKeysGet200Response.md → ListApiKeys200Response.md} +2 -2
- data/docs/ListAssetUsecases200Response.md +20 -0
- data/docs/{CompaniesCompanyIdAssetsGet200Response.md → ListAssets200Response.md} +2 -2
- data/docs/{CloudProvidersGet200Response.md → ListCloudProviders200Response.md} +2 -2
- data/docs/{CompaniesCompanyIdAnalyticsAssetsGet200Response.md → ListCompaniesAnalyticsAssets200Response.md} +2 -2
- data/docs/{CompaniesCompanyIdConnectionsGet200Response.md → ListConnections200Response.md} +2 -2
- data/docs/ListEndpoints200Response.md +20 -0
- data/docs/ListIndustries200Response.md +20 -0
- data/docs/{JobFunctionsGet200Response.md → ListJobFunctions200Response.md} +2 -2
- data/docs/ListPostgenIntegrations200Response.md +20 -0
- data/docs/ListPosts200Response.md +20 -0
- data/docs/ListStorageEngines200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersGet200Response.md → ListUsers200Response.md} +2 -2
- data/docs/PostPublications.md +40 -0
- data/docs/PostPublicationsInput.md +34 -0
- data/docs/PostPublicationsUpdate.md +34 -0
- data/docs/PostgenIntegrations.md +36 -0
- data/docs/PostgenIntegrationsApi.md +463 -0
- data/docs/PostgenIntegrationsInput.md +30 -0
- data/docs/PostgenIntegrationsUpdate.md +30 -0
- data/docs/Posts.md +68 -0
- data/docs/PostsApi.md +843 -0
- data/docs/PostsInput.md +62 -0
- data/docs/PostsUpdate.md +62 -0
- data/docs/StorageEngines.md +32 -0
- data/docs/StorageEnginesApi.md +40 -28
- data/docs/UpdateAlerts200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdAlertsAlertIdPatch200ResponseData.md → UpdateAlerts200ResponseData.md} +2 -2
- data/docs/UpdateApiKeys200Response.md +20 -0
- data/docs/{CompaniesCompanyIdApiKeysApiKeyIdPatch200ResponseData.md → UpdateApiKeys200ResponseData.md} +2 -2
- data/docs/UpdateAssetPriceHistory200Response.md +20 -0
- data/docs/{CompaniesCompanyIdAssetsAssetIdPricesAphIdPatch200ResponseData.md → UpdateAssetPriceHistory200ResponseData.md} +2 -2
- data/docs/UpdateAssets200Response.md +20 -0
- data/docs/{CompaniesCompanyIdAssetsAssetIdPatch200ResponseData.md → UpdateAssets200ResponseData.md} +2 -2
- data/docs/UpdateCompanies200Response.md +20 -0
- data/docs/{CompaniesCompanyIdPatch200ResponseData.md → UpdateCompanies200ResponseData.md} +2 -2
- data/docs/UpdateConnections200Response.md +20 -0
- data/docs/{CompaniesCompanyIdConnectionsConnectionIdPatch200ResponseData.md → UpdateConnections200ResponseData.md} +2 -2
- data/docs/UpdateEndpoints200Response.md +20 -0
- data/docs/UpdateEndpoints200ResponseData.md +18 -0
- data/docs/UpdateFavorites200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdPatch200ResponseData.md → UpdateFavorites200ResponseData.md} +2 -2
- data/docs/UpdatePostgenIntegrations200Response.md +20 -0
- data/docs/UpdatePostgenIntegrations200ResponseData.md +18 -0
- data/docs/UpdatePosts200Response.md +20 -0
- data/docs/UpdatePosts200ResponseData.md +18 -0
- data/docs/UpdateUsers200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdPatch200ResponseData.md → UpdateUsers200ResponseData.md} +2 -2
- data/docs/Users.md +20 -16
- data/docs/UsersApi.md +302 -97
- data/docs/UsersInput.md +14 -10
- data/docs/UsersUpdate.md +14 -10
- data/git_push.sh +57 -0
- data/lib/spartera_api_sdk/api/alerts_api.rb +414 -167
- data/lib/spartera_api_sdk/api/api_keys_api.rb +386 -152
- data/lib/spartera_api_sdk/api/asset_price_history_api.rb +454 -207
- data/lib/spartera_api_sdk/api/asset_usecases_api.rb +190 -0
- data/lib/spartera_api_sdk/api/assets_api.rb +949 -225
- data/lib/spartera_api_sdk/api/cloud_providers_api.rb +83 -31
- data/lib/spartera_api_sdk/api/companies_api.rb +651 -148
- data/lib/spartera_api_sdk/api/connections_api.rb +376 -142
- data/lib/spartera_api_sdk/api/endpoints_api.rb +1416 -0
- data/lib/spartera_api_sdk/api/favorites_api.rb +456 -196
- data/lib/spartera_api_sdk/api/industries_api.rb +284 -0
- data/lib/spartera_api_sdk/api/job_functions_api.rb +75 -23
- data/lib/spartera_api_sdk/api/postgen_integrations_api.rb +634 -0
- data/lib/spartera_api_sdk/api/posts_api.rb +1190 -0
- data/lib/spartera_api_sdk/api/storage_engines_api.rb +107 -29
- data/lib/spartera_api_sdk/api/users_api.rb +574 -105
- data/lib/spartera_api_sdk/api_client.rb +8 -4
- data/lib/spartera_api_sdk/api_error.rb +2 -2
- data/lib/spartera_api_sdk/api_model_base.rb +88 -0
- data/lib/spartera_api_sdk/configuration.rb +2 -2
- data/lib/spartera_api_sdk/models/alerts.rb +10 -77
- data/lib/spartera_api_sdk/models/alerts_input.rb +6 -76
- data/lib/spartera_api_sdk/models/alerts_update.rb +6 -76
- data/lib/spartera_api_sdk/models/api_keys.rb +82 -78
- data/lib/spartera_api_sdk/models/api_keys_input.rb +44 -77
- data/lib/spartera_api_sdk/models/api_keys_update.rb +44 -77
- data/lib/spartera_api_sdk/models/asset_price_history.rb +21 -96
- data/lib/spartera_api_sdk/models/asset_price_history_input.rb +17 -95
- data/lib/spartera_api_sdk/models/asset_price_history_update.rb +17 -78
- data/lib/spartera_api_sdk/models/asset_usecases.rb +216 -0
- data/lib/spartera_api_sdk/models/assets.rb +262 -93
- data/lib/spartera_api_sdk/models/assets_input.rb +238 -91
- data/lib/spartera_api_sdk/models/assets_update.rb +238 -91
- data/lib/spartera_api_sdk/models/cloud_providers.rb +10 -77
- data/lib/spartera_api_sdk/models/cloud_providers_input.rb +6 -76
- data/lib/spartera_api_sdk/models/cloud_providers_update.rb +6 -76
- data/lib/spartera_api_sdk/models/companies.rb +72 -81
- data/lib/spartera_api_sdk/models/companies_input.rb +68 -80
- data/lib/spartera_api_sdk/models/companies_update.rb +68 -80
- data/lib/spartera_api_sdk/models/connections.rb +15 -78
- data/lib/spartera_api_sdk/models/connections_input.rb +11 -77
- data/lib/spartera_api_sdk/models/connections_update.rb +11 -77
- data/lib/spartera_api_sdk/models/{cloud_providers_provider_id_get200_response.rb → create_alerts200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_alerts_post200_response_data.rb → create_alerts200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/create_api_keys200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_api_keys_post200_response_data.rb → create_api_keys200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/{companies_company_id_patch200_response.rb → create_asset_price_history200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_asset_id_prices_post200_response_data.rb → create_asset_price_history200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/create_assets_analyze200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_post200_response_data.rb → create_assets_analyze200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/create_connections200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_connections_post200_response_data.rb → create_connections200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/create_endpoints200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/create_endpoints200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/create_favorites200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_favorites_post200_response_data.rb → create_favorites200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/{job_functions_function_id_get200_response.rb → create_postgen_integrations200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/create_postgen_integrations200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/create_posts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/create_posts200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/create_users200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_post200_response_data.rb → create_users200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_alerts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_alerts_alert_id_delete200_response_data.rb → delete_alerts200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_api_keys200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_api_keys_api_key_id_delete200_response_data.rb → delete_api_keys200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_asset_price_history200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_asset_id_prices_aph_id_delete200_response_data.rb → delete_asset_price_history200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_assets200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_asset_id_delete200_response_data.rb → delete_assets200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_connections200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_connections_connection_id_delete200_response_data.rb → delete_connections200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_endpoints200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/delete_endpoints200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/delete_favorites200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_favorites_favorite_id_delete200_response_data.rb → delete_favorites200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_postgen_integrations200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/delete_postgen_integrations200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/delete_posts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/delete_posts200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/delete_users200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_delete200_response_data.rb → delete_users200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/endpoints.rb +684 -0
- data/lib/spartera_api_sdk/models/endpoints_input.rb +582 -0
- data/lib/spartera_api_sdk/models/endpoints_update.rb +531 -0
- data/lib/spartera_api_sdk/models/error.rb +3 -76
- data/lib/spartera_api_sdk/models/favorites.rb +10 -77
- data/lib/spartera_api_sdk/models/favorites_input.rb +6 -76
- data/lib/spartera_api_sdk/models/favorites_update.rb +6 -76
- data/lib/spartera_api_sdk/models/get_alerts_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_api_keys_api_key_id_get200_response.rb → get_api_keys_by_id200_response.rb} +5 -78
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_asset_id_prices_aph_id_get200_response.rb → get_asset_price_history_by_id200_response.rb} +5 -78
- data/lib/spartera_api_sdk/models/get_asset_usecases_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{analyze_company_handle_assets_asset_slug_get200_response.rb → get_assets_by_id_analyze200_response.rb} +5 -78
- data/lib/spartera_api_sdk/models/{companies_company_id_get200_response.rb → get_cloud_providers_by_id200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/get_companies_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_connections_connection_id_get200_response.rb → get_connections_by_id200_response.rb} +5 -78
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_delete200_response.rb → get_endpoints_by_id_connections_describe200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/get_favorites_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_industries_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_job_functions_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_get200_response.rb → get_postgen_integrations_by_id200_response.rb} +7 -82
- data/lib/spartera_api_sdk/models/get_posts_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_storage_engines_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_get200_response.rb → get_users_by_id200_response.rb} +5 -78
- data/lib/spartera_api_sdk/models/industries.rb +253 -0
- data/lib/spartera_api_sdk/models/inline_object.rb +3 -76
- data/lib/spartera_api_sdk/models/inline_object1.rb +3 -76
- data/lib/spartera_api_sdk/models/inline_object2.rb +3 -76
- data/lib/spartera_api_sdk/models/inline_object3.rb +3 -76
- data/lib/spartera_api_sdk/models/inline_object4.rb +156 -0
- data/lib/spartera_api_sdk/models/inline_object5.rb +156 -0
- data/lib/spartera_api_sdk/models/{cloud_providers_provider_id_storage_engines_get200_response.rb → inline_object6.rb} +22 -102
- data/lib/spartera_api_sdk/models/inline_object7.rb +156 -0
- data/lib/spartera_api_sdk/models/job_functions.rb +8 -77
- data/lib/spartera_api_sdk/models/job_functions_input.rb +4 -76
- data/lib/spartera_api_sdk/models/job_functions_update.rb +4 -76
- data/lib/spartera_api_sdk/models/list_api_keys200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/{cloud_providers_get200_response.rb → list_asset_usecases200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_get200_response.rb → list_assets200_response.rb} +5 -78
- data/lib/spartera_api_sdk/models/list_cloud_providers200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_api_keys_get200_response.rb → list_companies_analytics_assets200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/{job_functions_get200_response.rb → list_connections200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/list_endpoints200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_industries200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_job_functions200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_postgen_integrations200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_posts200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_storage_engines200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_users200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/post_publications.rb +327 -0
- data/lib/spartera_api_sdk/models/post_publications_input.rb +280 -0
- data/lib/spartera_api_sdk/models/post_publications_update.rb +229 -0
- data/lib/spartera_api_sdk/models/postgen_integrations.rb +341 -0
- data/lib/spartera_api_sdk/models/postgen_integrations_input.rb +294 -0
- data/lib/spartera_api_sdk/models/postgen_integrations_update.rb +209 -0
- data/lib/spartera_api_sdk/models/posts.rb +586 -0
- data/lib/spartera_api_sdk/models/posts_input.rb +437 -0
- data/lib/spartera_api_sdk/models/posts_update.rb +369 -0
- data/lib/spartera_api_sdk/models/storage_engines.rb +294 -0
- data/lib/spartera_api_sdk/models/update_alerts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_alerts_alert_id_patch200_response_data.rb → update_alerts200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_api_keys200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_api_keys_api_key_id_patch200_response_data.rb → update_api_keys200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_asset_price_history200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_asset_id_prices_aph_id_patch200_response_data.rb → update_asset_price_history200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_assets200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_asset_id_patch200_response_data.rb → update_assets200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_companies200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_patch200_response_data.rb → update_companies200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_connections200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_connections_connection_id_patch200_response_data.rb → update_connections200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_endpoints200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/update_endpoints200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/update_favorites200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_favorites_favorite_id_patch200_response_data.rb → update_favorites200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_postgen_integrations200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/update_postgen_integrations200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/update_posts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/update_posts200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/update_users200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_patch200_response_data.rb → update_users200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/users.rb +70 -82
- data/lib/spartera_api_sdk/models/users_input.rb +32 -81
- data/lib/spartera_api_sdk/models/users_update.rb +32 -81
- data/lib/spartera_api_sdk/version.rb +13 -1
- data/lib/spartera_api_sdk.rb +118 -67
- data/spartera_api_sdk.gemspec +39 -0
- data/spec/api/alerts_api_spec.rb +50 -50
- data/spec/api/api_keys_api_spec.rb +53 -43
- data/spec/api/asset_price_history_api_spec.rb +57 -57
- data/spec/api/asset_usecases_api_spec.rb +61 -0
- data/spec/api/assets_api_spec.rb +134 -69
- data/spec/api/cloud_providers_api_spec.rb +16 -11
- data/spec/api/companies_api_spec.rb +99 -48
- data/spec/api/connections_api_spec.rb +53 -43
- data/spec/api/endpoints_api_spec.rb +215 -0
- data/spec/api/favorites_api_spec.rb +56 -56
- data/spec/api/industries_api_spec.rb +76 -0
- data/spec/api/job_functions_api_spec.rb +14 -9
- data/spec/api/postgen_integrations_api_spec.rb +117 -0
- data/spec/api/posts_api_spec.rb +186 -0
- data/spec/api/storage_engines_api_spec.rb +16 -11
- data/spec/api/users_api_spec.rb +81 -32
- data/spec/models/alerts_input_spec.rb +3 -3
- data/spec/models/alerts_spec.rb +3 -3
- data/spec/models/alerts_update_spec.rb +3 -3
- data/spec/models/api_keys_input_spec.rb +27 -3
- data/spec/models/api_keys_spec.rb +27 -3
- data/spec/models/api_keys_update_spec.rb +27 -3
- data/spec/models/asset_price_history_input_spec.rb +9 -3
- data/spec/models/asset_price_history_spec.rb +9 -3
- data/spec/models/asset_price_history_update_spec.rb +9 -3
- data/spec/models/asset_usecases_spec.rb +66 -0
- data/spec/models/assets_input_spec.rb +110 -4
- data/spec/models/assets_spec.rb +110 -4
- data/spec/models/assets_update_spec.rb +110 -4
- data/spec/models/cloud_providers_input_spec.rb +3 -3
- data/spec/models/cloud_providers_spec.rb +3 -3
- data/spec/models/cloud_providers_update_spec.rb +3 -3
- data/spec/models/companies_input_spec.rb +19 -3
- data/spec/models/companies_spec.rb +19 -3
- data/spec/models/companies_update_spec.rb +19 -3
- data/spec/models/connections_input_spec.rb +3 -3
- data/spec/models/connections_spec.rb +3 -3
- data/spec/models/connections_update_spec.rb +3 -3
- data/spec/models/create_alerts200_response_data_spec.rb +36 -0
- data/spec/models/create_alerts200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_api_keys_post200_response_data_spec.rb → create_api_keys200_response_data_spec.rb} +8 -8
- data/spec/models/create_api_keys200_response_spec.rb +42 -0
- data/spec/models/create_asset_price_history200_response_data_spec.rb +36 -0
- data/spec/models/{companies_company_id_patch200_response_spec.rb → create_asset_price_history200_response_spec.rb} +8 -8
- data/spec/models/{companies_company_id_assets_post200_response_data_spec.rb → create_assets_analyze200_response_data_spec.rb} +8 -8
- data/spec/models/create_assets_analyze200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_connections_post200_response_data_spec.rb → create_connections200_response_data_spec.rb} +8 -8
- data/spec/models/{cloud_providers_get200_response_spec.rb → create_connections200_response_spec.rb} +8 -8
- data/spec/models/create_endpoints200_response_data_spec.rb +36 -0
- data/spec/models/create_endpoints200_response_spec.rb +42 -0
- data/spec/models/create_favorites200_response_data_spec.rb +36 -0
- data/spec/models/create_favorites200_response_spec.rb +42 -0
- data/spec/models/create_postgen_integrations200_response_data_spec.rb +36 -0
- data/spec/models/{job_functions_function_id_get200_response_spec.rb → create_postgen_integrations200_response_spec.rb} +8 -8
- data/spec/models/create_posts200_response_data_spec.rb +36 -0
- data/spec/models/create_posts200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_users_post200_response_data_spec.rb → create_users200_response_data_spec.rb} +8 -8
- data/spec/models/create_users200_response_spec.rb +42 -0
- data/spec/models/delete_alerts200_response_data_spec.rb +36 -0
- data/spec/models/delete_alerts200_response_spec.rb +42 -0
- data/spec/models/delete_api_keys200_response_data_spec.rb +36 -0
- data/spec/models/delete_api_keys200_response_spec.rb +42 -0
- data/spec/models/delete_asset_price_history200_response_data_spec.rb +36 -0
- data/spec/models/delete_asset_price_history200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_assets_asset_id_patch200_response_data_spec.rb → delete_assets200_response_data_spec.rb} +8 -8
- data/spec/models/delete_assets200_response_spec.rb +42 -0
- data/spec/models/delete_connections200_response_data_spec.rb +36 -0
- data/spec/models/delete_connections200_response_spec.rb +42 -0
- data/spec/models/delete_endpoints200_response_data_spec.rb +36 -0
- data/spec/models/delete_endpoints200_response_spec.rb +42 -0
- data/spec/models/delete_favorites200_response_data_spec.rb +36 -0
- data/spec/models/delete_favorites200_response_spec.rb +42 -0
- data/spec/models/delete_postgen_integrations200_response_data_spec.rb +36 -0
- data/spec/models/delete_postgen_integrations200_response_spec.rb +42 -0
- data/spec/models/delete_posts200_response_data_spec.rb +36 -0
- data/spec/models/delete_posts200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_users_user_id_patch200_response_data_spec.rb → delete_users200_response_data_spec.rb} +8 -8
- data/spec/models/delete_users200_response_spec.rb +42 -0
- data/spec/models/endpoints_input_spec.rb +236 -0
- data/spec/models/endpoints_spec.rb +242 -0
- data/spec/models/endpoints_update_spec.rb +236 -0
- data/spec/models/error_spec.rb +3 -3
- data/spec/models/favorites_input_spec.rb +3 -3
- data/spec/models/favorites_spec.rb +3 -3
- data/spec/models/favorites_update_spec.rb +3 -3
- data/spec/models/get_alerts_by_id200_response_spec.rb +42 -0
- data/spec/models/{job_functions_get200_response_spec.rb → get_api_keys_by_id200_response_spec.rb} +8 -8
- data/spec/models/get_asset_price_history_by_id200_response_spec.rb +42 -0
- data/spec/models/get_asset_usecases_by_id200_response_spec.rb +42 -0
- data/spec/models/get_assets_by_id_analyze200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_get200_response_spec.rb → get_cloud_providers_by_id200_response_spec.rb} +8 -8
- data/spec/models/get_companies_by_id200_response_spec.rb +42 -0
- data/spec/models/get_connections_by_id200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_users_user_id_delete200_response_spec.rb → get_endpoints_by_id_connections_describe200_response_spec.rb} +8 -8
- data/spec/models/get_favorites_by_id200_response_spec.rb +42 -0
- data/spec/models/get_industries_by_id200_response_spec.rb +42 -0
- data/spec/models/get_job_functions_by_id200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_users_get200_response_spec.rb → get_postgen_integrations_by_id200_response_spec.rb} +8 -8
- data/spec/models/get_posts_by_id200_response_spec.rb +42 -0
- data/spec/models/get_storage_engines_by_id200_response_spec.rb +42 -0
- data/spec/models/get_users_by_id200_response_spec.rb +42 -0
- data/spec/models/industries_spec.rb +78 -0
- data/spec/models/inline_object1_spec.rb +3 -3
- data/spec/models/inline_object2_spec.rb +3 -3
- data/spec/models/inline_object3_spec.rb +3 -3
- data/spec/models/inline_object4_spec.rb +42 -0
- data/spec/models/inline_object5_spec.rb +42 -0
- data/spec/models/{cloud_providers_provider_id_get200_response_spec.rb → inline_object6_spec.rb} +15 -9
- data/spec/models/inline_object7_spec.rb +42 -0
- data/spec/models/inline_object_spec.rb +3 -3
- data/spec/models/job_functions_input_spec.rb +3 -3
- data/spec/models/job_functions_spec.rb +3 -3
- data/spec/models/job_functions_update_spec.rb +3 -3
- data/spec/models/list_api_keys200_response_spec.rb +42 -0
- data/spec/models/list_asset_usecases200_response_spec.rb +42 -0
- data/spec/models/list_assets200_response_spec.rb +42 -0
- data/spec/models/list_cloud_providers200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_api_keys_get200_response_spec.rb → list_companies_analytics_assets200_response_spec.rb} +8 -8
- data/spec/models/list_connections200_response_spec.rb +42 -0
- data/spec/models/list_endpoints200_response_spec.rb +42 -0
- data/spec/models/list_industries200_response_spec.rb +42 -0
- data/spec/models/list_job_functions200_response_spec.rb +42 -0
- data/spec/models/list_postgen_integrations200_response_spec.rb +42 -0
- data/spec/models/list_posts200_response_spec.rb +42 -0
- data/spec/models/list_storage_engines200_response_spec.rb +42 -0
- data/spec/models/list_users200_response_spec.rb +42 -0
- data/spec/models/post_publications_input_spec.rb +84 -0
- data/spec/models/post_publications_spec.rb +102 -0
- data/spec/models/post_publications_update_spec.rb +84 -0
- data/spec/models/postgen_integrations_input_spec.rb +72 -0
- data/spec/models/postgen_integrations_spec.rb +90 -0
- data/spec/models/postgen_integrations_update_spec.rb +72 -0
- data/spec/models/posts_input_spec.rb +168 -0
- data/spec/models/posts_spec.rb +186 -0
- data/spec/models/posts_update_spec.rb +168 -0
- data/spec/models/storage_engines_spec.rb +82 -0
- data/spec/models/update_alerts200_response_data_spec.rb +36 -0
- data/spec/models/update_alerts200_response_spec.rb +42 -0
- data/spec/models/update_api_keys200_response_data_spec.rb +36 -0
- data/spec/models/update_api_keys200_response_spec.rb +42 -0
- data/spec/models/update_asset_price_history200_response_data_spec.rb +36 -0
- data/spec/models/update_asset_price_history200_response_spec.rb +42 -0
- data/spec/models/update_assets200_response_data_spec.rb +36 -0
- data/spec/models/update_assets200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_patch200_response_data_spec.rb → update_companies200_response_data_spec.rb} +8 -8
- data/spec/models/update_companies200_response_spec.rb +42 -0
- data/spec/models/update_connections200_response_data_spec.rb +36 -0
- data/spec/models/update_connections200_response_spec.rb +42 -0
- data/spec/models/update_endpoints200_response_data_spec.rb +36 -0
- data/spec/models/update_endpoints200_response_spec.rb +42 -0
- data/spec/models/update_favorites200_response_data_spec.rb +36 -0
- data/spec/models/update_favorites200_response_spec.rb +42 -0
- data/spec/models/update_postgen_integrations200_response_data_spec.rb +36 -0
- data/spec/models/update_postgen_integrations200_response_spec.rb +42 -0
- data/spec/models/update_posts200_response_data_spec.rb +36 -0
- data/spec/models/update_posts200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_users_user_id_delete200_response_data_spec.rb → update_users200_response_data_spec.rb} +8 -8
- data/spec/models/update_users200_response_spec.rb +42 -0
- data/spec/models/users_input_spec.rb +15 -3
- data/spec/models/users_spec.rb +15 -3
- data/spec/models/users_update_spec.rb +15 -3
- data/spec/spec_helper.rb +111 -0
- metadata +515 -337
- data/docs/CloudProvidersProviderIdStorageEnginesGet200Response.md +0 -20
- data/docs/CompaniesCompanyIdApiKeysApiKeyIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdApiKeysApiKeyIdPatch200Response.md +0 -20
- data/docs/CompaniesCompanyIdApiKeysPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsAssetIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsAssetIdPatch200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsAssetIdPricesAphIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsAssetIdPricesAphIdPatch200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsAssetIdPricesGet200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsAssetIdPricesPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdConnectionsConnectionIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdConnectionsConnectionIdPatch200Response.md +0 -20
- data/docs/CompaniesCompanyIdConnectionsPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdAlertsAlertIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdAlertsAlertIdPatch200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdAlertsGet200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdAlertsPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdPatch200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesGet200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdPatch200Response.md +0 -20
- data/lib/spartera_api_sdk/models/companies_company_id_analytics_assets_get200_response.rb +0 -266
- data/lib/spartera_api_sdk/models/companies_company_id_api_keys_api_key_id_delete200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_api_keys_api_key_id_patch200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_api_keys_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_delete200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_patch200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_prices_aph_id_delete200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_prices_aph_id_patch200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_prices_get200_response.rb +0 -266
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_prices_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_assets_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_delete200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_patch200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_connections_get200_response.rb +0 -266
- data/lib/spartera_api_sdk/models/companies_company_id_connections_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_asset_asset_id_get200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_get200_response.rb +0 -266
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_category_category_get200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_get200_response.rb +0 -266
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_patch200_response.rb +0 -264
- data/spec/models/analyze_company_handle_assets_asset_slug_get200_response_spec.rb +0 -42
- data/spec/models/cloud_providers_provider_id_storage_engines_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_analytics_assets_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_api_keys_api_key_id_delete200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_api_keys_api_key_id_delete200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_api_keys_api_key_id_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_api_keys_api_key_id_patch200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_api_keys_api_key_id_patch200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_api_keys_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_delete200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_assets_asset_id_delete200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_patch200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_prices_aph_id_delete200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_assets_asset_id_prices_aph_id_delete200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_prices_aph_id_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_prices_aph_id_patch200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_assets_asset_id_prices_aph_id_patch200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_prices_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_prices_post200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_assets_asset_id_prices_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_connections_connection_id_delete200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_connections_connection_id_delete200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_connections_connection_id_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_connections_connection_id_patch200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_connections_connection_id_patch200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_connections_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_connections_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_alerts_asset_asset_id_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_alerts_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_alerts_post200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_users_user_id_alerts_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_favorites_category_category_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_favorites_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_favorites_post200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_users_user_id_favorites_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_patch200_response_spec.rb +0 -42
data/docs/PostsApi.md
ADDED
|
@@ -0,0 +1,843 @@
|
|
|
1
|
+
# SparteraApiSdk::PostsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.spartera.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**create_posts**](PostsApi.md#create_posts) | **POST** /companies/{company_id}/posts | POST /companies/{company_id}/posts |
|
|
8
|
+
| [**create_posts2**](PostsApi.md#create_posts2) | **POST** /companies/{company_id}/posts/{post_id}/publish/{integration_id} | Publish a post to an external platform via an integration. Args: post_id: ID of the post to publish integration_id: ID of the integration to use (from postgen_integrations) Returns: Publication record with external_url and external_post_id |
|
|
9
|
+
| [**create_posts_publish**](PostsApi.md#create_posts_publish) | **POST** /companies/{company_id}/posts/{post_id}/publish | Publish a post (make it publicly visible). |
|
|
10
|
+
| [**create_posts_unpublish**](PostsApi.md#create_posts_unpublish) | **POST** /companies/{company_id}/posts/{post_id}/unpublish | Unpublish a post (make it private/draft again). |
|
|
11
|
+
| [**create_posts_view**](PostsApi.md#create_posts_view) | **POST** /companies/{company_id}/posts/{post_id}/view | Increment view count for a post. Public endpoint (no authentication required). |
|
|
12
|
+
| [**delete_posts**](PostsApi.md#delete_posts) | **DELETE** /companies/{company_id}/posts/{post_id} | Delete single post by ID. |
|
|
13
|
+
| [**get_posts_by_id**](PostsApi.md#get_posts_by_id) | **GET** /companies/{company_id}/posts/{post_id} | Get single post by ID. |
|
|
14
|
+
| [**get_posts_by_id_publications**](PostsApi.md#get_posts_by_id_publications) | **GET** /companies/{company_id}/posts/{post_id}/publications | Get all publications for a post. Shows where this post has been published to external platforms. Returns: Array of publication records with platform, URL, status |
|
|
15
|
+
| [**list_posts**](PostsApi.md#list_posts) | **GET** /companies/{company_id}/posts | Get a list of all posts for the user's company. Supports filtering, sorting, pagination. |
|
|
16
|
+
| [**list_posts_summary**](PostsApi.md#list_posts_summary) | **GET** /companies/{company_id}/posts/summary | GET /companies/{company_id}/posts/summary |
|
|
17
|
+
| [**update_posts**](PostsApi.md#update_posts) | **PATCH** /companies/{company_id}/posts/{post_id} | Update an existing post by ID. Note: last_edited_at is automatically updated. |
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
## create_posts
|
|
21
|
+
|
|
22
|
+
> <CreatePosts200Response> create_posts(company_id, posts_input, opts)
|
|
23
|
+
|
|
24
|
+
POST /companies/{company_id}/posts
|
|
25
|
+
|
|
26
|
+
### Examples
|
|
27
|
+
|
|
28
|
+
```ruby
|
|
29
|
+
require 'time'
|
|
30
|
+
require 'spartera_api_sdk'
|
|
31
|
+
# setup authorization
|
|
32
|
+
SparteraApiSdk.configure do |config|
|
|
33
|
+
# Configure API key authorization: ApiKeyAuth
|
|
34
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
35
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
36
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
api_instance = SparteraApiSdk::PostsApi.new
|
|
40
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
41
|
+
posts_input = SparteraApiSdk::PostsInput.new({user_id: 'user_id_abc123', company_id: 'company_id_abc123', title: 'example_value', content_html: 'example_value'}) # PostsInput |
|
|
42
|
+
opts = {
|
|
43
|
+
page: 56, # Integer | Page number for pagination
|
|
44
|
+
limit: 56, # Integer | Number of items per page
|
|
45
|
+
sort_by: 'sort_by_example', # String | Field to sort by
|
|
46
|
+
sort_order: 'asc', # String | Sort order (ascending or descending)
|
|
47
|
+
search: 'search_example' # String | Search term to filter results
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
begin
|
|
51
|
+
# POST /companies/{company_id}/posts
|
|
52
|
+
result = api_instance.create_posts(company_id, posts_input, opts)
|
|
53
|
+
p result
|
|
54
|
+
rescue SparteraApiSdk::ApiError => e
|
|
55
|
+
puts "Error when calling PostsApi->create_posts: #{e}"
|
|
56
|
+
end
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
#### Using the create_posts_with_http_info variant
|
|
60
|
+
|
|
61
|
+
This returns an Array which contains the response data, status code and headers.
|
|
62
|
+
|
|
63
|
+
> <Array(<CreatePosts200Response>, Integer, Hash)> create_posts_with_http_info(company_id, posts_input, opts)
|
|
64
|
+
|
|
65
|
+
```ruby
|
|
66
|
+
begin
|
|
67
|
+
# POST /companies/{company_id}/posts
|
|
68
|
+
data, status_code, headers = api_instance.create_posts_with_http_info(company_id, posts_input, opts)
|
|
69
|
+
p status_code # => 2xx
|
|
70
|
+
p headers # => { ... }
|
|
71
|
+
p data # => <CreatePosts200Response>
|
|
72
|
+
rescue SparteraApiSdk::ApiError => e
|
|
73
|
+
puts "Error when calling PostsApi->create_posts_with_http_info: #{e}"
|
|
74
|
+
end
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### Parameters
|
|
78
|
+
|
|
79
|
+
| Name | Type | Description | Notes |
|
|
80
|
+
| ---- | ---- | ----------- | ----- |
|
|
81
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
82
|
+
| **posts_input** | [**PostsInput**](PostsInput.md) | | |
|
|
83
|
+
| **page** | **Integer** | Page number for pagination | [optional][default to 1] |
|
|
84
|
+
| **limit** | **Integer** | Number of items per page | [optional][default to 20] |
|
|
85
|
+
| **sort_by** | **String** | Field to sort by | [optional] |
|
|
86
|
+
| **sort_order** | **String** | Sort order (ascending or descending) | [optional][default to 'desc'] |
|
|
87
|
+
| **search** | **String** | Search term to filter results | [optional] |
|
|
88
|
+
|
|
89
|
+
### Return type
|
|
90
|
+
|
|
91
|
+
[**CreatePosts200Response**](CreatePosts200Response.md)
|
|
92
|
+
|
|
93
|
+
### Authorization
|
|
94
|
+
|
|
95
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
96
|
+
|
|
97
|
+
### HTTP request headers
|
|
98
|
+
|
|
99
|
+
- **Content-Type**: application/json
|
|
100
|
+
- **Accept**: application/json
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
## create_posts2
|
|
104
|
+
|
|
105
|
+
> <CreatePosts200Response> create_posts2(company_id, post_id, integration_id, posts_input)
|
|
106
|
+
|
|
107
|
+
Publish a post to an external platform via an integration. Args: post_id: ID of the post to publish integration_id: ID of the integration to use (from postgen_integrations) Returns: Publication record with external_url and external_post_id
|
|
108
|
+
|
|
109
|
+
### Examples
|
|
110
|
+
|
|
111
|
+
```ruby
|
|
112
|
+
require 'time'
|
|
113
|
+
require 'spartera_api_sdk'
|
|
114
|
+
# setup authorization
|
|
115
|
+
SparteraApiSdk.configure do |config|
|
|
116
|
+
# Configure API key authorization: ApiKeyAuth
|
|
117
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
118
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
119
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
api_instance = SparteraApiSdk::PostsApi.new
|
|
123
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
124
|
+
post_id = 'post_id_example' # String | Unique identifier for the Post
|
|
125
|
+
integration_id = 'integration_id_example' # String | Unique identifier for the Integration
|
|
126
|
+
posts_input = SparteraApiSdk::PostsInput.new({user_id: 'user_id_abc123', company_id: 'company_id_abc123', title: 'example_value', content_html: 'example_value'}) # PostsInput |
|
|
127
|
+
|
|
128
|
+
begin
|
|
129
|
+
# Publish a post to an external platform via an integration. Args: post_id: ID of the post to publish integration_id: ID of the integration to use (from postgen_integrations) Returns: Publication record with external_url and external_post_id
|
|
130
|
+
result = api_instance.create_posts2(company_id, post_id, integration_id, posts_input)
|
|
131
|
+
p result
|
|
132
|
+
rescue SparteraApiSdk::ApiError => e
|
|
133
|
+
puts "Error when calling PostsApi->create_posts2: #{e}"
|
|
134
|
+
end
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
#### Using the create_posts2_with_http_info variant
|
|
138
|
+
|
|
139
|
+
This returns an Array which contains the response data, status code and headers.
|
|
140
|
+
|
|
141
|
+
> <Array(<CreatePosts200Response>, Integer, Hash)> create_posts2_with_http_info(company_id, post_id, integration_id, posts_input)
|
|
142
|
+
|
|
143
|
+
```ruby
|
|
144
|
+
begin
|
|
145
|
+
# Publish a post to an external platform via an integration. Args: post_id: ID of the post to publish integration_id: ID of the integration to use (from postgen_integrations) Returns: Publication record with external_url and external_post_id
|
|
146
|
+
data, status_code, headers = api_instance.create_posts2_with_http_info(company_id, post_id, integration_id, posts_input)
|
|
147
|
+
p status_code # => 2xx
|
|
148
|
+
p headers # => { ... }
|
|
149
|
+
p data # => <CreatePosts200Response>
|
|
150
|
+
rescue SparteraApiSdk::ApiError => e
|
|
151
|
+
puts "Error when calling PostsApi->create_posts2_with_http_info: #{e}"
|
|
152
|
+
end
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### Parameters
|
|
156
|
+
|
|
157
|
+
| Name | Type | Description | Notes |
|
|
158
|
+
| ---- | ---- | ----------- | ----- |
|
|
159
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
160
|
+
| **post_id** | **String** | Unique identifier for the Post | |
|
|
161
|
+
| **integration_id** | **String** | Unique identifier for the Integration | |
|
|
162
|
+
| **posts_input** | [**PostsInput**](PostsInput.md) | | |
|
|
163
|
+
|
|
164
|
+
### Return type
|
|
165
|
+
|
|
166
|
+
[**CreatePosts200Response**](CreatePosts200Response.md)
|
|
167
|
+
|
|
168
|
+
### Authorization
|
|
169
|
+
|
|
170
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
171
|
+
|
|
172
|
+
### HTTP request headers
|
|
173
|
+
|
|
174
|
+
- **Content-Type**: application/json
|
|
175
|
+
- **Accept**: application/json
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
## create_posts_publish
|
|
179
|
+
|
|
180
|
+
> <CreatePosts200Response> create_posts_publish(company_id, post_id, posts_input)
|
|
181
|
+
|
|
182
|
+
Publish a post (make it publicly visible).
|
|
183
|
+
|
|
184
|
+
### Examples
|
|
185
|
+
|
|
186
|
+
```ruby
|
|
187
|
+
require 'time'
|
|
188
|
+
require 'spartera_api_sdk'
|
|
189
|
+
# setup authorization
|
|
190
|
+
SparteraApiSdk.configure do |config|
|
|
191
|
+
# Configure API key authorization: ApiKeyAuth
|
|
192
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
193
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
194
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
api_instance = SparteraApiSdk::PostsApi.new
|
|
198
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
199
|
+
post_id = 'post_id_example' # String | Unique identifier for the Post
|
|
200
|
+
posts_input = SparteraApiSdk::PostsInput.new({user_id: 'user_id_abc123', company_id: 'company_id_abc123', title: 'example_value', content_html: 'example_value'}) # PostsInput |
|
|
201
|
+
|
|
202
|
+
begin
|
|
203
|
+
# Publish a post (make it publicly visible).
|
|
204
|
+
result = api_instance.create_posts_publish(company_id, post_id, posts_input)
|
|
205
|
+
p result
|
|
206
|
+
rescue SparteraApiSdk::ApiError => e
|
|
207
|
+
puts "Error when calling PostsApi->create_posts_publish: #{e}"
|
|
208
|
+
end
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
#### Using the create_posts_publish_with_http_info variant
|
|
212
|
+
|
|
213
|
+
This returns an Array which contains the response data, status code and headers.
|
|
214
|
+
|
|
215
|
+
> <Array(<CreatePosts200Response>, Integer, Hash)> create_posts_publish_with_http_info(company_id, post_id, posts_input)
|
|
216
|
+
|
|
217
|
+
```ruby
|
|
218
|
+
begin
|
|
219
|
+
# Publish a post (make it publicly visible).
|
|
220
|
+
data, status_code, headers = api_instance.create_posts_publish_with_http_info(company_id, post_id, posts_input)
|
|
221
|
+
p status_code # => 2xx
|
|
222
|
+
p headers # => { ... }
|
|
223
|
+
p data # => <CreatePosts200Response>
|
|
224
|
+
rescue SparteraApiSdk::ApiError => e
|
|
225
|
+
puts "Error when calling PostsApi->create_posts_publish_with_http_info: #{e}"
|
|
226
|
+
end
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
### Parameters
|
|
230
|
+
|
|
231
|
+
| Name | Type | Description | Notes |
|
|
232
|
+
| ---- | ---- | ----------- | ----- |
|
|
233
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
234
|
+
| **post_id** | **String** | Unique identifier for the Post | |
|
|
235
|
+
| **posts_input** | [**PostsInput**](PostsInput.md) | | |
|
|
236
|
+
|
|
237
|
+
### Return type
|
|
238
|
+
|
|
239
|
+
[**CreatePosts200Response**](CreatePosts200Response.md)
|
|
240
|
+
|
|
241
|
+
### Authorization
|
|
242
|
+
|
|
243
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
244
|
+
|
|
245
|
+
### HTTP request headers
|
|
246
|
+
|
|
247
|
+
- **Content-Type**: application/json
|
|
248
|
+
- **Accept**: application/json
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
## create_posts_unpublish
|
|
252
|
+
|
|
253
|
+
> <CreatePosts200Response> create_posts_unpublish(company_id, post_id, posts_input)
|
|
254
|
+
|
|
255
|
+
Unpublish a post (make it private/draft again).
|
|
256
|
+
|
|
257
|
+
### Examples
|
|
258
|
+
|
|
259
|
+
```ruby
|
|
260
|
+
require 'time'
|
|
261
|
+
require 'spartera_api_sdk'
|
|
262
|
+
# setup authorization
|
|
263
|
+
SparteraApiSdk.configure do |config|
|
|
264
|
+
# Configure API key authorization: ApiKeyAuth
|
|
265
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
266
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
267
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
api_instance = SparteraApiSdk::PostsApi.new
|
|
271
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
272
|
+
post_id = 'post_id_example' # String | Unique identifier for the Post
|
|
273
|
+
posts_input = SparteraApiSdk::PostsInput.new({user_id: 'user_id_abc123', company_id: 'company_id_abc123', title: 'example_value', content_html: 'example_value'}) # PostsInput |
|
|
274
|
+
|
|
275
|
+
begin
|
|
276
|
+
# Unpublish a post (make it private/draft again).
|
|
277
|
+
result = api_instance.create_posts_unpublish(company_id, post_id, posts_input)
|
|
278
|
+
p result
|
|
279
|
+
rescue SparteraApiSdk::ApiError => e
|
|
280
|
+
puts "Error when calling PostsApi->create_posts_unpublish: #{e}"
|
|
281
|
+
end
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
#### Using the create_posts_unpublish_with_http_info variant
|
|
285
|
+
|
|
286
|
+
This returns an Array which contains the response data, status code and headers.
|
|
287
|
+
|
|
288
|
+
> <Array(<CreatePosts200Response>, Integer, Hash)> create_posts_unpublish_with_http_info(company_id, post_id, posts_input)
|
|
289
|
+
|
|
290
|
+
```ruby
|
|
291
|
+
begin
|
|
292
|
+
# Unpublish a post (make it private/draft again).
|
|
293
|
+
data, status_code, headers = api_instance.create_posts_unpublish_with_http_info(company_id, post_id, posts_input)
|
|
294
|
+
p status_code # => 2xx
|
|
295
|
+
p headers # => { ... }
|
|
296
|
+
p data # => <CreatePosts200Response>
|
|
297
|
+
rescue SparteraApiSdk::ApiError => e
|
|
298
|
+
puts "Error when calling PostsApi->create_posts_unpublish_with_http_info: #{e}"
|
|
299
|
+
end
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
### Parameters
|
|
303
|
+
|
|
304
|
+
| Name | Type | Description | Notes |
|
|
305
|
+
| ---- | ---- | ----------- | ----- |
|
|
306
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
307
|
+
| **post_id** | **String** | Unique identifier for the Post | |
|
|
308
|
+
| **posts_input** | [**PostsInput**](PostsInput.md) | | |
|
|
309
|
+
|
|
310
|
+
### Return type
|
|
311
|
+
|
|
312
|
+
[**CreatePosts200Response**](CreatePosts200Response.md)
|
|
313
|
+
|
|
314
|
+
### Authorization
|
|
315
|
+
|
|
316
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
317
|
+
|
|
318
|
+
### HTTP request headers
|
|
319
|
+
|
|
320
|
+
- **Content-Type**: application/json
|
|
321
|
+
- **Accept**: application/json
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
## create_posts_view
|
|
325
|
+
|
|
326
|
+
> <CreatePosts200Response> create_posts_view(company_id, post_id, posts_input)
|
|
327
|
+
|
|
328
|
+
Increment view count for a post. Public endpoint (no authentication required).
|
|
329
|
+
|
|
330
|
+
### Examples
|
|
331
|
+
|
|
332
|
+
```ruby
|
|
333
|
+
require 'time'
|
|
334
|
+
require 'spartera_api_sdk'
|
|
335
|
+
# setup authorization
|
|
336
|
+
SparteraApiSdk.configure do |config|
|
|
337
|
+
# Configure API key authorization: ApiKeyAuth
|
|
338
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
339
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
340
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
api_instance = SparteraApiSdk::PostsApi.new
|
|
344
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
345
|
+
post_id = 'post_id_example' # String | Unique identifier for the Post
|
|
346
|
+
posts_input = SparteraApiSdk::PostsInput.new({user_id: 'user_id_abc123', company_id: 'company_id_abc123', title: 'example_value', content_html: 'example_value'}) # PostsInput |
|
|
347
|
+
|
|
348
|
+
begin
|
|
349
|
+
# Increment view count for a post. Public endpoint (no authentication required).
|
|
350
|
+
result = api_instance.create_posts_view(company_id, post_id, posts_input)
|
|
351
|
+
p result
|
|
352
|
+
rescue SparteraApiSdk::ApiError => e
|
|
353
|
+
puts "Error when calling PostsApi->create_posts_view: #{e}"
|
|
354
|
+
end
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
#### Using the create_posts_view_with_http_info variant
|
|
358
|
+
|
|
359
|
+
This returns an Array which contains the response data, status code and headers.
|
|
360
|
+
|
|
361
|
+
> <Array(<CreatePosts200Response>, Integer, Hash)> create_posts_view_with_http_info(company_id, post_id, posts_input)
|
|
362
|
+
|
|
363
|
+
```ruby
|
|
364
|
+
begin
|
|
365
|
+
# Increment view count for a post. Public endpoint (no authentication required).
|
|
366
|
+
data, status_code, headers = api_instance.create_posts_view_with_http_info(company_id, post_id, posts_input)
|
|
367
|
+
p status_code # => 2xx
|
|
368
|
+
p headers # => { ... }
|
|
369
|
+
p data # => <CreatePosts200Response>
|
|
370
|
+
rescue SparteraApiSdk::ApiError => e
|
|
371
|
+
puts "Error when calling PostsApi->create_posts_view_with_http_info: #{e}"
|
|
372
|
+
end
|
|
373
|
+
```
|
|
374
|
+
|
|
375
|
+
### Parameters
|
|
376
|
+
|
|
377
|
+
| Name | Type | Description | Notes |
|
|
378
|
+
| ---- | ---- | ----------- | ----- |
|
|
379
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
380
|
+
| **post_id** | **String** | Unique identifier for the Post | |
|
|
381
|
+
| **posts_input** | [**PostsInput**](PostsInput.md) | | |
|
|
382
|
+
|
|
383
|
+
### Return type
|
|
384
|
+
|
|
385
|
+
[**CreatePosts200Response**](CreatePosts200Response.md)
|
|
386
|
+
|
|
387
|
+
### Authorization
|
|
388
|
+
|
|
389
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
390
|
+
|
|
391
|
+
### HTTP request headers
|
|
392
|
+
|
|
393
|
+
- **Content-Type**: application/json
|
|
394
|
+
- **Accept**: application/json
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
## delete_posts
|
|
398
|
+
|
|
399
|
+
> <DeletePosts200Response> delete_posts(company_id, post_id)
|
|
400
|
+
|
|
401
|
+
Delete single post by ID.
|
|
402
|
+
|
|
403
|
+
### Examples
|
|
404
|
+
|
|
405
|
+
```ruby
|
|
406
|
+
require 'time'
|
|
407
|
+
require 'spartera_api_sdk'
|
|
408
|
+
# setup authorization
|
|
409
|
+
SparteraApiSdk.configure do |config|
|
|
410
|
+
# Configure API key authorization: ApiKeyAuth
|
|
411
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
412
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
413
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
414
|
+
end
|
|
415
|
+
|
|
416
|
+
api_instance = SparteraApiSdk::PostsApi.new
|
|
417
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
418
|
+
post_id = 'post_id_example' # String | Unique identifier for the Post
|
|
419
|
+
|
|
420
|
+
begin
|
|
421
|
+
# Delete single post by ID.
|
|
422
|
+
result = api_instance.delete_posts(company_id, post_id)
|
|
423
|
+
p result
|
|
424
|
+
rescue SparteraApiSdk::ApiError => e
|
|
425
|
+
puts "Error when calling PostsApi->delete_posts: #{e}"
|
|
426
|
+
end
|
|
427
|
+
```
|
|
428
|
+
|
|
429
|
+
#### Using the delete_posts_with_http_info variant
|
|
430
|
+
|
|
431
|
+
This returns an Array which contains the response data, status code and headers.
|
|
432
|
+
|
|
433
|
+
> <Array(<DeletePosts200Response>, Integer, Hash)> delete_posts_with_http_info(company_id, post_id)
|
|
434
|
+
|
|
435
|
+
```ruby
|
|
436
|
+
begin
|
|
437
|
+
# Delete single post by ID.
|
|
438
|
+
data, status_code, headers = api_instance.delete_posts_with_http_info(company_id, post_id)
|
|
439
|
+
p status_code # => 2xx
|
|
440
|
+
p headers # => { ... }
|
|
441
|
+
p data # => <DeletePosts200Response>
|
|
442
|
+
rescue SparteraApiSdk::ApiError => e
|
|
443
|
+
puts "Error when calling PostsApi->delete_posts_with_http_info: #{e}"
|
|
444
|
+
end
|
|
445
|
+
```
|
|
446
|
+
|
|
447
|
+
### Parameters
|
|
448
|
+
|
|
449
|
+
| Name | Type | Description | Notes |
|
|
450
|
+
| ---- | ---- | ----------- | ----- |
|
|
451
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
452
|
+
| **post_id** | **String** | Unique identifier for the Post | |
|
|
453
|
+
|
|
454
|
+
### Return type
|
|
455
|
+
|
|
456
|
+
[**DeletePosts200Response**](DeletePosts200Response.md)
|
|
457
|
+
|
|
458
|
+
### Authorization
|
|
459
|
+
|
|
460
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
461
|
+
|
|
462
|
+
### HTTP request headers
|
|
463
|
+
|
|
464
|
+
- **Content-Type**: Not defined
|
|
465
|
+
- **Accept**: application/json
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
## get_posts_by_id
|
|
469
|
+
|
|
470
|
+
> <GetPostsById200Response> get_posts_by_id(company_id, post_id)
|
|
471
|
+
|
|
472
|
+
Get single post by ID.
|
|
473
|
+
|
|
474
|
+
### Examples
|
|
475
|
+
|
|
476
|
+
```ruby
|
|
477
|
+
require 'time'
|
|
478
|
+
require 'spartera_api_sdk'
|
|
479
|
+
# setup authorization
|
|
480
|
+
SparteraApiSdk.configure do |config|
|
|
481
|
+
# Configure API key authorization: ApiKeyAuth
|
|
482
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
483
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
484
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
485
|
+
end
|
|
486
|
+
|
|
487
|
+
api_instance = SparteraApiSdk::PostsApi.new
|
|
488
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
489
|
+
post_id = 'post_id_example' # String | Unique identifier for the Post
|
|
490
|
+
|
|
491
|
+
begin
|
|
492
|
+
# Get single post by ID.
|
|
493
|
+
result = api_instance.get_posts_by_id(company_id, post_id)
|
|
494
|
+
p result
|
|
495
|
+
rescue SparteraApiSdk::ApiError => e
|
|
496
|
+
puts "Error when calling PostsApi->get_posts_by_id: #{e}"
|
|
497
|
+
end
|
|
498
|
+
```
|
|
499
|
+
|
|
500
|
+
#### Using the get_posts_by_id_with_http_info variant
|
|
501
|
+
|
|
502
|
+
This returns an Array which contains the response data, status code and headers.
|
|
503
|
+
|
|
504
|
+
> <Array(<GetPostsById200Response>, Integer, Hash)> get_posts_by_id_with_http_info(company_id, post_id)
|
|
505
|
+
|
|
506
|
+
```ruby
|
|
507
|
+
begin
|
|
508
|
+
# Get single post by ID.
|
|
509
|
+
data, status_code, headers = api_instance.get_posts_by_id_with_http_info(company_id, post_id)
|
|
510
|
+
p status_code # => 2xx
|
|
511
|
+
p headers # => { ... }
|
|
512
|
+
p data # => <GetPostsById200Response>
|
|
513
|
+
rescue SparteraApiSdk::ApiError => e
|
|
514
|
+
puts "Error when calling PostsApi->get_posts_by_id_with_http_info: #{e}"
|
|
515
|
+
end
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
### Parameters
|
|
519
|
+
|
|
520
|
+
| Name | Type | Description | Notes |
|
|
521
|
+
| ---- | ---- | ----------- | ----- |
|
|
522
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
523
|
+
| **post_id** | **String** | Unique identifier for the Post | |
|
|
524
|
+
|
|
525
|
+
### Return type
|
|
526
|
+
|
|
527
|
+
[**GetPostsById200Response**](GetPostsById200Response.md)
|
|
528
|
+
|
|
529
|
+
### Authorization
|
|
530
|
+
|
|
531
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
532
|
+
|
|
533
|
+
### HTTP request headers
|
|
534
|
+
|
|
535
|
+
- **Content-Type**: Not defined
|
|
536
|
+
- **Accept**: application/json
|
|
537
|
+
|
|
538
|
+
|
|
539
|
+
## get_posts_by_id_publications
|
|
540
|
+
|
|
541
|
+
> <GetPostsById200Response> get_posts_by_id_publications(company_id, post_id)
|
|
542
|
+
|
|
543
|
+
Get all publications for a post. Shows where this post has been published to external platforms. Returns: Array of publication records with platform, URL, status
|
|
544
|
+
|
|
545
|
+
### Examples
|
|
546
|
+
|
|
547
|
+
```ruby
|
|
548
|
+
require 'time'
|
|
549
|
+
require 'spartera_api_sdk'
|
|
550
|
+
# setup authorization
|
|
551
|
+
SparteraApiSdk.configure do |config|
|
|
552
|
+
# Configure API key authorization: ApiKeyAuth
|
|
553
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
554
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
555
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
556
|
+
end
|
|
557
|
+
|
|
558
|
+
api_instance = SparteraApiSdk::PostsApi.new
|
|
559
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
560
|
+
post_id = 'post_id_example' # String | Unique identifier for the Post
|
|
561
|
+
|
|
562
|
+
begin
|
|
563
|
+
# Get all publications for a post. Shows where this post has been published to external platforms. Returns: Array of publication records with platform, URL, status
|
|
564
|
+
result = api_instance.get_posts_by_id_publications(company_id, post_id)
|
|
565
|
+
p result
|
|
566
|
+
rescue SparteraApiSdk::ApiError => e
|
|
567
|
+
puts "Error when calling PostsApi->get_posts_by_id_publications: #{e}"
|
|
568
|
+
end
|
|
569
|
+
```
|
|
570
|
+
|
|
571
|
+
#### Using the get_posts_by_id_publications_with_http_info variant
|
|
572
|
+
|
|
573
|
+
This returns an Array which contains the response data, status code and headers.
|
|
574
|
+
|
|
575
|
+
> <Array(<GetPostsById200Response>, Integer, Hash)> get_posts_by_id_publications_with_http_info(company_id, post_id)
|
|
576
|
+
|
|
577
|
+
```ruby
|
|
578
|
+
begin
|
|
579
|
+
# Get all publications for a post. Shows where this post has been published to external platforms. Returns: Array of publication records with platform, URL, status
|
|
580
|
+
data, status_code, headers = api_instance.get_posts_by_id_publications_with_http_info(company_id, post_id)
|
|
581
|
+
p status_code # => 2xx
|
|
582
|
+
p headers # => { ... }
|
|
583
|
+
p data # => <GetPostsById200Response>
|
|
584
|
+
rescue SparteraApiSdk::ApiError => e
|
|
585
|
+
puts "Error when calling PostsApi->get_posts_by_id_publications_with_http_info: #{e}"
|
|
586
|
+
end
|
|
587
|
+
```
|
|
588
|
+
|
|
589
|
+
### Parameters
|
|
590
|
+
|
|
591
|
+
| Name | Type | Description | Notes |
|
|
592
|
+
| ---- | ---- | ----------- | ----- |
|
|
593
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
594
|
+
| **post_id** | **String** | Unique identifier for the Post | |
|
|
595
|
+
|
|
596
|
+
### Return type
|
|
597
|
+
|
|
598
|
+
[**GetPostsById200Response**](GetPostsById200Response.md)
|
|
599
|
+
|
|
600
|
+
### Authorization
|
|
601
|
+
|
|
602
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
603
|
+
|
|
604
|
+
### HTTP request headers
|
|
605
|
+
|
|
606
|
+
- **Content-Type**: Not defined
|
|
607
|
+
- **Accept**: application/json
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
## list_posts
|
|
611
|
+
|
|
612
|
+
> <ListPosts200Response> list_posts(company_id, opts)
|
|
613
|
+
|
|
614
|
+
Get a list of all posts for the user's company. Supports filtering, sorting, pagination.
|
|
615
|
+
|
|
616
|
+
### Examples
|
|
617
|
+
|
|
618
|
+
```ruby
|
|
619
|
+
require 'time'
|
|
620
|
+
require 'spartera_api_sdk'
|
|
621
|
+
# setup authorization
|
|
622
|
+
SparteraApiSdk.configure do |config|
|
|
623
|
+
# Configure API key authorization: ApiKeyAuth
|
|
624
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
625
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
626
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
627
|
+
end
|
|
628
|
+
|
|
629
|
+
api_instance = SparteraApiSdk::PostsApi.new
|
|
630
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
631
|
+
opts = {
|
|
632
|
+
page: 56, # Integer | Page number for pagination
|
|
633
|
+
limit: 56, # Integer | Number of items per page
|
|
634
|
+
sort_by: 'sort_by_example', # String | Field to sort by
|
|
635
|
+
sort_order: 'asc', # String | Sort order (ascending or descending)
|
|
636
|
+
search: 'search_example' # String | Search term to filter results
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
begin
|
|
640
|
+
# Get a list of all posts for the user's company. Supports filtering, sorting, pagination.
|
|
641
|
+
result = api_instance.list_posts(company_id, opts)
|
|
642
|
+
p result
|
|
643
|
+
rescue SparteraApiSdk::ApiError => e
|
|
644
|
+
puts "Error when calling PostsApi->list_posts: #{e}"
|
|
645
|
+
end
|
|
646
|
+
```
|
|
647
|
+
|
|
648
|
+
#### Using the list_posts_with_http_info variant
|
|
649
|
+
|
|
650
|
+
This returns an Array which contains the response data, status code and headers.
|
|
651
|
+
|
|
652
|
+
> <Array(<ListPosts200Response>, Integer, Hash)> list_posts_with_http_info(company_id, opts)
|
|
653
|
+
|
|
654
|
+
```ruby
|
|
655
|
+
begin
|
|
656
|
+
# Get a list of all posts for the user's company. Supports filtering, sorting, pagination.
|
|
657
|
+
data, status_code, headers = api_instance.list_posts_with_http_info(company_id, opts)
|
|
658
|
+
p status_code # => 2xx
|
|
659
|
+
p headers # => { ... }
|
|
660
|
+
p data # => <ListPosts200Response>
|
|
661
|
+
rescue SparteraApiSdk::ApiError => e
|
|
662
|
+
puts "Error when calling PostsApi->list_posts_with_http_info: #{e}"
|
|
663
|
+
end
|
|
664
|
+
```
|
|
665
|
+
|
|
666
|
+
### Parameters
|
|
667
|
+
|
|
668
|
+
| Name | Type | Description | Notes |
|
|
669
|
+
| ---- | ---- | ----------- | ----- |
|
|
670
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
671
|
+
| **page** | **Integer** | Page number for pagination | [optional][default to 1] |
|
|
672
|
+
| **limit** | **Integer** | Number of items per page | [optional][default to 20] |
|
|
673
|
+
| **sort_by** | **String** | Field to sort by | [optional] |
|
|
674
|
+
| **sort_order** | **String** | Sort order (ascending or descending) | [optional][default to 'desc'] |
|
|
675
|
+
| **search** | **String** | Search term to filter results | [optional] |
|
|
676
|
+
|
|
677
|
+
### Return type
|
|
678
|
+
|
|
679
|
+
[**ListPosts200Response**](ListPosts200Response.md)
|
|
680
|
+
|
|
681
|
+
### Authorization
|
|
682
|
+
|
|
683
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
684
|
+
|
|
685
|
+
### HTTP request headers
|
|
686
|
+
|
|
687
|
+
- **Content-Type**: Not defined
|
|
688
|
+
- **Accept**: application/json
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
## list_posts_summary
|
|
692
|
+
|
|
693
|
+
> <ListPosts200Response> list_posts_summary(company_id, opts)
|
|
694
|
+
|
|
695
|
+
GET /companies/{company_id}/posts/summary
|
|
696
|
+
|
|
697
|
+
### Examples
|
|
698
|
+
|
|
699
|
+
```ruby
|
|
700
|
+
require 'time'
|
|
701
|
+
require 'spartera_api_sdk'
|
|
702
|
+
# setup authorization
|
|
703
|
+
SparteraApiSdk.configure do |config|
|
|
704
|
+
# Configure API key authorization: ApiKeyAuth
|
|
705
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
706
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
707
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
708
|
+
end
|
|
709
|
+
|
|
710
|
+
api_instance = SparteraApiSdk::PostsApi.new
|
|
711
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
712
|
+
opts = {
|
|
713
|
+
page: 56, # Integer | Page number for pagination
|
|
714
|
+
limit: 56, # Integer | Number of items per page
|
|
715
|
+
sort_by: 'sort_by_example', # String | Field to sort by
|
|
716
|
+
sort_order: 'asc', # String | Sort order (ascending or descending)
|
|
717
|
+
search: 'search_example' # String | Search term to filter results
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
begin
|
|
721
|
+
# GET /companies/{company_id}/posts/summary
|
|
722
|
+
result = api_instance.list_posts_summary(company_id, opts)
|
|
723
|
+
p result
|
|
724
|
+
rescue SparteraApiSdk::ApiError => e
|
|
725
|
+
puts "Error when calling PostsApi->list_posts_summary: #{e}"
|
|
726
|
+
end
|
|
727
|
+
```
|
|
728
|
+
|
|
729
|
+
#### Using the list_posts_summary_with_http_info variant
|
|
730
|
+
|
|
731
|
+
This returns an Array which contains the response data, status code and headers.
|
|
732
|
+
|
|
733
|
+
> <Array(<ListPosts200Response>, Integer, Hash)> list_posts_summary_with_http_info(company_id, opts)
|
|
734
|
+
|
|
735
|
+
```ruby
|
|
736
|
+
begin
|
|
737
|
+
# GET /companies/{company_id}/posts/summary
|
|
738
|
+
data, status_code, headers = api_instance.list_posts_summary_with_http_info(company_id, opts)
|
|
739
|
+
p status_code # => 2xx
|
|
740
|
+
p headers # => { ... }
|
|
741
|
+
p data # => <ListPosts200Response>
|
|
742
|
+
rescue SparteraApiSdk::ApiError => e
|
|
743
|
+
puts "Error when calling PostsApi->list_posts_summary_with_http_info: #{e}"
|
|
744
|
+
end
|
|
745
|
+
```
|
|
746
|
+
|
|
747
|
+
### Parameters
|
|
748
|
+
|
|
749
|
+
| Name | Type | Description | Notes |
|
|
750
|
+
| ---- | ---- | ----------- | ----- |
|
|
751
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
752
|
+
| **page** | **Integer** | Page number for pagination | [optional][default to 1] |
|
|
753
|
+
| **limit** | **Integer** | Number of items per page | [optional][default to 20] |
|
|
754
|
+
| **sort_by** | **String** | Field to sort by | [optional] |
|
|
755
|
+
| **sort_order** | **String** | Sort order (ascending or descending) | [optional][default to 'desc'] |
|
|
756
|
+
| **search** | **String** | Search term to filter results | [optional] |
|
|
757
|
+
|
|
758
|
+
### Return type
|
|
759
|
+
|
|
760
|
+
[**ListPosts200Response**](ListPosts200Response.md)
|
|
761
|
+
|
|
762
|
+
### Authorization
|
|
763
|
+
|
|
764
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
765
|
+
|
|
766
|
+
### HTTP request headers
|
|
767
|
+
|
|
768
|
+
- **Content-Type**: Not defined
|
|
769
|
+
- **Accept**: application/json
|
|
770
|
+
|
|
771
|
+
|
|
772
|
+
## update_posts
|
|
773
|
+
|
|
774
|
+
> <UpdatePosts200Response> update_posts(company_id, post_id, posts_update)
|
|
775
|
+
|
|
776
|
+
Update an existing post by ID. Note: last_edited_at is automatically updated.
|
|
777
|
+
|
|
778
|
+
### Examples
|
|
779
|
+
|
|
780
|
+
```ruby
|
|
781
|
+
require 'time'
|
|
782
|
+
require 'spartera_api_sdk'
|
|
783
|
+
# setup authorization
|
|
784
|
+
SparteraApiSdk.configure do |config|
|
|
785
|
+
# Configure API key authorization: ApiKeyAuth
|
|
786
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
787
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
788
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
789
|
+
end
|
|
790
|
+
|
|
791
|
+
api_instance = SparteraApiSdk::PostsApi.new
|
|
792
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
793
|
+
post_id = 'post_id_example' # String | Unique identifier for the Post
|
|
794
|
+
posts_update = SparteraApiSdk::PostsUpdate.new # PostsUpdate |
|
|
795
|
+
|
|
796
|
+
begin
|
|
797
|
+
# Update an existing post by ID. Note: last_edited_at is automatically updated.
|
|
798
|
+
result = api_instance.update_posts(company_id, post_id, posts_update)
|
|
799
|
+
p result
|
|
800
|
+
rescue SparteraApiSdk::ApiError => e
|
|
801
|
+
puts "Error when calling PostsApi->update_posts: #{e}"
|
|
802
|
+
end
|
|
803
|
+
```
|
|
804
|
+
|
|
805
|
+
#### Using the update_posts_with_http_info variant
|
|
806
|
+
|
|
807
|
+
This returns an Array which contains the response data, status code and headers.
|
|
808
|
+
|
|
809
|
+
> <Array(<UpdatePosts200Response>, Integer, Hash)> update_posts_with_http_info(company_id, post_id, posts_update)
|
|
810
|
+
|
|
811
|
+
```ruby
|
|
812
|
+
begin
|
|
813
|
+
# Update an existing post by ID. Note: last_edited_at is automatically updated.
|
|
814
|
+
data, status_code, headers = api_instance.update_posts_with_http_info(company_id, post_id, posts_update)
|
|
815
|
+
p status_code # => 2xx
|
|
816
|
+
p headers # => { ... }
|
|
817
|
+
p data # => <UpdatePosts200Response>
|
|
818
|
+
rescue SparteraApiSdk::ApiError => e
|
|
819
|
+
puts "Error when calling PostsApi->update_posts_with_http_info: #{e}"
|
|
820
|
+
end
|
|
821
|
+
```
|
|
822
|
+
|
|
823
|
+
### Parameters
|
|
824
|
+
|
|
825
|
+
| Name | Type | Description | Notes |
|
|
826
|
+
| ---- | ---- | ----------- | ----- |
|
|
827
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
828
|
+
| **post_id** | **String** | Unique identifier for the Post | |
|
|
829
|
+
| **posts_update** | [**PostsUpdate**](PostsUpdate.md) | | |
|
|
830
|
+
|
|
831
|
+
### Return type
|
|
832
|
+
|
|
833
|
+
[**UpdatePosts200Response**](UpdatePosts200Response.md)
|
|
834
|
+
|
|
835
|
+
### Authorization
|
|
836
|
+
|
|
837
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
838
|
+
|
|
839
|
+
### HTTP request headers
|
|
840
|
+
|
|
841
|
+
- **Content-Type**: application/json
|
|
842
|
+
- **Accept**: application/json
|
|
843
|
+
|