Edit Creative Data Endpoint
Updates creative data for a specified post ID.
This endpoint updates the creative data associated with a specific post ID using the provided data in the CreativeData model. It requires the user to be authenticated via a JWT token. The user's information is extracted and can be utilized for authorization or logging.
Args: data (CreativeData): A Pydantic model containing the new creative data to update. post_id (str): The ID of the post whose creative data is being updated. user (Users): The authenticated user object, obtained through JWT authentication. db (Session): The database session, provided by the dependency injection system.
Returns: dict: A JSON response containing the updated creative data if the update is successful.
Raises: HTTPException: - Raises a 400 error if there is an issue with the update process. - Raises a 404 error if the creative data for the specified post ID cannot be found.
Query parameters
The ID of the post to fetch creative data for.
The ID of the post to fetch creative data for.
Request body
Response
Successful Response
Changes
No recorded changes to this endpoint across all 1 revision of this API.