PUT api/SalesPersonMaster?MID={MID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
MID

integer

Required

Body Parameters

SalesPersonMaster
NameDescriptionTypeAdditional information
SALESPERSON_CODE

string

Required

Max length: 6

DESCRIPTION

string

Required

Max length: 40

COMMISSION

decimal number

None.

MID

integer

Required

SALESMAN_IMAGE_PATH

string

Max length: 150

SALESMAN_IMAGE

Collection of byte

None.

SYSTEM_DATE

date

None.

SP_SHORTNAME

string

Max length: 40

SP_BRANCHCODE

string

Max length: 6

EMPMST_CODE

string

Required

Max length: 6

ACTIVE

boolean

Required

Request Formats

application/json, text/json

Sample:
{
  "SALESPERSON_CODE": "sample string 1",
  "DESCRIPTION": "sample string 2",
  "COMMISSION": 3.1,
  "MID": 4,
  "SALESMAN_IMAGE_PATH": "sample string 5",
  "SALESMAN_IMAGE": "QEA=",
  "SYSTEM_DATE": "2025-12-16T07:35:46.0115346+04:00",
  "SP_SHORTNAME": "sample string 7",
  "SP_BRANCHCODE": "sample string 8",
  "EMPMST_CODE": "sample string 9",
  "ACTIVE": true
}

text/html

Sample:
{"SALESPERSON_CODE":"sample string 1","DESCRIPTION":"sample string 2","COMMISSION":3.1,"MID":4,"SALESMAN_IMAGE_PATH":"sample string 5","SALESMAN_IMAGE":"QEA=","SYSTEM_DATE":"2025-12-16T07:35:46.0115346+04:00","SP_SHORTNAME":"sample string 7","SP_BRANCHCODE":"sample string 8","EMPMST_CODE":"sample string 9","ACTIVE":true}

application/xml, text/xml

Sample:
<SalesPersonMaster xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/webAppApi.Models.Master">
  <ACTIVE>true</ACTIVE>
  <COMMISSION>3.1</COMMISSION>
  <DESCRIPTION>sample string 2</DESCRIPTION>
  <EMPMST_CODE>sample string 9</EMPMST_CODE>
  <MID>4</MID>
  <SALESMAN_IMAGE>QEA=</SALESMAN_IMAGE>
  <SALESMAN_IMAGE_PATH>sample string 5</SALESMAN_IMAGE_PATH>
  <SALESPERSON_CODE>sample string 1</SALESPERSON_CODE>
  <SP_BRANCHCODE>sample string 8</SP_BRANCHCODE>
  <SP_SHORTNAME>sample string 7</SP_SHORTNAME>
  <SYSTEM_DATE>2025-12-16T07:35:46.0115346+04:00</SYSTEM_DATE>
</SalesPersonMaster>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json, text/html

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />