POST {bucket}/contract
Creates the specified entity.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
bucket | string |
None. |
Body Parameters
The entity.
ContractModelName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
SourceId | integer |
Required |
|
CustomerId | integer |
Required |
|
ExternalContractId | string |
String length: inclusive between 0 and 50 |
|
Login | string |
String length: inclusive between 0 and 50 |
|
Password | string |
String length: inclusive between 0 and 50 |
|
SubscriptionTypeId | integer |
None. |
|
StartDate | date |
Required Data type: Date |
|
EndDate | date |
Data type: Date |
|
InitialSlot | integer |
None. |
|
CurrentSlot | integer |
None. |
|
CreatedAt | date |
Data type: Date |
|
CreatedBy | string |
String length: inclusive between 0 and 50 |
|
Comments | string |
None. |
|
RefContrStat | integer |
None. |
|
RefContrSite | integer |
Required |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "SourceId": 2, "CustomerId": 3, "ExternalContractId": "sample string 4", "Login": "sample string 5", "Password": "sample string 6", "SubscriptionTypeId": 1, "StartDate": "2025-01-10T23:53:28.1093399+01:00", "EndDate": "2025-01-10T23:53:28.1093399+01:00", "InitialSlot": 1, "CurrentSlot": 1, "CreatedAt": "2025-01-10T23:53:28.1093399+01:00", "CreatedBy": "sample string 8", "Comments": "sample string 9", "RefContrStat": 1, "RefContrSite": 10 }
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.