PUT Api/v1/Company

Updates company address and USDOT information.

Request Information

URI Parameters

None.

Body Parameters

CompanyCommand
NameDescriptionTypeAdditional information
Name

string

Required

String length: inclusive between 0 and 255

Address

AddressViewModel

None.

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

OrganizationId

integer

None.

OilfieldPermitNumber

string

None.

OilfieldPermitEffective

date

None.

OilfieldPermitExpiry

date

None.

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",
  "organizationId": 6,
  "oilfieldPermitNumber": "sample string 7",
  "oilfieldPermitEffective": "2025-04-21T05:11:38.10801-06:00",
  "oilfieldPermitExpiry": "2025-04-21T05:11:38.10801-06:00"
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.