PUT adventures/activities

Request Information

URI Parameters

None.

Body Parameters

ActivityPUT
NameDescriptionTypeAdditional information
ActivityTypeId

integer

None.

Coordinates

Coordinates

None.

Days

integer

None.

Description

string

None.

DifficultyId

integer

None.

Distance

decimal number

None.

Elevation

integer

None.

FeaturedImageId

integer

None.

Id

integer

None.

LocationId

integer

None.

MapUrl

string

None.

ModifiedBy

string

None.

Name

string

None.

PermitTypeIds

Collection of integer

None.

Requirements

string

None.

SiteId

integer

None.

StatusId

integer

None.

StartDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "activityTypeId": 1,
  "coordinates": null,
  "days": 1,
  "description": "sample string 1",
  "difficultyId": 1,
  "distance": 1.0,
  "elevation": 1,
  "featuredImageId": 1,
  "id": 2,
  "locationId": 1,
  "mapUrl": "sample string 3",
  "modifiedBy": "sample string 4",
  "name": "sample string 5",
  "permitTypeIds": [
    1,
    2
  ],
  "requirements": "sample string 6",
  "siteId": 1,
  "statusId": 1,
  "startDate": "2024-11-28T06:45:20.5585452+00:00"
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'myPortalApi.Models.Coordinates' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'myPortalApi.Models.Coordinates' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

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 'ActivityPUT'.

Response Information

Resource Description

None.