POST Api/LeadSources
Dodaje asynchronicznie nowy obiekt LeadSource do bazy danych
Request Information
URI Parameters
None.
Body Parameters
nowy obiekt
LeadSourceDtoName | Description | Type | Additional information |
---|---|---|---|
LeadSourceId | integer |
Required |
|
OrganizationalUnitId | integer |
Required |
|
Name | string |
Required |
Request Formats
application/json, text/json
Sample:
{ "leadSourceId": 1, "organizationalUnitId": 2, "name": "sample string 3" }
multipart/form-data
Sample:
{"leadSourceId":1,"organizationalUnitId":2,"name":"sample string 3"}
application/xml, text/xml
Sample:
<LeadSourceDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <LeadSourceId>1</LeadSourceId> <OrganizationalUnitId>2</OrganizationalUnitId> <Name>sample string 3</Name> </LeadSourceDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
identyfikator nowo dodanego obiektu
LeadSourceDtoName | Description | Type | Additional information |
---|---|---|---|
LeadSourceId | integer |
Required |
|
OrganizationalUnitId | integer |
Required |
|
Name | string |
Required |
Response Formats
application/json, text/json
Sample:
{ "leadSourceId": 1, "organizationalUnitId": 2, "name": "sample string 3" }
multipart/form-data
Sample:
{"leadSourceId":1,"organizationalUnitId":2,"name":"sample string 3"}
application/xml, text/xml
Sample:
<LeadSourceDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <LeadSourceId>1</LeadSourceId> <OrganizationalUnitId>2</OrganizationalUnitId> <Name>sample string 3</Name> </LeadSourceDto>