Save blog post

POST /api/blog/save

saves a blog post

application/json

Body Required

Request Body

Responses

POST /api/blog/save
curl \
 -X POST http://api.example.com/api/blog/save \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"permissions":{"view":true,"edit":false,"admin":false,"delete":false},"_source":{"relatedTo":"agreementt","date":"2024-05-04T09:42:00+00:00","created":"2024-05-04T09:42:00+00:00","relatedID":42,"categoryID":6,"sticky":1,"importance":4,"modified":"2024-05-04T09:42:00+00:00","id":42,"documentID":42,"document":{"fileType":"pdf","shortDescription":"string","timeSensitive":true,"validFrom":"2024-05-04T09:42:00+00:00","size":1023752,"id":42,"name":"FileName"},"comments":[{"CONTENT":"An example comment!","SECURITY":"public","COMPANY_ID":42,"RELATEDID":42,"REMINDERDATE":"2024-05-04T09:42:00+00:00","TYPE_ID":42,"permissions":{"view":true,"edit":false,"admin":false,"delete":false},"CONTACTID":42,"CTYPE":"note","SURNAME":"Bloggs","FIRST_NAME":"Joe","STAMP":"2024-05-04T09:42:00+00:00","STATUS":"open","RELATIONSHIPURL":"string","ATTACHMENTS":"string","ID":42,"RELATEDSUBTYPE":"string","TITLE":"comment title","RELATEDTYPE":"blog","EMAIL":"hello@example.com"}],"title":"Example News Heading","deal":{"period_from":"2024-05-04","supplierName":"Supplier Name","supplierID":"string","name":"Deal Name","period_to":"2024-05-04"},"description":"Example News Body"}}'
Request examples
{
  "permissions": {
    "view": true,
    "edit": false,
    "admin": false,
    "delete": false
  },
  "_source": {
    "relatedTo": "agreementt",
    "date": "2024-05-04T09:42:00+00:00",
    "created": "2024-05-04T09:42:00+00:00",
    "relatedID": 42,
    "categoryID": 6,
    "sticky": 1,
    "importance": 4,
    "modified": "2024-05-04T09:42:00+00:00",
    "id": 42,
    "documentID": 42,
    "document": {
      "fileType": "pdf",
      "shortDescription": "string",
      "timeSensitive": true,
      "validFrom": "2024-05-04T09:42:00+00:00",
      "size": 1023752,
      "id": 42,
      "name": "FileName"
    },
    "comments": [
      {
        "CONTENT": "An example comment!",
        "SECURITY": "public",
        "COMPANY_ID": 42,
        "RELATEDID": 42,
        "REMINDERDATE": "2024-05-04T09:42:00+00:00",
        "TYPE_ID": 42,
        "permissions": {
          "view": true,
          "edit": false,
          "admin": false,
          "delete": false
        },
        "CONTACTID": 42,
        "CTYPE": "note",
        "SURNAME": "Bloggs",
        "FIRST_NAME": "Joe",
        "STAMP": "2024-05-04T09:42:00+00:00",
        "STATUS": "open",
        "RELATIONSHIPURL": "string",
        "ATTACHMENTS": "string",
        "ID": 42,
        "RELATEDSUBTYPE": "string",
        "TITLE": "comment title",
        "RELATEDTYPE": "blog",
        "EMAIL": "hello@example.com"
      }
    ],
    "title": "Example News Heading",
    "deal": {
      "period_from": "2024-05-04",
      "supplierName": "Supplier Name",
      "supplierID": "string",
      "name": "Deal Name",
      "period_to": "2024-05-04"
    },
    "description": "Example News Body"
  }
}