PUT ops/housing/suppliers/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

SupplierPUT
NameDescriptionTypeAdditional information
SupplierName

string

None.

StatusId

integer

None.

UserUid

string

None.

Request Formats

application/json, text/json

Sample:
{
  "supplierName": "sample string 1",
  "statusId": 2,
  "userUid": "sample string 3"
}

application/xml, text/xml

Sample:
<SupplierPUT xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/myREST.Models.Operations.Housing">
  <StatusId>2</StatusId>
  <SupplierName>sample string 1</SupplierName>
  <UserUid>sample string 3</UserUid>
</SupplierPUT>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SupplierPUT'.

Response Information

Resource Description

SupplierGET
NameDescriptionTypeAdditional information
Id

integer

None.

SupplierName

string

None.

Modified

date

None.

Status

Status

None.

ModifiedBy

UserBasicGET

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "supplierName": "sample string 2",
  "modified": "2024-02-21T07:39:02.4116333+02:00",
  "status": {
    "id": 1,
    "name": "sample string 2"
  },
  "modifiedBy": {
    "firstName": "sample string 1",
    "id": 2,
    "lastName": "sample string 3",
    "uid": "sample string 4",
    "username": "sample string 5"
  }
}

application/xml, text/xml

Sample:
<SupplierGET xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/myREST.Models.Operations.Housing">
  <Id>1</Id>
  <Modified>2024-02-21T07:39:02.4116333+02:00</Modified>
  <ModifiedBy xmlns:d2p1="http://schemas.datacontract.org/2004/07/myREST.Models.Admin">
    <d2p1:FirstName>sample string 1</d2p1:FirstName>
    <d2p1:Id>2</d2p1:Id>
    <d2p1:LastName>sample string 3</d2p1:LastName>
    <d2p1:Uid>sample string 4</d2p1:Uid>
    <d2p1:Username>sample string 5</d2p1:Username>
  </ModifiedBy>
  <Status xmlns:d2p1="http://schemas.datacontract.org/2004/07/myREST.Models.Admin">
    <d2p1:Id>1</d2p1:Id>
    <d2p1:Name>sample string 2</d2p1:Name>
  </Status>
  <SupplierName>sample string 2</SupplierName>
</SupplierGET>