Create Post

create post

post
/v1/post/create

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

(opsional) used for post with event kind

Possible values:
activeintegerOptional

active = 1 indicates that post is active

coverstringOptional

cover url of post

kindinteger · enumOptional

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

Possible values:
Responses
200

Response

application/json
post
/v1/post/create
POST /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