POST api/CodeAndBatches/SaveBatchGroup

Request Information

URI Parameters

None.

Body Parameters

SaveBatchGroupRequestVM
NameDescriptionTypeAdditional information
SubAccountId

string

Required

UserId

string

Required

BatchId

string

Required

Name

string

Required

Description

string

None.

ProductionDate

date

None.

Lot

string

None.

SKU

string

None.

RedirectionSettings

Collection of GroupCodeRedirectSettingsRequestVM

None.

StartingCode

integer

Required

TotalCodes

integer

Required

Alert

boolean

None.

GeoLocation

boolean

None.

IsActive

boolean

None.

Reference

string

None.

Request Formats

application/json, text/json

Sample:
{
  "SubAccountId": "sample string 1",
  "UserId": "sample string 2",
  "BatchId": "sample string 3",
  "Name": "sample string 4",
  "Description": "sample string 5",
  "ProductionDate": "2023-02-01T13:36:54.164756+00:00",
  "Lot": "sample string 6",
  "SKU": "sample string 7",
  "RedirectionSettings": [
    {
      "Id": "sample string 1",
      "Type": "URL",
      "URL": "sample string 2",
      "AppendBatchAndCode": true,
      "AfterValue": 4,
      "ActivateBasedOn": "None",
      "Date": "2023-02-01T13:36:54.164756+00:00",
      "MobilePageId": "sample string 5",
      "Message": "sample string 6"
    },
    {
      "Id": "sample string 1",
      "Type": "URL",
      "URL": "sample string 2",
      "AppendBatchAndCode": true,
      "AfterValue": 4,
      "ActivateBasedOn": "None",
      "Date": "2023-02-01T13:36:54.164756+00:00",
      "MobilePageId": "sample string 5",
      "Message": "sample string 6"
    }
  ],
  "StartingCode": 8,
  "TotalCodes": 9,
  "Alert": true,
  "GeoLocation": true,
  "IsActive": true,
  "Reference": "sample string 13"
}

application/xml, text/xml

Sample:
<SaveBatchGroupRequestVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MindMe.Business.Service.Services.RequestViewModels">
  <Alert>true</Alert>
  <BatchId>sample string 3</BatchId>
  <Description>sample string 5</Description>
  <GeoLocation>true</GeoLocation>
  <IsActive>true</IsActive>
  <Lot>sample string 6</Lot>
  <Name>sample string 4</Name>
  <ProductionDate>2023-02-01T13:36:54.164756+00:00</ProductionDate>
  <RedirectionSettings>
    <GroupCodeRedirectSettingsRequestVM>
      <ActivateBasedOn>None</ActivateBasedOn>
      <AfterValue>4</AfterValue>
      <AppendBatchAndCode>true</AppendBatchAndCode>
      <Date>2023-02-01T13:36:54.164756+00:00</Date>
      <Id>sample string 1</Id>
      <Message>sample string 6</Message>
      <MobilePageId>sample string 5</MobilePageId>
      <Type>URL</Type>
      <URL>sample string 2</URL>
    </GroupCodeRedirectSettingsRequestVM>
    <GroupCodeRedirectSettingsRequestVM>
      <ActivateBasedOn>None</ActivateBasedOn>
      <AfterValue>4</AfterValue>
      <AppendBatchAndCode>true</AppendBatchAndCode>
      <Date>2023-02-01T13:36:54.164756+00:00</Date>
      <Id>sample string 1</Id>
      <Message>sample string 6</Message>
      <MobilePageId>sample string 5</MobilePageId>
      <Type>URL</Type>
      <URL>sample string 2</URL>
    </GroupCodeRedirectSettingsRequestVM>
  </RedirectionSettings>
  <Reference>sample string 13</Reference>
  <SKU>sample string 7</SKU>
  <StartingCode>8</StartingCode>
  <SubAccountId>sample string 1</SubAccountId>
  <TotalCodes>9</TotalCodes>
  <UserId>sample string 2</UserId>
</SaveBatchGroupRequestVM>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.