POST api/BlogPosts

Creates new blog post

Request Information

URI Parameters

None.

Body Parameters

BlogPost
NameDescriptionTypeAdditional information
BlogPostId

integer

None.

BlogId

integer

Required

Blog

Blog

None.

Title

string

Max length: 255

Message

string

Required

Max length: 65365

AuthorId

integer

Required

Author

UserInt

None.

CreatedAt

date

None.

CreatedBy

string

Max length: 256

UpdatedAt

date

None.

UpdatedBy

string

Max length: 256

Request Formats

application/json, text/json

Sample:
{
  "blogPostId": 1,
  "blogId": 2,
  "blog": {
    "$id": "2",
    "blogId": 1,
    "vehicleId": 2,
    "vehicle": {
      "$id": "3",
      "vehicleId": 1,
      "userId": 2,
      "user": {
        "$id": "4",
        "id": 1,
        "email": "sample string 2",
        "emailConfirmed": true,
        "passwordHash": "sample string 4",
        "securityStamp": "sample string 5",
        "phoneNumber": "sample string 6",
        "phoneNumberConfirmed": true,
        "twoFactorEnabled": true,
        "lockoutEndDateUtc": "2024-05-02T15:24:45.843Z",
        "lockoutEnabled": true,
        "accessFailedCount": 10,
        "userName": "sample string 11",
        "firstName": "sample string 12",
        "lastName": "sample string 13",
        "firstLastName": "sample string 12 sample string 13",
        "lastFirstName": "sample string 13 sample string 12",
        "claims": [
          {
            "$id": "5",
            "id": 1,
            "userId": 2,
            "user": {
              "$ref": "4"
            },
            "claimType": "sample string 3",
            "claimValue": "sample string 4"
          },
          {
            "$ref": "5"
          }
        ],
        "logins": [
          {
            "$id": "6",
            "loginProvider": "sample string 1",
            "providerKey": "sample string 2",
            "userId": 3,
            "user": {
              "$ref": "4"
            }
          },
          {
            "$ref": "6"
          }
        ],
        "roles": [
          {
            "$id": "7",
            "userId": 1,
            "user": {
              "$ref": "4"
            },
            "roleId": 2,
            "role": {
              "$id": "8",
              "id": 1,
              "name": "sample string 2",
              "users": [
                {
                  "$ref": "7"
                },
                {
                  "$ref": "7"
                }
              ]
            }
          },
          {
            "$ref": "7"
          }
        ],
        "createdAt": "2024-05-02T15:24:45.843Z",
        "createdBy": "sample string 15",
        "updatedAt": "2024-05-02T15:24:45.843Z",
        "updatedBy": "sample string 17"
      },
      "make": "sample string 3",
      "model": "sample string 4",
      "year": 5,
      "kw": 6,
      "engine": "sample string 7",
      "blog": {
        "$ref": "2"
      },
      "createdAt": "2024-05-02T15:24:45.843Z",
      "createdBy": "sample string 9",
      "updatedAt": "2024-05-02T15:24:45.843Z",
      "updatedBy": "sample string 11"
    },
    "name": "sample string 3",
    "headLine": "sample string 4",
    "authorId": 5,
    "author": {
      "$ref": "4"
    },
    "userBlogConnections": [
      {
        "$id": "9",
        "userBlogConnectionId": 1,
        "userId": 2,
        "user": {
          "$ref": "4"
        },
        "blogId": 3,
        "blog": {
          "$ref": "2"
        },
        "createdAt": "2024-05-02T15:24:45.843Z",
        "createdBy": "sample string 5",
        "updatedAt": "2024-05-02T15:24:45.843Z",
        "updatedBy": "sample string 7"
      },
      {
        "$ref": "9"
      }
    ],
    "createdAt": "2024-05-02T15:24:45.843Z",
    "createdBy": "sample string 7",
    "updatedAt": "2024-05-02T15:24:45.843Z",
    "updatedBy": "sample string 9"
  },
  "title": "sample string 3",
  "message": "sample string 4",
  "authorId": 5,
  "author": {
    "$ref": "4"
  },
  "createdAt": "2024-05-02T15:24:45.843Z",
  "createdBy": "sample string 7",
  "updatedAt": "2024-05-02T15:24:45.843Z",
  "updatedBy": "sample string 9"
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.