PUT api/Users/{id}

Adds credits to an existing user.

Request Information

Parameters

NameDescriptionAdditional information
id
The user ID.

Define this parameter in the request URI.

pack
The credit data.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "IsSubscription": true,
  "Amount": 3
}

application/xml, text/xml

Sample:
<CreditPack xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RecordiaIntegrationWS.Models">
  <Amount>3</Amount>
  <IsSubscription>true</IsSubscription>
  <Name>sample string 1</Name>
</CreditPack>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'FormUrlEncodedMediaTypeFormatterTracer' to write type 'CreditPack'.

Response Information

Response body formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>