POST api/Instruction/AddUpdateInstructionPost

Request Information

URI Parameters

None.

Body Parameters

InstructionPost
NameDescriptionTypeAdditional information
SessionID

integer

None.

PostID

integer

None.

PersonID

integer

None.

TypeID

integer

None.

StudentPostID

integer

None.

StudentID

integer

None.

TrainerID

integer

None.

HorseID

integer

None.

PrivateComments

string

None.

DateCreated

date

None.

DateModified

date

None.

ObservationComment

string

None.

Cost

integer

None.

Latitude

string

None.

Longitude

string

None.

Location

string

None.

PhotoID

integer

None.

Name

string

None.

StudentName

string

None.

IsPostPhotoAvailable

boolean

None.

IsFromCalendar

boolean

None.

IsAddtoCalendar

boolean

None.

LocalPath

string

None.

PhotoID2

integer

None.

PhotoID3

integer

None.

PhotoID4

integer

None.

PhotoType

string

None.

CategoryID

integer

None.

SubCategoryID

integer

None.

TimeSpent

integer

None.

TrainerName

string

None.

HorseName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "SessionID": 1,
  "PostID": 1,
  "PersonID": 2,
  "TypeID": 3,
  "StudentPostID": 4,
  "StudentID": 5,
  "TrainerID": 6,
  "HorseID": 7,
  "PrivateComments": "sample string 8",
  "DateCreated": "2025-07-28T13:32:50.6059249-07:00",
  "DateModified": "2025-07-28T13:32:50.6059249-07:00",
  "ObservationComment": "sample string 9",
  "Cost": 10,
  "Latitude": "sample string 11",
  "Longitude": "sample string 12",
  "Location": "sample string 13",
  "PhotoID": 14,
  "Name": "sample string 15",
  "StudentName": "sample string 16",
  "IsPostPhotoAvailable": true,
  "IsFromCalendar": true,
  "IsAddtoCalendar": true,
  "LocalPath": "sample string 20",
  "PhotoID2": 1,
  "PhotoID3": 1,
  "PhotoID4": 1,
  "PhotoType": "sample string 21",
  "CategoryID": 22,
  "SubCategoryID": 23,
  "TimeSpent": 24,
  "TrainerName": "sample string 25",
  "HorseName": "sample string 26"
}

application/xml, text/xml

Sample:
<InstructionPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Equestrian.Entities">
  <CategoryID>22</CategoryID>
  <Cost>10</Cost>
  <DateCreated>2025-07-28T13:32:50.6059249-07:00</DateCreated>
  <DateModified>2025-07-28T13:32:50.6059249-07:00</DateModified>
  <HorseID>7</HorseID>
  <HorseName>sample string 26</HorseName>
  <IsAddtoCalendar>true</IsAddtoCalendar>
  <IsFromCalendar>true</IsFromCalendar>
  <IsPostPhotoAvailable>true</IsPostPhotoAvailable>
  <Latitude>sample string 11</Latitude>
  <LocalPath>sample string 20</LocalPath>
  <Location>sample string 13</Location>
  <Longitude>sample string 12</Longitude>
  <Name>sample string 15</Name>
  <ObservationComment>sample string 9</ObservationComment>
  <PersonID>2</PersonID>
  <PhotoID>14</PhotoID>
  <PhotoID2>1</PhotoID2>
  <PhotoID3>1</PhotoID3>
  <PhotoID4>1</PhotoID4>
  <PhotoType>sample string 21</PhotoType>
  <PostID>1</PostID>
  <PrivateComments>sample string 8</PrivateComments>
  <SessionID>1</SessionID>
  <StudentID>5</StudentID>
  <StudentName>sample string 16</StudentName>
  <StudentPostID>4</StudentPostID>
  <SubCategoryID>23</SubCategoryID>
  <TimeSpent>24</TimeSpent>
  <TrainerID>6</TrainerID>
  <TrainerName>sample string 25</TrainerName>
  <TypeID>3</TypeID>
</InstructionPost>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Posts
NameDescriptionTypeAdditional information
PostID

integer

None.

ParentPostID

integer

None.

PersonID

integer

None.

TypeID

integer

None.

SecurityCode

string

None.

Comment

string

None.

PhotoID

integer

None.

PhotoID2

integer

None.

PhotoID3

integer

None.

PhotoID4

integer

None.

HorseID

integer

None.

CategoryID

integer

None.

SubCategoryID

integer

None.

SessionID

integer

None.

AssociatedPersonID

integer

None.

EquipmentID

integer

None.

LocalPath

string

None.

Location

string

None.

Latitude

string

None.

Longitude

string

None.

Cost

string

None.

CostType

string

None.

PhotoType

string

None.

IsAddtoCalendar

boolean

None.

TimeSpent

integer

None.

DateModified

date

None.

DateCreated

date

None.

Response Formats

application/json, text/json

Sample:
{
  "PostID": 1,
  "ParentPostID": 2,
  "PersonID": 3,
  "TypeID": 1,
  "SecurityCode": "sample string 4",
  "Comment": "sample string 5",
  "PhotoID": 1,
  "PhotoID2": 1,
  "PhotoID3": 1,
  "PhotoID4": 1,
  "HorseID": 1,
  "CategoryID": 1,
  "SubCategoryID": 1,
  "SessionID": 1,
  "AssociatedPersonID": 1,
  "EquipmentID": 1,
  "LocalPath": "sample string 6",
  "Location": "sample string 7",
  "Latitude": "sample string 8",
  "Longitude": "sample string 9",
  "Cost": "sample string 10",
  "CostType": "sample string 11",
  "PhotoType": "sample string 12",
  "IsAddtoCalendar": true,
  "TimeSpent": 14,
  "DateModified": "2025-07-28T13:32:50.6215276-07:00",
  "DateCreated": "2025-07-28T13:32:50.6215276-07:00"
}

application/xml, text/xml

Sample:
<Posts xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Equestrian.Entities">
  <DateCreated>2025-07-28T13:32:50.6215276-07:00</DateCreated>
  <DateModified>2025-07-28T13:32:50.6215276-07:00</DateModified>
  <AssociatedPersonID>1</AssociatedPersonID>
  <CategoryID>1</CategoryID>
  <Comment>sample string 5</Comment>
  <Cost>sample string 10</Cost>
  <CostType>sample string 11</CostType>
  <EquipmentID>1</EquipmentID>
  <HorseID>1</HorseID>
  <IsAddtoCalendar>true</IsAddtoCalendar>
  <Latitude>sample string 8</Latitude>
  <LocalPath>sample string 6</LocalPath>
  <Location>sample string 7</Location>
  <Longitude>sample string 9</Longitude>
  <ParentPostID>2</ParentPostID>
  <PersonID>3</PersonID>
  <PhotoID>1</PhotoID>
  <PhotoID2>1</PhotoID2>
  <PhotoID3>1</PhotoID3>
  <PhotoID4>1</PhotoID4>
  <PhotoType>sample string 12</PhotoType>
  <PostID>1</PostID>
  <SecurityCode>sample string 4</SecurityCode>
  <SessionID>1</SessionID>
  <SubCategoryID>1</SubCategoryID>
  <TimeSpent>14</TimeSpent>
  <TypeID>1</TypeID>
</Posts>