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.
Request
- Base URLhttps://api.brandbooster.ai (the document declares no server; this is the origin it was published from)
- URLhttps://api.brandbooster.ai/api/v1/share/edit_creative_data
- AuthHTTP bearer
Query parameters
The ID of the post to fetch creative data for.
Request body
Response
Successful Response
Changes
No operation changes recorded.