POST api/Blogs

Creates new blog.

Request Information

URI Parameters

None.

Body Parameters

Blog
NameDescriptionTypeAdditional information
BlogId

integer

None.

VehicleId

integer

Required

Vehicle

Vehicle

Required

Name

string

Required

Max length: 65365

HeadLine

string

Max length: 255

AuthorId

integer

Required

Author

UserInt

None.

UserBlogConnections

Collection of UserBlogConnection

None.

CreatedAt

date

None.

CreatedBy

string

Max length: 256

UpdatedAt

date

None.

UpdatedBy

string

Max length: 256

Request Formats

application/json, text/json

Sample:
{
  "blogId": 1,
  "vehicleId": 2,
  "vehicle": {
    "$id": "2",
    "vehicleId": 1,
    "userId": 2,
    "user": {
      "$id": "3",
      "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-02T20:46:32.417Z",
      "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": "4",
          "id": 1,
          "userId": 2,
          "user": {
            "$ref": "3"
          },
          "claimType": "sample string 3",
          "claimValue": "sample string 4"
        },
        {
          "$ref": "4"
        }
      ],
      "logins": [
        {
          "$id": "5",
          "loginProvider": "sample string 1",
          "providerKey": "sample string 2",
          "userId": 3,
          "user": {
            "$ref": "3"
          }
        },
        {
          "$ref": "5"
        }
      ],
      "roles": [
        {
          "$id": "6",
          "userId": 1,
          "user": {
            "$ref": "3"
          },
          "roleId": 2,
          "role": {
            "$id": "7",
            "id": 1,
            "name": "sample string 2",
            "users": [
              {
                "$ref": "6"
              },
              {
                "$ref": "6"
              }
            ]
          }
        },
        {
          "$ref": "6"
        }
      ],
      "createdAt": "2024-05-02T20:46:32.417Z",
      "createdBy": "sample string 15",
      "updatedAt": "2024-05-02T20:46:32.417Z",
      "updatedBy": "sample string 17"
    },
    "make": "sample string 3",
    "model": "sample string 4",
    "year": 5,
    "kw": 6,
    "engine": "sample string 7",
    "blog": {
      "$ref": "1"
    },
    "createdAt": "2024-05-02T20:46:32.417Z",
    "createdBy": "sample string 9",
    "updatedAt": "2024-05-02T20:46:32.417Z",
    "updatedBy": "sample string 11"
  },
  "name": "sample string 3",
  "headLine": "sample string 4",
  "authorId": 5,
  "author": {
    "$ref": "3"
  },
  "userBlogConnections": [
    {
      "$id": "8",
      "userBlogConnectionId": 1,
      "userId": 2,
      "user": {
        "$ref": "3"
      },
      "blogId": 3,
      "blog": {
        "$ref": "1"
      },
      "createdAt": "2024-05-02T20:46:32.417Z",
      "createdBy": "sample string 5",
      "updatedAt": "2024-05-02T20:46:32.417Z",
      "updatedBy": "sample string 7"
    },
    {
      "$ref": "8"
    }
  ],
  "createdAt": "2024-05-02T20:46:32.417Z",
  "createdBy": "sample string 7",
  "updatedAt": "2024-05-02T20:46:32.417Z",
  "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.