POST api/globalupdate/SubmitGlobalUpdateRequest

End point for global update submissions Processes a Global Update request, which will push out the desired changes to the desired stores

Request Information

URI Parameters

None.

Body Parameters

A populated GlobalUpdate object (or json equiv for transformation is coming from javascript)

GlobalUpdate
NameDescriptionTypeAdditional information
AutoBackup

Should this Global Update automaticlly backup any changes to the product?

boolean

None.

Fields

A collection of what fields to change, with what option and value to set it to

Collection of FieldUpdateRequest

None.

Stores

A collection of stores which to apply this global update to

Collection of integer

None.

Filter

A collection of products which will be updated by this global update request

ProductFilter

None.

Who

Who initiated this global request update

string

None.

UpdateMasterRecord

Update the master record also?

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "autoBackup": true,
  "fields": [
    {
      "$id": "2",
      "fieldName": "samplestring1",
      "operator": "sample string 2",
      "value": "sample string 3",
      "value2": "sample string 4",
      "value3": "sample string 5",
      "value4": "sample string 6"
    },
    {
      "$ref": "2"
    }
  ],
  "stores": [
    1,
    2
  ],
  "filter": {
    "$id": "3",
    "utcOffset": 1.1,
    "matches": [
      {
        "$id": "4",
        "matchFilterType": 1,
        "match": {
          "$id": "5"
        },
        "matchMode": true,
        "matchDecimal": 3.1,
        "matchList": [
          {
            "$id": "6"
          },
          {
            "$id": "7"
          }
        ],
        "matchCompare": 0,
        "matchStringCompare": 0,
        "matchJoin": 1,
        "subDepartmentMatch": {
          "$id": "8"
        },
        "minorDepartmentMatch": {
          "$id": "9"
        },
        "lesserDepartmentMatch": {
          "$id": "10"
        }
      },
      {
        "$ref": "4"
      }
    ]
  },
  "who": "sample string 2",
  "updateMasterRecord": true
}

application/xml, text/xml

Sample:
<GlobalUpdate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.GlobalUpdates">
  <AutoBackup>true</AutoBackup>
  <Fields>
    <FieldUpdateRequest>
      <FieldName>samplestring1</FieldName>
      <Operator>sample string 2</Operator>
      <Value>sample string 3</Value>
      <Value2>sample string 4</Value2>
      <Value3>sample string 5</Value3>
      <Value4>sample string 6</Value4>
    </FieldUpdateRequest>
    <FieldUpdateRequest>
      <FieldName>samplestring1</FieldName>
      <Operator>sample string 2</Operator>
      <Value>sample string 3</Value>
      <Value2>sample string 4</Value2>
      <Value3>sample string 5</Value3>
      <Value4>sample string 6</Value4>
    </FieldUpdateRequest>
  </Fields>
  <Filter xmlns:d2p1="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Reports">
    <d2p1:Matches>
      <d2p1:ProductFilterMatch>
        <d2p1:LesserDepartmentMatch />
        <d2p1:Match />
        <d2p1:MatchCompare>Equals</d2p1:MatchCompare>
        <d2p1:MatchDecimal>3.1</d2p1:MatchDecimal>
        <d2p1:MatchFilterType>1</d2p1:MatchFilterType>
        <d2p1:MatchJoin>1</d2p1:MatchJoin>
        <d2p1:MatchList xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:anyType />
          <d5p1:anyType />
        </d2p1:MatchList>
        <d2p1:MatchMode>true</d2p1:MatchMode>
        <d2p1:MatchStringCompare>Like</d2p1:MatchStringCompare>
        <d2p1:MinorDepartmentMatch />
        <d2p1:SubDepartmentMatch />
      </d2p1:ProductFilterMatch>
      <d2p1:ProductFilterMatch>
        <d2p1:LesserDepartmentMatch />
        <d2p1:Match />
        <d2p1:MatchCompare>Equals</d2p1:MatchCompare>
        <d2p1:MatchDecimal>3.1</d2p1:MatchDecimal>
        <d2p1:MatchFilterType>1</d2p1:MatchFilterType>
        <d2p1:MatchJoin>1</d2p1:MatchJoin>
        <d2p1:MatchList xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:anyType />
          <d5p1:anyType />
        </d2p1:MatchList>
        <d2p1:MatchMode>true</d2p1:MatchMode>
        <d2p1:MatchStringCompare>Like</d2p1:MatchStringCompare>
        <d2p1:MinorDepartmentMatch />
        <d2p1:SubDepartmentMatch />
      </d2p1:ProductFilterMatch>
    </d2p1:Matches>
    <d2p1:UTCOffset>1.1</d2p1:UTCOffset>
  </Filter>
  <Stores xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </Stores>
  <UpdateMasterRecord>true</UpdateMasterRecord>
  <Who>sample string 2</Who>
</GlobalUpdate>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.