update_product
¶
update_product(
product_id: ProductId,
*,
config_overrides: Optional[APIPortalClientConfig] = 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/api_portal.py
1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 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 | |