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