POST api/v1/SystemFunctionSetting/AddOtherStaffId

Request Information

URI Parameters

None.

Body Parameters

StaffIdAddModel
NameDescriptionTypeAdditional information
Ids

Collection of string

None.

FunctionId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Ids": [
    "sample string 1",
    "sample string 2"
  ],
  "FunctionId": "sample string 1"
}

application/xml, text/xml

Sample:
<StaffIdAddModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ezy.APIService.Shared.Models">
  <FunctionId>sample string 1</FunctionId>
  <Ids xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Ids>
</StaffIdAddModel>

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 'StaffIdAddModel'.

Response Information

Resource Description

EzyResultObjectOfSystemFunctionSettingModel
NameDescriptionTypeAdditional information
Data

SystemFunctionSettingModel

None.

ExtraData

Dictionary of string [key] and Object [value]

None.

StartTime

decimal number

None.

EndTime

decimal number

None.

TotalMili

decimal number

None.

StatusCode

integer

None.

Msg

string

None.

MsgShowInUI

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {
    "Key": "sample string 1",
    "GroupName": "sample string 2",
    "HRGroupName": "",
    "UserLeadUserScreenCode": "sample string 3",
    "Note": "sample string 4",
    "ParentType": "sample string 5",
    "ParentId": "sample string 6",
    "Id": "sample string 7",
    "IsAllowAdmin": true,
    "IsAllowPMOfProject": true,
    "IsAllowPMLeadPM": true,
    "IsAllowUserLeadUser": true,
    "IsAllowAll": true,
    "IsAllowBD": true,
    "IsAllowCM": true,
    "IsAllowTK": true,
    "IsAllowTM": true,
    "IsAllowPA": true,
    "IsAllowQC": true,
    "IsAllowMT": true,
    "IsAllowTK3D": true,
    "DepartmentId": "sample string 21",
    "HRGroupId": "sample string 22",
    "JobTitleId": "sample string 23",
    "StaffId": "sample string 24",
    "StaffEmails": [
      {
        "Email": "sample string 1",
        "StaffName": "sample string 2"
      },
      {
        "Email": "sample string 1",
        "StaffName": "sample string 2"
      }
    ],
    "OtherStaffIds": [
      {
        "Id": "sample string 1",
        "StaffName": "sample string 2"
      },
      {
        "Id": "sample string 1",
        "StaffName": "sample string 2"
      }
    ]
  },
  "ExtraData": null,
  "StartTime": 1.1,
  "EndTime": 2.1,
  "TotalMili": 3.1,
  "StatusCode": 4,
  "Msg": "sample string 5",
  "MsgShowInUI": "sample string 6"
}

application/xml, text/xml

Sample:
<EzyResultObjectOfSystemFunctionSettingModelOtoXqmQY xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ezy.Module.Library.Message">
  <Msg>sample string 5</Msg>
  <MsgShowInUI>sample string 6</MsgShowInUI>
  <StatusCode>4</StatusCode>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Ezy.APIService.AppSystemService.Models">
    <DepartmentId xmlns="http://schemas.datacontract.org/2004/07/Ezy.Module.BaseData.Models">sample string 21</DepartmentId>
    <HRGroupId xmlns="http://schemas.datacontract.org/2004/07/Ezy.Module.BaseData.Models">sample string 22</HRGroupId>
    <Id xmlns="http://schemas.datacontract.org/2004/07/Ezy.Module.BaseData.Models">sample string 7</Id>
    <IsAllowAdmin xmlns="http://schemas.datacontract.org/2004/07/Ezy.Module.BaseData.Models">true</IsAllowAdmin>
    <IsAllowAll xmlns="http://schemas.datacontract.org/2004/07/Ezy.Module.BaseData.Models">true</IsAllowAll>
    <IsAllowBD xmlns="http://schemas.datacontract.org/2004/07/Ezy.Module.BaseData.Models">true</IsAllowBD>
    <IsAllowCM xmlns="http://schemas.datacontract.org/2004/07/Ezy.Module.BaseData.Models">true</IsAllowCM>
    <IsAllowMT xmlns="http://schemas.datacontract.org/2004/07/Ezy.Module.BaseData.Models">true</IsAllowMT>
    <IsAllowPA xmlns="http://schemas.datacontract.org/2004/07/Ezy.Module.BaseData.Models">true</IsAllowPA>
    <IsAllowPMLeadPM xmlns="http://schemas.datacontract.org/2004/07/Ezy.Module.BaseData.Models">true</IsAllowPMLeadPM>
    <IsAllowPMOfProject xmlns="http://schemas.datacontract.org/2004/07/Ezy.Module.BaseData.Models">true</IsAllowPMOfProject>
    <IsAllowQC xmlns="http://schemas.datacontract.org/2004/07/Ezy.Module.BaseData.Models">true</IsAllowQC>
    <IsAllowTK xmlns="http://schemas.datacontract.org/2004/07/Ezy.Module.BaseData.Models">true</IsAllowTK>
    <IsAllowTK3D xmlns="http://schemas.datacontract.org/2004/07/Ezy.Module.BaseData.Models">true</IsAllowTK3D>
    <IsAllowTM xmlns="http://schemas.datacontract.org/2004/07/Ezy.Module.BaseData.Models">true</IsAllowTM>
    <IsAllowUserLeadUser xmlns="http://schemas.datacontract.org/2004/07/Ezy.Module.BaseData.Models">true</IsAllowUserLeadUser>
    <JobTitleId xmlns="http://schemas.datacontract.org/2004/07/Ezy.Module.BaseData.Models">sample string 23</JobTitleId>
    <OtherStaffIds xmlns="http://schemas.datacontract.org/2004/07/Ezy.Module.BaseData.Models">
      <StaffIdModel>
        <Id>sample string 1</Id>
        <StaffName>sample string 2</StaffName>
      </StaffIdModel>
      <StaffIdModel>
        <Id>sample string 1</Id>
        <StaffName>sample string 2</StaffName>
      </StaffIdModel>
    </OtherStaffIds>
    <StaffEmails xmlns="http://schemas.datacontract.org/2004/07/Ezy.Module.BaseData.Models">
      <StaffEmailModel>
        <Email>sample string 1</Email>
        <StaffName>sample string 2</StaffName>
      </StaffEmailModel>
      <StaffEmailModel>
        <Email>sample string 1</Email>
        <StaffName>sample string 2</StaffName>
      </StaffEmailModel>
    </StaffEmails>
    <StaffId xmlns="http://schemas.datacontract.org/2004/07/Ezy.Module.BaseData.Models">sample string 24</StaffId>
    <d2p1:GroupName>sample string 2</d2p1:GroupName>
    <d2p1:Key>sample string 1</d2p1:Key>
    <d2p1:Note>sample string 4</d2p1:Note>
    <d2p1:ParentId>sample string 6</d2p1:ParentId>
    <d2p1:ParentType>sample string 5</d2p1:ParentType>
    <d2p1:UserLeadUserScreenCode>sample string 3</d2p1:UserLeadUserScreenCode>
  </Data>
  <EndTime>2.1</EndTime>
  <ExtraData xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
  <StartTime>1.1</StartTime>
  <TotalMili>3.1</TotalMili>
</EzyResultObjectOfSystemFunctionSettingModelOtoXqmQY>