POST api/forest/update

Updates the user's forest statistics based on recycling activity

Request Information

URI Parameters

None.

Body Parameters

forest_request
NameDescriptionTypeAdditional information
co2Amount

string

None.

recycledItems

string

None.

Request Formats

application/json, text/json

Sample:
{
  "co2Amount": "sample string 1",
  "recycledItems": "sample string 2"
}

application/xml, text/xml

Sample:
<SQLFunction.forest_Update.forest_request xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RESTapi20.AppsDAL">
  <co2Amount>sample string 1</co2Amount>
  <recycledItems>sample string 2</recycledItems>
</SQLFunction.forest_Update.forest_request>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

forest_Update
NameDescriptionTypeAdditional information
data

forest_data

None.

success

boolean

None.

message

string

None.

Response Formats

application/json, text/json

Sample:

Sample not available.