POST api/v1/surgealertpreferences/{tenantId}/{userId}
This will Save and delete multiple surge alert preferences
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| tenantId | string |
Required |
|
| userId | integer |
Required |
Body Parameters
Collection of SurgeAlertPreferenceRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| SurgeAlertPreferenceId | integer |
None. |
|
| UserId | integer |
Required |
|
| TenantId | globally unique identifier |
Required |
|
| FacilityCoId | integer |
Required |
|
| DepartmentName | string |
Required |
|
| IsMyMarket | boolean |
None. |
|
| IsSelected | boolean |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"SurgeAlertPreferenceId": 1,
"UserId": 2,
"TenantId": "3bbdef3e-9cd5-45a1-9c36-87c3507b8fac",
"FacilityCoId": 4,
"DepartmentName": "sample string 5",
"IsMyMarket": true,
"IsSelected": true
},
{
"SurgeAlertPreferenceId": 1,
"UserId": 2,
"TenantId": "3bbdef3e-9cd5-45a1-9c36-87c3507b8fac",
"FacilityCoId": 4,
"DepartmentName": "sample string 5",
"IsMyMarket": true,
"IsSelected": true
}
]
Response Information
Resource Description
ApiResponseModelOfSurgeAlertPreferenceRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | ApiResponseDataModelOfSurgeAlertPreferenceRequestModel |
None. |
|
| Errors | Collection of string |
None. |
|
| Warnings | Collection of string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": {
"PageSize": 1,
"Page": 2,
"TotalPages": 3,
"TotalResults": 4,
"Results": {
"SurgeAlertPreferenceId": 1,
"UserId": 2,
"TenantId": "f443770d-5b2b-47a4-9c39-c09b7ab3b368",
"FacilityCoId": 4,
"DepartmentName": "sample string 5",
"IsMyMarket": true,
"IsSelected": true
}
},
"Errors": [
"sample string 1",
"sample string 2"
],
"Warnings": [
"sample string 1",
"sample string 2"
]
}