POST api/OpsFiles

Add or edit Records of Operations Files which have been upload to storage. Pictures include Manifests, Weighbrige certificates, Site pictures and Customer Signoffs

Request Information

URI Parameters

None.

Body Parameters

_apiOpsFile
NameDescriptionTypeAdditional information
Id

integer

None.

FileTypeId

integer

None.

FileName

string

None.

Description

string

None.

Size

integer

None.

Path

string

None.

URLRelative

string

None.

URLAbsolute

string

None.

BlobContainer

string

None.

Comment

string

None.

TransactionId

integer

None.

SupplierTransactionId

integer

None.

StaffId

integer

None.

IsWeighbridge

boolean

None.

IsManifest

boolean

None.

IsPhoto

boolean

None.

IsSignature

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "FileTypeId": 1,
  "FileName": "sample string 2",
  "Description": "sample string 3",
  "Size": 4,
  "Path": "sample string 5",
  "URLRelative": "sample string 6",
  "URLAbsolute": "sample string 7",
  "BlobContainer": "sample string 8",
  "Comment": "sample string 9",
  "TransactionId": 1,
  "SupplierTransactionId": 1,
  "StaffId": 1,
  "IsWeighbridge": true,
  "IsManifest": true,
  "IsPhoto": true,
  "IsSignature": true
}

application/xml, text/xml

Sample:
<_apiOpsFile xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WasteMart.Models">
  <BlobContainer>sample string 8</BlobContainer>
  <Comment>sample string 9</Comment>
  <Description>sample string 3</Description>
  <FileName>sample string 2</FileName>
  <FileTypeId>1</FileTypeId>
  <Id>1</Id>
  <IsManifest>true</IsManifest>
  <IsPhoto>true</IsPhoto>
  <IsSignature>true</IsSignature>
  <IsWeighbridge>true</IsWeighbridge>
  <Path>sample string 5</Path>
  <Size>4</Size>
  <StaffId>1</StaffId>
  <SupplierTransactionId>1</SupplierTransactionId>
  <TransactionId>1</TransactionId>
  <URLAbsolute>sample string 7</URLAbsolute>
  <URLRelative>sample string 6</URLRelative>
</_apiOpsFile>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

_apiOpsFile
NameDescriptionTypeAdditional information
Id

integer

None.

FileTypeId

integer

None.

FileName

string

None.

Description

string

None.

Size

integer

None.

Path

string

None.

URLRelative

string

None.

URLAbsolute

string

None.

BlobContainer

string

None.

Comment

string

None.

TransactionId

integer

None.

SupplierTransactionId

integer

None.

StaffId

integer

None.

IsWeighbridge

boolean

None.

IsManifest

boolean

None.

IsPhoto

boolean

None.

IsSignature

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "FileTypeId": 1,
  "FileName": "sample string 2",
  "Description": "sample string 3",
  "Size": 4,
  "Path": "sample string 5",
  "URLRelative": "sample string 6",
  "URLAbsolute": "sample string 7",
  "BlobContainer": "sample string 8",
  "Comment": "sample string 9",
  "TransactionId": 1,
  "SupplierTransactionId": 1,
  "StaffId": 1,
  "IsWeighbridge": true,
  "IsManifest": true,
  "IsPhoto": true,
  "IsSignature": true
}

application/xml, text/xml

Sample:
<_apiOpsFile xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WasteMart.Models">
  <BlobContainer>sample string 8</BlobContainer>
  <Comment>sample string 9</Comment>
  <Description>sample string 3</Description>
  <FileName>sample string 2</FileName>
  <FileTypeId>1</FileTypeId>
  <Id>1</Id>
  <IsManifest>true</IsManifest>
  <IsPhoto>true</IsPhoto>
  <IsSignature>true</IsSignature>
  <IsWeighbridge>true</IsWeighbridge>
  <Path>sample string 5</Path>
  <Size>4</Size>
  <StaffId>1</StaffId>
  <SupplierTransactionId>1</SupplierTransactionId>
  <TransactionId>1</TransactionId>
  <URLAbsolute>sample string 7</URLAbsolute>
  <URLRelative>sample string 6</URLRelative>
</_apiOpsFile>