POST api/Admin/AddToMaintenanceByDistributor

Request Information

URI Parameters

None.

Body Parameters

AdminDeviceMaintenanceModel
Name Description Type Additional information
UnassignSim

boolean

None.

UnassignServiceProvider

boolean

None.

DeactivateLicense

boolean

None.

PreviousPoolId

integer

None.

ComplaintId

integer

None.

ServiceWorkerId

integer

None.

FaultCodes

string

None.

PreviousDeviceLocation

string

None.

NewDeviceLocation

string

None.

Id

integer

None.

StartDateUtc

date

None.

EndDateUtc

date

None.

AdminDeviceId

integer

None.

FaultyCodeIds

Collection of integer

None.

Comment

string

None.

CreatedOnUtc

date

None.

CreatedByName

string

None.

CreatedById

string

None.

LocationId

integer

None.

Location

string

None.

LocationText

string

None.

StatusId

integer

None.

Status

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UnassignSim": true,
  "UnassignServiceProvider": true,
  "DeactivateLicense": true,
  "PreviousPoolId": 4,
  "ComplaintId": 1,
  "ServiceWorkerId": 1,
  "FaultCodes": "sample string 5",
  "PreviousDeviceLocation": "sample string 6",
  "NewDeviceLocation": "sample string 7",
  "Id": 8,
  "StartDateUtc": "2025-06-28T13:16:50.5216538Z",
  "EndDateUtc": "2025-06-28T13:16:50.5216538Z",
  "AdminDeviceId": 9,
  "FaultyCodeIds": [
    1,
    2
  ],
  "Comment": "sample string 10",
  "CreatedOnUtc": "2025-06-28T13:16:50.5216538Z",
  "CreatedByName": "sample string 12",
  "CreatedById": "sample string 13",
  "LocationId": 14,
  "Location": "sample string 15",
  "LocationText": "sample string 16",
  "StatusId": 17,
  "Status": "17"
}

text/html

Sample:
{"UnassignSim":true,"UnassignServiceProvider":true,"DeactivateLicense":true,"PreviousPoolId":4,"ComplaintId":1,"ServiceWorkerId":1,"FaultCodes":"sample string 5","PreviousDeviceLocation":"sample string 6","NewDeviceLocation":"sample string 7","Id":8,"StartDateUtc":"2025-06-28T13:16:50.5216538Z","EndDateUtc":"2025-06-28T13:16:50.5216538Z","AdminDeviceId":9,"FaultyCodeIds":[1,2],"Comment":"sample string 10","CreatedOnUtc":"2025-06-28T13:16:50.5216538Z","CreatedByName":"sample string 12","CreatedById":"sample string 13","LocationId":14,"Location":"sample string 15","LocationText":"sample string 16","StatusId":17,"Status":"17"}

application/xml, text/xml

Sample:
<AdminDeviceMaintenanceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DAO.Models.Admin">
  <AdminDeviceId>9</AdminDeviceId>
  <Comment>sample string 10</Comment>
  <CreatedById>sample string 13</CreatedById>
  <CreatedByName>sample string 12</CreatedByName>
  <CreatedOnUtc>2025-06-28T13:16:50.5216538Z</CreatedOnUtc>
  <EndDateUtc>2025-06-28T13:16:50.5216538Z</EndDateUtc>
  <FaultyCodeIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </FaultyCodeIds>
  <Id>8</Id>
  <Location>sample string 15</Location>
  <LocationId>14</LocationId>
  <LocationText>sample string 16</LocationText>
  <StartDateUtc>2025-06-28T13:16:50.5216538Z</StartDateUtc>
  <Status>17</Status>
  <StatusId>17</StatusId>
  <ComplaintId>1</ComplaintId>
  <DeactivateLicense>true</DeactivateLicense>
  <FaultCodes>sample string 5</FaultCodes>
  <NewDeviceLocation>sample string 7</NewDeviceLocation>
  <PreviousDeviceLocation>sample string 6</PreviousDeviceLocation>
  <PreviousPoolId>4</PreviousPoolId>
  <ServiceWorkerId>1</ServiceWorkerId>
  <UnassignServiceProvider>true</UnassignServiceProvider>
  <UnassignSim>true</UnassignSim>
</AdminDeviceMaintenanceModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.