POST api/Requests

Add a new maintenance request

Request Information

URI Parameters

None.

Body Parameters

RequestNew
NameDescriptionTypeAdditional information
Title

string

Required

Max length: 255

Date

This date may be required to be equal or after the actual date, depending on ManWinWin preferences
Default: the current date and time

date

None.

Urgency

Default: Normal

Request.Urgency

None.

Description

string

None.

CostAllocation

Where this maintenance request cost should be allocated

AllocationAsset

Required

DestinationAllocation

Where this maintenance request destination should be allocated
This may be required, depending on ManWinWin preferences

DestinationAllocation

None.

System

Ignored if the CostAllocation.Type is Item

string

None.

Record

Running Record (ignored when CostAllocation is not Item)

decimal number

None.

DownState

Set Item to Down State (ignored when CostAllocation is not Item)
Default: false

boolean

None.

Component

This may be required, depending on ManWinWin Web preferences

integer

None.

Cause

This may be required, depending on ManWinWin Web preferences

string

None.

Symptom

This may be required, depending on ManWinWin Web preferences

string

None.

Performer

This may be required, depending on ManWinWin Web preferences

string

None.

UserCode1

Free text (this may be required, depending on ManWinWin preferences)

string

Max length: 50

Quote

boolean

None.

UserCode2

Free text (this may be required, depending on ManWinWin preferences)

string

Max length: 50

Request Formats

Sample:
{
  "Title": "sample string 1",
  "Date": "2024-11-14T16:30:47.3320448+00:00",
  "Urgency": "Emergency",
  "Description": "sample string 2",
  "CostAllocation": {
    "Type": "Item",
    "Code": "sample string 1"
  },
  "DestinationAllocation": {
    "Type": "Function",
    "Code": "sample string 1"
  },
  "System": "sample string 3",
  "Record": 1.1,
  "DownState": true,
  "Component": 1,
  "Cause": "sample string 4",
  "Symptom": "sample string 5",
  "Performer": "sample string 6",
  "UserCode1": "sample string 7",
  "Quote": true,
  "UserCode2": "sample string 9"
}
Sample:
<RequestNew xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.Pedidos">
  <Cause>sample string 4</Cause>
  <Component>1</Component>
  <CostAllocation xmlns:d2p1="http://schemas.datacontract.org/2004/07/WebAPI.Models">
    <d2p1:Code>sample string 1</d2p1:Code>
    <d2p1:Type>Item</d2p1:Type>
  </CostAllocation>
  <Date>2024-11-14T16:30:47.3320448+00:00</Date>
  <Description>sample string 2</Description>
  <DestinationAllocation>
    <Code>sample string 1</Code>
    <Type>Function</Type>
  </DestinationAllocation>
  <DownState>true</DownState>
  <Performer>sample string 6</Performer>
  <Quote>true</Quote>
  <Record>1.1</Record>
  <Symptom>sample string 5</Symptom>
  <System>sample string 3</System>
  <Title>sample string 1</Title>
  <Urgency>Emergency</Urgency>
  <UserCode1>sample string 7</UserCode1>
  <UserCode2>sample string 9</UserCode2>
</RequestNew>
Sample:

Sample not available.

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Title"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Date"

2024-11-14T16:30:47.3320448+00:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Urgency"

Emergency
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Description"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="CostAllocation.Type"

Item
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="CostAllocation.Code"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="DestinationAllocation.Type"

Function
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="DestinationAllocation.Code"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="System"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Record"

1.1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="DownState"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Component"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Cause"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Symptom"

sample string 5
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Performer"

sample string 6
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="UserCode1"

sample string 7
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Quote"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="UserCode2"

sample string 9
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

Returns the Request Code; Status code: 201 (Created)

integer

Response Formats

Sample:
1
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name=""

1
--MultipartDataMediaFormatterBoundary1q2w3e--