POST Api/v1/Organizations
Creates a new organization.
Request Information
URI Parameters
None.
Body Parameters
organization command
OrganizationCommandName | Description | Type | Additional information |
---|---|---|---|
Name | string |
Required String length: inclusive between 0 and 255 |
|
Address | AddressViewModel |
Required |
|
UsDotCompanyName | string |
String length: inclusive between 0 and 255 |
|
UsDotNumber | string |
String length: inclusive between 0 and 255 |
|
NscCompanyName | string |
String length: inclusive between 0 and 255 |
|
NscNumber | string |
String length: inclusive between 0 and 255 |
Request Formats
application/json, text/json
Sample:
{ "name": "sample string 1", "address": { "id": 1, "addressLine1": "sample string 2", "addressLine2": "sample string 3", "addressLine3": "sample string 4", "city": "sample string 5", "stateProvince": "sample string 6", "country": "sample string 7", "postalCode": "sample string 8" }, "usDotCompanyName": "sample string 2", "usDotNumber": "sample string 3", "nscCompanyName": "sample string 4", "nscNumber": "sample string 5" }
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.