create_product_api_page
async
¶
create_product_api_page(
product_id: ProductId,
managed_api_id: ManagedApiId,
*,
config_overrides: Optional[AsyncAPIPortalClientConfig] = None,
display_content: Optional[ApiPageDisplayContent] = None,
try_it_state: Optional[TryItState] = None,
tags: Optional[Tags] = None,
) -> CreateProductApiPageResponse
Creates an API page that documents a Managed API in a product. The page content is generated asynchronously. Use status to track it.
Parameters:
-
product_id(ProductId) –The identifier of the product.
-
managed_api_id(ManagedApiId) –The Managed API this page documents. It must already be associated with the product, and the page's API identifier is taken from the Managed API rather than supplied by the caller.
-
try_it_state(Optional[TryItState], default:None) –Whether readers can call the API from the page with Try-It. Defaults to
DISABLED. To enable it, the page's API URL must use HTTPS on a domain that supports Try-It.
Raises:
-
AccessDeniedException–You do not have permission to perform this operation.
-
BadRequestException–The request is not valid. The message identifies the field or value that failed validation.
-
LimitExceededException–The request rate or a service quota was exceeded. Reduce the request rate or the number of resources and try again.
-
ResourceNotFoundException–The requested resource does not exist, or you do not have access to it.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_apiportal/_services/async_api_portal.py
2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 | |