update_product
async
¶
update_product(
product_id: ProductId,
*,
config_overrides: Optional[AsyncAPIPortalClientConfig] = None,
display_name: Optional[ProductName] = None,
description: Optional[ProductDescription] = None,
display_order: Optional[DisplayOrder] = None,
api_selection_configuration: Optional[ApiSelectionConfiguration] = None,
) -> UpdateProductResponse
Updates a product. Only the fields supplied in the request are changed.
Parameters:
-
product_id(ProductId) –The identifier of the product.
-
display_name(Optional[ProductName], default:None) –The new name of the product. Omit it to keep the current name.
-
description(Optional[ProductDescription], default:None) –The new description of the product. Omit it to keep the current description.
-
display_order(Optional[DisplayOrder], default:None) –The new page order. Omit it to keep the current order.
-
api_selection_configuration(Optional[ApiSelectionConfiguration], default:None) –The new API selection settings. The selection mode must match the mode the product was created with. Omit it to keep the current settings.
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
1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 | |