PUT api/workouts/{id}/specifics/{user}

PUTs Specifics of a WorkOut based on UserId

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

string

None.

user

string

None.

Body Parameters

Collection of WorkOutSpecs
NameDescriptionTypeAdditional information
Id

integer

None.

WorkOutId

integer

None.

ExerciseId

integer

None.

UserId

integer

None.

IsDone

boolean

None.

Rounds

integer

None.

Reps

integer

None.

Weight

integer

None.

Pause

integer

None.

Settings

string

None.

Comment

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "WorkOutId": 2,
    "ExerciseId": 3,
    "UserId": 4,
    "IsDone": true,
    "Rounds": 6,
    "Reps": 7,
    "Weight": 8,
    "Pause": 9,
    "Settings": "sample string 10",
    "Comment": "sample string 11"
  },
  {
    "Id": 1,
    "WorkOutId": 2,
    "ExerciseId": 3,
    "UserId": 4,
    "IsDone": true,
    "Rounds": 6,
    "Reps": 7,
    "Weight": 8,
    "Pause": 9,
    "Settings": "sample string 10",
    "Comment": "sample string 11"
  }
]

application/xml, text/xml

Sample:
<ArrayOfWorkOutSpecs xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bytegym.Domain.DTOs">
  <WorkOutSpecs>
    <Comment>sample string 11</Comment>
    <ExerciseId>3</ExerciseId>
    <Id>1</Id>
    <IsDone>true</IsDone>
    <Pause>9</Pause>
    <Reps>7</Reps>
    <Rounds>6</Rounds>
    <Settings>sample string 10</Settings>
    <UserId>4</UserId>
    <Weight>8</Weight>
    <WorkOutId>2</WorkOutId>
  </WorkOutSpecs>
  <WorkOutSpecs>
    <Comment>sample string 11</Comment>
    <ExerciseId>3</ExerciseId>
    <Id>1</Id>
    <IsDone>true</IsDone>
    <Pause>9</Pause>
    <Reps>7</Reps>
    <Rounds>6</Rounds>
    <Settings>sample string 10</Settings>
    <UserId>4</UserId>
    <Weight>8</Weight>
    <WorkOutId>2</WorkOutId>
  </WorkOutSpecs>
</ArrayOfWorkOutSpecs>

application/x-www-form-urlencoded

Sample:

Sample not available.

text/html

Sample:
[{"Id":1,"WorkOutId":2,"ExerciseId":3,"UserId":4,"IsDone":true,"Rounds":6,"Reps":7,"Weight":8,"Pause":9,"Settings":"sample string 10","Comment":"sample string 11"},{"Id":1,"WorkOutId":2,"ExerciseId":3,"UserId":4,"IsDone":true,"Rounds":6,"Reps":7,"Weight":8,"Pause":9,"Settings":"sample string 10","Comment":"sample string 11"}]

Response Information

Resource Description

Http result code

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.