POST api/pinches
Create a new Pinch
Request Information
URI Parameters
None.
Body Parameters
PinchGeneralDtoName | Description | Type | Additional information |
---|---|---|---|
Name | string |
Required Max length: 500 |
|
Description | string |
Max length: 1000 |
|
Status | PinchStatusEnum |
None. |
|
CustomerGroup | NamedItem |
Required |
|
App | NamedItem |
Required |
|
ValidFrom | date |
None. |
|
ValidTo | date |
None. |
|
Tags | Collection of string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Name": "sample string 1", "Description": "sample string 2", "Status": "Draft", "CustomerGroup": { "Id": "ea06c806-f1b2-4b95-b7e5-40c7c077d44c", "Name": "sample string 2" }, "App": { "Id": "ea06c806-f1b2-4b95-b7e5-40c7c077d44c", "Name": "sample string 2" }, "ValidFrom": "2025-04-25T04:48:35.0566151+00:00", "ValidTo": "2025-04-25T04:48:35.0566151+00:00", "Tags": [ "sample string 1", "sample string 2" ] }
Response Information
Resource Description
PinchDtoName | Description | Type | Additional information |
---|---|---|---|
Id | globally unique identifier |
None. |
|
Name | string |
None. |
|
Description | string |
None. |
|
ExpirationPeriod | string |
None. |
|
UserLimit | integer |
None. |
|
AppTimeLimitHours | integer |
None. |
|
ValidFrom | date |
None. |
|
ValidTo | date |
None. |
|
Status | PinchStatusEnum |
None. |
|
CustomerGroup | NamedItem |
None. |
|
Customer | NamedItem |
None. |
|
App | AppSimpleDto |
None. |
|
DailySchedule | Schedule |
None. |
|
IsActive | boolean |
None. |
|
Tags | Collection of string |
None. |
|
PublishId | globally unique identifier |
None. |
|
NotificationSettings | PinchNotificationDto |
None. |
|
MessageSettings | PinchMessageSettingsDto |
None. |
|
ModifiedDate | date |
None. |
Response Formats
application/json, text/json
Sample:
{ "Id": "ee57769e-bd77-40bc-987b-1245795e8bfb", "Name": "sample string 2", "Description": "sample string 3", "ExpirationPeriod": "sample string 4", "UserLimit": 5, "AppTimeLimitHours": 6, "ValidFrom": "2025-04-25T04:48:35.0721868+00:00", "ValidTo": "2025-04-25T04:48:35.0721868+00:00", "Status": "Draft", "CustomerGroup": { "Id": "043fada3-9134-433c-aba9-bef99a93e228", "Name": "sample string 2" }, "Customer": { "Id": "043fada3-9134-433c-aba9-bef99a93e228", "Name": "sample string 2" }, "App": { "NotificationType": "Bubble", "Id": "b2406dd0-b8e9-47ea-b050-79467e662bdc", "Name": "sample string 2" }, "DailySchedule": { "From": "sample string 1", "To": "sample string 2" }, "IsActive": true, "Tags": [ "sample string 1", "sample string 2" ], "PublishId": "8540c0a7-0611-4759-ac3e-86f9241a0712", "NotificationSettings": { "BubbleImageUrl": "sample string 1", "ShowBubble": true, "BarImageUrl": "sample string 3", "OpenOnAppLaunch": true, "OpenFromNotificationCenter": true, "OpenOnAppRunning": true, "BubbleIconId": 1, "BubbleTitleNo": "sample string 7", "BubbleTitleEn": "sample string 8", "NotificationTextNo": "sample string 9", "NotificationTextEn": "sample string 10", "NotificationTitleNo": "sample string 11", "NotificationTitleEn": "sample string 12", "TriggerNotification": "sample string 13" }, "MessageSettings": { "MessageTitleNo": "sample string 1", "MessageTitleEn": "sample string 2", "MessageTextNo": "sample string 3", "MessageTextEn": "sample string 4", "MessageImageUrl": "sample string 5", "MessageType": "sample string 6" }, "ModifiedDate": "2025-04-25T04:48:35.0721868+00:00" }