POST api/{orgKey}/yardlocation/{branchKey}/upsertyardlocation

Request Information

URI Parameters

NameDescriptionTypeAdditional information
orgKey

integer

Required

branchKey

integer

Required

Body Parameters

EquipmentLocationModel
NameDescriptionTypeAdditional information
EquipmentLocationKey

byte

None.

EquipmentLocationName

string

None.

EquipmentLocationDisplayName

string

None.

EquipmentLocationDescription

string

None.

EquipmentLocationInventoryDepot

boolean

None.

EquipmentLocationGeofenceEnabled

boolean

None.

EquipmentLocationGeoLatitude

decimal number

None.

EquipmentLocationtGeoLongitude

decimal number

None.

EquipmentLocationRadius

integer

None.

Branch

BranchModel

None.

EquipmentCount

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "equipmentLocationKey": 64,
  "equipmentLocationName": "sample string 1",
  "equipmentLocationDisplayName": "sample string 2",
  "equipmentLocationDescription": "sample string 3",
  "equipmentLocationInventoryDepot": true,
  "equipmentLocationGeofenceEnabled": true,
  "equipmentLocationGeoLatitude": 1.0,
  "equipmentLocationtGeoLongitude": 1.0,
  "equipmentLocationRadius": 1,
  "branch": {
    "siteTemplate": {
      "templateKey": 1,
      "templateHeadingColor": "sample string 2",
      "templateSidebarColor": "sample string 3",
      "templateTextColor": "sample string 4"
    },
    "address": {
      "address1": "sample string 1",
      "address2": "sample string 2",
      "addressCity": "sample string 3",
      "addressState": "sample string 4",
      "addressZipCode": "sample string 5"
    },
    "emails": [
      {
        "userKey": 1,
        "emailType": "sample string 1",
        "emailTypeKey": 64,
        "contactEmailAddress": "sample string 3"
      },
      {
        "userKey": 1,
        "emailType": "sample string 1",
        "emailTypeKey": 64,
        "contactEmailAddress": "sample string 3"
      }
    ],
    "companyKey": 1,
    "orgKey": 2,
    "branchKey": 3,
    "branchCode": "sample string 4",
    "branchName": "sample string 5",
    "companyName": "sample string 6",
    "branchTimeZone": "sample string 7",
    "productlines": {
      "productlineKey": 1,
      "productlineName": "sample string 2",
      "productlineshortName": "sample string 3"
    },
    "productLinesArray": [
      {
        "productlineKey": 1,
        "productlineName": "sample string 2",
        "productlineshortName": "sample string 3"
      },
      {
        "productlineKey": 1,
        "productlineName": "sample string 2",
        "productlineshortName": "sample string 3"
      }
    ],
    "assetAssemblyCount": 8,
    "name": "sample string 9",
    "contactPhoneNumber": "sample string 10",
    "logoURI": "sample string 11",
    "logoFileName": "sample string 12",
    "alternateEmail": "sample string 13",
    "email": "sample string 14",
    "templateKey": 1
  },
  "equipmentCount": 4
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

PageViewModel
NameDescriptionTypeAdditional information
StatusCode

integer

None.

StatusMessage

string

None.

TotalCount

integer

None.

ModelObject

Object

None.

CurrentDateTime

date

None.

Response Formats

application/json, text/json

Sample:
{
  "statusCode": 1,
  "statusMessage": "sample string 2",
  "totalCount": 3,
  "modelObject": {},
  "currentDateTime": "2026-01-30T01:05:37.3498041+00:00"
}