POST Api/Subscriptions
Dodaje asynchronicznie nowy obiekt Subscription do bazy danych
Request Information
URI Parameters
None.
Body Parameters
nowy obiekt
SubscriptionDtoName | Description | Type | Additional information |
---|---|---|---|
SubscriptionId | integer |
Required |
|
OrganizationalUnitId | integer |
Required |
|
StartDate | date |
Required |
|
EndDate | date |
None. |
|
TaskModule | boolean |
None. |
|
RecruitmentModule | boolean |
None. |
|
TrainingModule | boolean |
None. |
|
PayrollModule | boolean |
None. |
|
MessageModule | boolean |
None. |
|
Crm | boolean |
None. |
|
MaxWorkers | integer |
None. |
|
MaxManagers | integer |
None. |
|
MaxCompany | integer |
None. |
|
PricePerWorker | decimal number |
Required |
|
PricePerManager | decimal number |
Required |
|
PricePerCompany | decimal number |
Required |
|
WorkersInPrice | integer |
Required |
|
ManagersInPrice | integer |
Required |
|
PeriodicalPayment | decimal number |
Required |
|
TypeOfPeriodId | integer |
Required |
|
Period | integer |
Required |
|
PrevPayment | date |
None. |
|
NextPayment | date |
None. |
Request Formats
application/json, text/json
Sample:
{ "subscriptionId": 1, "organizationalUnitId": 2, "startDate": "2024-05-18T06:16:00.5091997+00:00", "endDate": "2024-05-18T06:16:00.5091997+00:00", "taskModule": true, "recruitmentModule": true, "trainingModule": true, "payrollModule": true, "messageModule": true, "crm": true, "maxWorkers": 1, "maxManagers": 1, "maxCompany": 1, "pricePerWorker": 10.0, "pricePerManager": 11.0, "pricePerCompany": 12.0, "workersInPrice": 13, "managersInPrice": 14, "periodicalPayment": 15.1, "typeOfPeriodId": 16, "period": 17, "prevPayment": "2024-05-18T06:16:00.5091997+00:00", "nextPayment": "2024-05-18T06:16:00.5091997+00:00" }
multipart/form-data
Sample:
{"subscriptionId":1,"organizationalUnitId":2,"startDate":"2024-05-18T06:16:00.5091997+00:00","endDate":"2024-05-18T06:16:00.5091997+00:00","taskModule":true,"recruitmentModule":true,"trainingModule":true,"payrollModule":true,"messageModule":true,"crm":true,"maxWorkers":1,"maxManagers":1,"maxCompany":1,"pricePerWorker":10.0,"pricePerManager":11.0,"pricePerCompany":12.0,"workersInPrice":13,"managersInPrice":14,"periodicalPayment":15.1,"typeOfPeriodId":16,"period":17,"prevPayment":"2024-05-18T06:16:00.5091997+00:00","nextPayment":"2024-05-18T06:16:00.5091997+00:00"}
application/xml, text/xml
Sample:
<SubscriptionDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <SubscriptionId>1</SubscriptionId> <OrganizationalUnitId>2</OrganizationalUnitId> <StartDate /> <EndDate /> <TaskModule>true</TaskModule> <RecruitmentModule>true</RecruitmentModule> <TrainingModule>true</TrainingModule> <PayrollModule>true</PayrollModule> <MessageModule>true</MessageModule> <Crm>true</Crm> <MaxWorkers>1</MaxWorkers> <MaxManagers>1</MaxManagers> <MaxCompany>1</MaxCompany> <PricePerWorker>10</PricePerWorker> <PricePerManager>11</PricePerManager> <PricePerCompany>12</PricePerCompany> <WorkersInPrice>13</WorkersInPrice> <ManagersInPrice>14</ManagersInPrice> <PeriodicalPayment>15.1</PeriodicalPayment> <TypeOfPeriodId>16</TypeOfPeriodId> <Period>17</Period> <PrevPayment /> <NextPayment /> </SubscriptionDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
identyfikator nowo dodanego obiektu
SubscriptionDtoName | Description | Type | Additional information |
---|---|---|---|
SubscriptionId | integer |
Required |
|
OrganizationalUnitId | integer |
Required |
|
StartDate | date |
Required |
|
EndDate | date |
None. |
|
TaskModule | boolean |
None. |
|
RecruitmentModule | boolean |
None. |
|
TrainingModule | boolean |
None. |
|
PayrollModule | boolean |
None. |
|
MessageModule | boolean |
None. |
|
Crm | boolean |
None. |
|
MaxWorkers | integer |
None. |
|
MaxManagers | integer |
None. |
|
MaxCompany | integer |
None. |
|
PricePerWorker | decimal number |
Required |
|
PricePerManager | decimal number |
Required |
|
PricePerCompany | decimal number |
Required |
|
WorkersInPrice | integer |
Required |
|
ManagersInPrice | integer |
Required |
|
PeriodicalPayment | decimal number |
Required |
|
TypeOfPeriodId | integer |
Required |
|
Period | integer |
Required |
|
PrevPayment | date |
None. |
|
NextPayment | date |
None. |
Response Formats
application/json, text/json
Sample:
{ "subscriptionId": 1, "organizationalUnitId": 2, "startDate": "2024-05-18T06:16:00.5091997+00:00", "endDate": "2024-05-18T06:16:00.5091997+00:00", "taskModule": true, "recruitmentModule": true, "trainingModule": true, "payrollModule": true, "messageModule": true, "crm": true, "maxWorkers": 1, "maxManagers": 1, "maxCompany": 1, "pricePerWorker": 10.0, "pricePerManager": 11.0, "pricePerCompany": 12.0, "workersInPrice": 13, "managersInPrice": 14, "periodicalPayment": 15.1, "typeOfPeriodId": 16, "period": 17, "prevPayment": "2024-05-18T06:16:00.5091997+00:00", "nextPayment": "2024-05-18T06:16:00.5091997+00:00" }
multipart/form-data
Sample:
{"subscriptionId":1,"organizationalUnitId":2,"startDate":"2024-05-18T06:16:00.5091997+00:00","endDate":"2024-05-18T06:16:00.5091997+00:00","taskModule":true,"recruitmentModule":true,"trainingModule":true,"payrollModule":true,"messageModule":true,"crm":true,"maxWorkers":1,"maxManagers":1,"maxCompany":1,"pricePerWorker":10.0,"pricePerManager":11.0,"pricePerCompany":12.0,"workersInPrice":13,"managersInPrice":14,"periodicalPayment":15.1,"typeOfPeriodId":16,"period":17,"prevPayment":"2024-05-18T06:16:00.5091997+00:00","nextPayment":"2024-05-18T06:16:00.5091997+00:00"}
application/xml, text/xml
Sample:
<SubscriptionDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <SubscriptionId>1</SubscriptionId> <OrganizationalUnitId>2</OrganizationalUnitId> <StartDate /> <EndDate /> <TaskModule>true</TaskModule> <RecruitmentModule>true</RecruitmentModule> <TrainingModule>true</TrainingModule> <PayrollModule>true</PayrollModule> <MessageModule>true</MessageModule> <Crm>true</Crm> <MaxWorkers>1</MaxWorkers> <MaxManagers>1</MaxManagers> <MaxCompany>1</MaxCompany> <PricePerWorker>10</PricePerWorker> <PricePerManager>11</PricePerManager> <PricePerCompany>12</PricePerCompany> <WorkersInPrice>13</WorkersInPrice> <ManagersInPrice>14</ManagersInPrice> <PeriodicalPayment>15.1</PeriodicalPayment> <TypeOfPeriodId>16</TypeOfPeriodId> <Period>17</Period> <PrevPayment /> <NextPayment /> </SubscriptionDto>