Integration Change State
Integration
Integration Change State
Endpoint to change the state of a specific GPT integration. Allows admin users to transition an integration to a new lifecycle state (e.g., DRAFT, PUBLISHED).
Args:
gpt_name (str): The name of the integration (typically aligned with a GPT name).
new_state (States): The new target state to apply to the integration (default is DRAFT).
Returns: dict: A success message confirming the state change.
Raises: HTTPException 404: If the integration with the specified name does not exist. HTTPException 500: If any error occurs during the update process.
