| Required role: | SAU-Integration |
| PUT | /external/worship_credits/{Id} |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | path | int | No | |
| WorshipCategory | body | string | No | |
| WorshipOption | body | string | No | |
| WorshipOptionId | body | int? | No | |
| SchoolId | body | string | No | |
| Name | body | string | No | |
| WorshipDate | body | DateTime | No | |
| Credits | body | int | No | |
| IsPresenter | body | bool? | No | |
| IsCultureCredit | body | bool? | No | |
| Comment | body | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Result | form | ExtWorshipCreditDTO | No | |
| ResponseStatus | form | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | int | No | |
| WorshipCategory | form | string | No | |
| WorshipOption | form | string | No | |
| SchoolId | form | string | No | |
| Name | form | string | No | |
| WorshipDate | form | DateTime | No | |
| Credits | form | int | No | |
| IsPresenter | form | bool | No | |
| IsCultureCredit | form | bool | No | |
| Comment | form | string | No | |
| CreatedBy | form | string | No | |
| CreatedDt | form | DateTime? | No | |
| ModifiedBy | form | string | No | |
| ModifiedDt | form | DateTime? | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT //external/worship_credits/{Id} HTTP/1.1
Host: api.lsu-staging.abodehms.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
id: 0,
worshipCategory: String,
worshipOption: String,
worshipOptionId: 0,
schoolId: String,
name: String,
worshipDate: 0001-01-01,
credits: 0,
isPresenter: False,
isCultureCredit: False,
comment: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
result:
{
id: 0,
worshipCategory: String,
worshipOption: String,
schoolId: String,
name: String,
worshipDate: 0001-01-01,
credits: 0,
isPresenter: False,
isCultureCredit: False,
comment: String,
createdBy: String,
createdDt: 0001-01-01,
modifiedBy: String,
modifiedDt: 0001-01-01
},
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}