AbodeONE

<back to all web services

CreateDiscipline

Requires Authentication
Required role:Admin
The following routes are available for this service:
POST/disciplines
CreateDiscipline Parameters:
NameParameterData TypeRequiredDescription
TitlebodystringNo
StudentIdbodyintNo
DescriptionbodystringNo
DisciplineDatebodyDateTimeNo
TypesbodyIEnumerable<DisciplineTypeDTO>No
CommentsbodystringNo
NotesbodystringNo
Attachmentbodybyte[]No
LetterIssuedbodyboolNo
ProbationbodyboolNo
ActionbodystringNo
IssuingDeanbodystringNo
ResolvedbodyboolNo
ProbationStartbodyDateTime?No
ProbationEndbodyDateTime?No
IncidentIdbodyint?No
DisciplineTypeDTO Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
DefaultChargeformint?No
NameformstringNo
CreateDisciplineResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformDisciplineDTONo
ResponseStatusformResponseStatusNo
DisciplineDTO Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
TitleformstringNo
StudentIdformintNo
DescriptionformstringNo
DisciplineDateformDateTimeNo
TypesformIEnumerable<DisciplineTypeDTO>No
CommentsformstringNo
NotesformstringNo
Attachmentformbyte[]No
LetterIssuedformboolNo
ProbationformboolNo
ActionformstringNo
IssuingDeanformstringNo
ResolvedformboolNo
ProbationStartformDateTime?No
ProbationEndformDateTime?No
IncidentIdformint?No
Tracked Parameters:
NameParameterData TypeRequiredDescription
CreatedDtformDateTimeNo
CreatedByformstringNo
ModifiedDtformDateTime?No
ModifiedByformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST //disciplines HTTP/1.1 
Host: api.lsu.abodehms.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"title":"String","studentId":0,"description":"String","disciplineDate":"0001-01-01T00:00:00.0000000","comments":"String","notes":"String","attachment":"AA==","letterIssued":false,"probation":false,"action":"String","issuingDean":"String","resolved":false,"probationStart":"0001-01-01T00:00:00.0000000","probationEnd":"0001-01-01T00:00:00.0000000","incidentId":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"result":{"id":0,"title":"String","studentId":0,"description":"String","disciplineDate":"0001-01-01T00:00:00.0000000","comments":"String","notes":"String","attachment":"AA==","letterIssued":false,"probation":false,"action":"String","issuingDean":"String","resolved":false,"probationStart":"0001-01-01T00:00:00.0000000","probationEnd":"0001-01-01T00:00:00.0000000","incidentId":0,"createdDt":"0001-01-01T00:00:00.0000000","createdBy":"String","modifiedDt":"0001-01-01T00:00:00.0000000","modifiedBy":"String"},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}