PUT api/Student/SetActiveStatus
Request Information
URI Parameters
None.
Body Parameters
StudentActiveStatusName | Description | Type | Additional information |
---|---|---|---|
StudentId | integer |
Required Range: inclusive between 0 and 2147483647 |
|
Active | boolean |
Required |
|
DeactivationReason | DeactivationReason |
None. |
Request Formats
application/json, text/json
Sample:
{ "StudentId": 1, "Active": true, "DeactivationReason": { "Reason": "sample string 1", "Id": 2 } }
application/xml, text/xml
Sample:
<StudentActiveStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Domain.Objects.StudentObjects.StudentModels.InputModel"> <Active>true</Active> <DeactivationReason xmlns:d2p1="http://schemas.datacontract.org/2004/07/Domain.Objects.StudentObjects"> <_x003C_Id_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/FluentNHibernate.Data">2</_x003C_Id_x003E_k__BackingField> <d2p1:Reason>sample string 1</d2p1:Reason> </DeactivationReason> <StudentId>1</StudentId> </StudentActiveStatus>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |