POST api/UserCredits/InsertUpateUserCredits

Request Information

URI Parameters

None.

Body Parameters

Collection of UserCreditsModel
NameDescriptionTypeAdditional information
UserCreditsID

integer

None.

UsersID

integer

None.

BrandGroupingID

integer

None.

Amount

decimal number

None.

CreatedDate

string

None.

UpdatedDate

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "UserCreditsID": 1,
    "UsersID": 1,
    "BrandGroupingID": 1,
    "Amount": 2.0,
    "CreatedDate": "sample string 3",
    "UpdatedDate": "sample string 4"
  },
  {
    "UserCreditsID": 1,
    "UsersID": 1,
    "BrandGroupingID": 1,
    "Amount": 2.0,
    "CreatedDate": "sample string 3",
    "UpdatedDate": "sample string 4"
  }
]

application/xml, text/xml

Sample:
<ArrayOfUserCreditsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RecycleGreenAPILibrary.BusinessModel">
  <UserCreditsModel>
    <CreatedDate>sample string 3</CreatedDate>
    <UpdatedDate>sample string 4</UpdatedDate>
    <Amount>2</Amount>
    <BrandGroupingID>1</BrandGroupingID>
    <UserCreditsID>1</UserCreditsID>
    <UsersID>1</UsersID>
  </UserCreditsModel>
  <UserCreditsModel>
    <CreatedDate>sample string 3</CreatedDate>
    <UpdatedDate>sample string 4</UpdatedDate>
    <Amount>2</Amount>
    <BrandGroupingID>1</BrandGroupingID>
    <UserCreditsID>1</UserCreditsID>
    <UsersID>1</UsersID>
  </UserCreditsModel>
</ArrayOfUserCreditsModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'List`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.