POST api/workouts

POSTs a WorkOut with related Exercises.

Request Information

URI Parameters

None.

Body Parameters

A new Workout, with Exercises

WorkOut
NameDescriptionTypeAdditional information
CreatedDate

date

None.

Owner

string

None.

OwnerUserId

integer

None.

Id

integer

None.

BtId

integer

None.

Name

string

None.

Description

string

None.

Type

string

None.

Comment

string

None.

Source

string

None.

Info

string

None.

Related

Collection of IBytegymType

None.

Request Formats

application/json, text/json

Sample:
{
  "CreatedDate": "2019-12-06T05:25:42.5866452+00:00",
  "Owner": "sample string 2",
  "OwnerUserId": 3,
  "Id": 4,
  "BtId": 5,
  "Name": "sample string 6",
  "Description": "sample string 7",
  "Type": "sample string 8",
  "Comment": "sample string 9",
  "Source": "sample string 10",
  "Info": "sample string 11",
  "Related": null
}

application/xml, text/xml

Sample:
<WorkOut xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bytegym.Domain.Implementations.Types">
  <BtId>5</BtId>
  <Comment>sample string 9</Comment>
  <Description>sample string 7</Description>
  <Id>4</Id>
  <Info>sample string 11</Info>
  <Name>sample string 6</Name>
  <Related xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
  <Source>sample string 10</Source>
  <Type>sample string 8</Type>
  <CreatedDate>2019-12-06T05:25:42.5866452+00:00</CreatedDate>
  <Owner>sample string 2</Owner>
  <OwnerUserId>3</OwnerUserId>
</WorkOut>

application/x-www-form-urlencoded

Sample:

Sample not available.

text/html

Sample:
{"CreatedDate":"2019-12-06T05:25:42.5866452+00:00","Owner":"sample string 2","OwnerUserId":3,"Id":4,"BtId":5,"Name":"sample string 6","Description":"sample string 7","Type":"sample string 8","Comment":"sample string 9","Source":"sample string 10","Info":"sample string 11","Related":null}

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.