Skip to main content
PATCH
/
content
/
{content}
Update a post
curl --request PATCH \
  --url https://api.example.com/content/{content} \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "body": "<string>",
  "visibility": {
    "all_units": true,
    "units": [
      123
    ],
    "units_falldown": [
      123
    ],
    "userTypes": [
      123
    ]
  },
  "sharing": {
    "shares": [
      123
    ]
  },
  "comments": {
    "enabled": true
  },
  "confirm": {
    "enabled": true
  },
  "show_in_feed": true,
  "publish": {
    "status": true,
    "publish_on": 123,
    "unpublish_on": 123
  },
  "important": true,
  "poll": {
    "question": "<string>",
    "type": "<string>",
    "close_at": 123,
    "allow_user_choices": true,
    "anonymous": true,
    "mandatory": true,
    "choices": [
      {
        "id": 123,
        "title": "<string>"
      }
    ]
  },
  "pinned": {
    "show_in_main_feed": true,
    "until": 123
  },
  "event": {
    "location": "<string>",
    "link": "<string>",
    "all_day": true,
    "datetime_start": "<string>",
    "datetime_end": "<string>",
    "participation": {
      "enabled": true
    },
    "recurrence": {
      "freq": "<string>",
      "until": "2023-11-07T05:31:56Z",
      "count": 123,
      "interval": 123,
      "bymonthday": 123,
      "bymonth": 123,
      "bysetpos": 123
    },
    "repeat_rules": "<string>",
    "end_date": "2023-12-25",
    "timezone": "<string>"
  }
}
'

Path Parameters

content
integer
required

Content ID

Body

application/json
title
string | null
Maximum string length: 255
body
string | null
visibility
object
sharing
object
comments
object
confirm
object
show_in_feed
boolean

Show post in feed

publish
object
important
boolean

Mark post as important

poll
object
pinned
object
event
object

Response

204

Post updated