Edit Post

edit post

post
/v2/post/update

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 · enumOptional

kind of post (1: article, 2: gallery, 3: announcement, 4: event, 6: testimoni, 7: schedule)

Possible values:
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 · enumOptional

(opsional) used for post with event kind

Possible values:
cityIdintegerOptional

city id of post with event kind

Responses
200

Response

application/json
post
/v2/post/update
POST /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