Create Post
create post
Authorizations
AuthorizationstringRequired
Body
startstringOptional
start date of post with event kind in format YYYY-MM-DD HH:ii:ss
summarystringOptional
summary of post
cityIdintegerOptional
city id of post with event kind
contentstringOptional
content of post (for event kind offline type, use this format 'address|event description')
endstringOptional
end date of post with event kind in format YYYY-MM-DD HH:ii:ss
linkstringOptional
link url for event kind post (gmaps / zoom / gmeet)
subtitlestringOptional
subtitle of post
titlestringOptional
title of post
typestring · enumOptionalPossible values:
(opsional) used for post with event kind
activeintegerOptional
active = 1 indicates that post is active
coverstringOptional
cover url of post
kindinteger · enumOptionalPossible values:
kind of post (1: article, 2: gallery, 3: announcement, 4: event, 6: testimoni, 7: schedule)
Responses
200
Response
application/json
post
/v1/post/createPOST /v1/post/create HTTP/1.1
Host: services.alkamedia.id
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 173
{
"start": "text",
"summary": "text",
"cityId": 1,
"content": "text",
"end": "text",
"link": "text",
"subtitle": "text",
"title": "text",
"type": "offline",
"active": 1,
"cover": "text",
"kind": 1
}200
Response
{
"data": {
"authorId": 1,
"cityId": 1,
"content": "text",
"cover": "text",
"end": "text",
"summary": "text",
"link": "text",
"title": "text",
"type": "offline",
"updated_at": "text",
"kind": 1,
"active": 1,
"created_at": "text",
"id": 1,
"start": "text",
"subtitle": "text",
"uuid": "text"
},
"message": "success",
"status": true
}Last updated