POST api/Activities/PostActivity

Request Information

URI Parameters

None.

Body Parameters

StudentCustomActivityViewModel
NameDescriptionTypeAdditional information
ActivityType

string

None.

StudentId

integer

None.

ActivityText

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ActivityType": "sample string 1",
  "StudentId": 2,
  "ActivityText": "sample string 3"
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Activity
NameDescriptionTypeAdditional information
id

integer

None.

ActivityType

string

None.

UserId

string

None.

UserName

string

None.

StudentId

integer

None.

ActivityText

string

None.

CreatedDate

date

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "ActivityType": "sample string 2",
  "UserId": "sample string 3",
  "UserName": "sample string 4",
  "StudentId": 5,
  "ActivityText": "sample string 6",
  "CreatedDate": "2019-08-18T17:05:01.0667828+00:00"
}