POST api/GiveRating

Request Information

URI Parameters

None.

Body Parameters

GiveRatingPost
NameDescriptionTypeAdditional information
RideId

integer

None.

AccountId

integer

None.

CompanyId

integer

None.

Rating

decimal number

None.

Comment

string

None.

UserType

integer

None.

RatingDateTime

date

None.

Request Formats

application/json, text/json

Sample:
{
  "RideId": 1,
  "AccountId": 2,
  "CompanyId": 3,
  "Rating": 4.1,
  "Comment": "sample string 5",
  "UserType": 6,
  "RatingDateTime": "2025-12-17T07:09:42.1626295+01:00"
}

application/xml, text/xml

Sample:
<GiveRatingPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cabie.API.Models.Rating.Post">
  <AccountId>2</AccountId>
  <Comment>sample string 5</Comment>
  <CompanyId>3</CompanyId>
  <Rating>4.1</Rating>
  <RatingDateTime>2025-12-17T07:09:42.1626295+01:00</RatingDateTime>
  <RideId>1</RideId>
  <UserType>6</UserType>
</GiveRatingPost>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GiveRatingResponse
NameDescriptionTypeAdditional information
IsOk

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "IsOk": true
}

application/xml, text/xml

Sample:
<GiveRatingResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cabie.API.Models.Rating.Response">
  <IsOk>true</IsOk>
</GiveRatingResponse>