Add or Edit Content
Add new content or update existing content.
POST /api/content
Request Body
{
"id": "number?", // Optional: if present, update that content
"title": "string",
"description": "string",
"type": "article" | "video" | "post",
"visibility": "public" | "private" | "members",
"GroupIds": ["number"], // Optional: assign content to these groups
"KeywordIds": ["number"], // Optional: assign keywords to content
"featuredImage": "string?",
"video": "string?",
"chatEnabled": "boolean",
"featured": "boolean",
"publishedDate": "string?",
"expireDate": "string?"
}
Response
[
{
"id": "number",
"title": "string",
"slug": "string",
"description": "string",
"featuredImage": "string?",
"type": "article" | "video" | "post",
"contentURI": "string?",
"video": "string?",
"chatEnabled": "boolean",
"options": "object?",
"visibility": "public" | "private" | "members",
"expireDate": "string?",
"publishedDate": "string?",
"featured": "boolean",
"createdAt": "string",
"updatedAt": "string",
"PlatformId": "number",
"UserId": "number",
"Groups": [],
"Keywords": [],
"User": {
// User details
}
},
true // isNewRecord boolean
]