AbodeONE

<back to all web services

CreateWorshipCredit

Requires Authentication
Required role:Admin
The following routes are available for this service:
POST/worship_credits
POST/worship_credits/create
CreateWorshipCredit Parameters:
NameParameterData TypeRequiredDescription
StudentIdbodyint?NoFilter by Abode Student PK (either StudentId -OR- Schoolid is required)
SchoolidbodystringNoFilter by external School Student ID (either StudentId -OR- Schoolid is required)
WorshipOptionIdbodyint?NoAbode Internal WorshipOption PK (either WorshipOptionId -OR- WorshipCode is required)
WorshipCodebodystringNoExternal WorshipOption identifier (either WorshipOptionId -OR- WorshipCode is required)
WorshipDatebodyDateTimeYesWorship date & time
CreditsbodyintNoCredits earned, defaults to 1 if omitted
IsPresenterbodyboolNoTrue if student was a presenter at this worship (credit total should already include bonus), default: false
WorshipCreditDTO Parameters:
NameParameterData TypeRequiredDescription
WorshipCreditIdformintNo
WorshipCategoryIdformint?No
WorshipOptionIdformint?No
StudentIdformintNo
SchoolIdformstringNo
NameformstringNo
WorshipDateformDateTimeNo
CreditsformintNo
IsPresenterformboolNo
ReqTermformint?No
ReqWeekformint?No
ImportedformboolNo
ExcusedformboolNo
CommentformstringNo
OverrideLimitformboolNo
OverlimitCreditsformintNo
SourceformstringNo
CreatedByformstringNo
CreatedDtformDateTime?No
ModifiedByformstringNo
ModifiedDtformDateTime?No

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

HTTP + CSV

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

POST //worship_credits HTTP/1.1 
Host: api.lsu-staging.abodehms.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{Unable to show example output for type 'CreateWorshipCredit' using the custom 'csv' filter}One or more errors occurred. (Unable to cast object of type 'ServiceStack.Host.BasicResponse' to type 'ServiceStack.Host.NetCore.NetCoreResponse'.)
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{Unable to show example output for type 'WorshipCreditDTO' using the custom 'csv' filter}One or more errors occurred. (Unable to cast object of type 'ServiceStack.Host.BasicResponse' to type 'ServiceStack.Host.NetCore.NetCoreResponse'.)