trustcafe-api-wrapper/src/trustcafeapiwrapper/jobs/post/create.py
2026-04-02 16:57:24 +01:00

12 lines
No EOL
328 B
Python

def create(API, payload: dict) -> dict:
"""
Creates a new post in the API.
Args:
payload (dict): The data for the new post.
Returns:
dict: The post data.
"""
post_data = API.make_request("POST", "content", "post", data=payload, authenticate=True)
return post_data