| Required role: | REGISUserRole |
| POST | /DynamicsCRM/Donation/Upsert |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| regent_id | body | int | No | |
| soft_credit_regent_id | body | int? | No | |
| soft_credit_second_regent_id | body | int? | No | |
| import_id | body | int? | No | |
| is_contact | body | bool | No | |
| is_account | body | bool | No | |
| name | body | string | No | |
| description | body | string | No | |
| total_pledge_amount | body | decimal | No | |
| receipt_amount | body | decimal | No | |
| currency | body | string | No | |
| receipting_organization | body | string | No | |
| type | body | string | No | |
| gift_date | body | DateTime? | No | |
| cheque_number | body | string | No | |
| do_not_receipt | body | bool | No | |
| is_complete | body | bool | No | |
| anonymous | body | bool | No | |
| gift_batch | body | string | No | |
| source | body | string | No | |
| channel | body | string | No | |
| designation | body | string | No | |
| designation_description | body | string | No | |
| campaign | body | string | No | |
| campaign_code | body | string | No | |
| campaign_description | body | string | No | |
| campaign_start_date | body | DateTime? | No | |
| campaign_end_date | body | DateTime? | No | |
| campaign_goal | body | decimal? | No | |
| appeal | body | string | No | |
| appeal_code | body | string | No | |
| appeal_description | body | string | No | |
| appeal_start_date | body | DateTime? | No | |
| appeal_end_date | body | DateTime? | No | |
| appeal_goal | body | decimal? | No | |
| added_date | body | DateTime? | No |
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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /DynamicsCRM/Donation/Upsert HTTP/1.1
Host: data.regent-college.edu
Accept: application/json
Content-Type: application/json
Content-Length: length
{"regent_id":0,"soft_credit_regent_id":0,"soft_credit_second_regent_id":0,"import_id":0,"is_contact":false,"is_account":false,"name":"String","description":"String","total_pledge_amount":0,"receipt_amount":0,"currency":"String","receipting_organization":"String","type":"String","gift_date":"0001-01-01T00:00:00.0000000","cheque_number":"String","do_not_receipt":false,"is_complete":false,"anonymous":false,"gift_batch":"String","source":"String","channel":"String","designation":"String","designation_description":"String","campaign":"String","campaign_code":"String","campaign_description":"String","campaign_start_date":"0001-01-01T00:00:00.0000000","campaign_end_date":"0001-01-01T00:00:00.0000000","campaign_goal":0,"appeal":"String","appeal_code":"String","appeal_description":"String","appeal_start_date":"0001-01-01T00:00:00.0000000","appeal_end_date":"0001-01-01T00:00:00.0000000","appeal_goal":0,"added_date":"0001-01-01T00:00:00.0000000"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}