POST /api/v2/news/set
Creates a new news item or updates an existing one for a given event.
Authentication
Authorization: Bearer <your_api_key>
Endpoint
POST /api/v2/news/set
Content-Type: multipart/form-data
Create vs Update
-
Create: Omit
id.event_id,title,text,short, andauthorare required -
Update: Pass the
idof the existing news item. Other fields are optional
Body Parameters
Required on create
|
Parameter |
Type |
Description |
|---|---|---|
|
|
integer |
The event this news item belongs to |
|
|
string |
News headline (max 255 chars) |
|
|
string |
Full article body |
|
|
string |
Short teaser / excerpt (max 200 chars) |
|
|
string |
Author name (max 255 chars) |
Optional
|
Parameter |
Type |
Description |
|---|---|---|
|
|
integer |
When provided, updates the matching news item |
|
|
string |
|
|
|
integer/boolean |
|
|
|
file or URL |
Main article image ( |
|
|
file or URL |
Header image |
|
|
string or integer |
Publication date — Unix timestamp or date string |
|
|
integer |
Links the news item to an exhibitor |
|
|
string |
Comma-separated tag names |
|
|
string |
Comma-separated product category IDs |
Cross-entity dependency
exhibitor_id— useGET /api/v2/exhibitor/getListorGET /api/v2/exhibitors/{eventId}/listto retrieve valid exhibitor IDs.
Error Responses
|
HTTP Code |
Condition |
Error Message |
|---|---|---|
|
400 |
|
|
|
400 |
Required field missing |
|
|
403 |
Missing or invalid API key |
|