POST api/Images/AddImage

Request Information

URI Parameters

None.

Body Parameters

RequestAddImage
NameDescriptionTypeAdditional information
DepartmentId

globally unique identifier

None.

MemberId

globally unique identifier

None.

TagName

string

None.

PhysicsPath

string

None.

ReturnSizeType

EnumImageSizeType

None.

IsShow

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "DepartmentId": "1afcf4c9-e152-4b61-b7ae-f16eeb8890dd",
  "MemberId": "34db3f64-e940-452f-b0bf-a54d0ee592b4",
  "TagName": "sample string 3",
  "PhysicsPath": "sample string 4",
  "ReturnSizeType": 0,
  "IsShow": true
}

application/xml, text/xml

Sample:
<RequestAddImage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.TPS.Model.Request.Images">
  <DepartmentId>1afcf4c9-e152-4b61-b7ae-f16eeb8890dd</DepartmentId>
  <IsShow>true</IsShow>
  <MemberId>34db3f64-e940-452f-b0bf-a54d0ee592b4</MemberId>
  <PhysicsPath>sample string 4</PhysicsPath>
  <ReturnSizeType>Default</ReturnSizeType>
  <TagName>sample string 3</TagName>
</RequestAddImage>

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

Response Information

Resource Description

ExecuteResultOfImageResources
NameDescriptionTypeAdditional information
Data

ImageResources

None.

Success

boolean

None.

IsSuccess

boolean

None.

Msg

string

None.

Code

integer

None.

StatusCode

string

None.

Errors

Dictionary of string [key] and string [value]

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {
    "DepartmentId": "84779167-c051-48e2-b50d-c76f4e52dcde",
    "MemberId": "989b3d22-6337-4a7e-a69e-84c16937ff67",
    "TagId": "d3f83dd6-7638-49ff-9748-1f657b31dc2d",
    "PhysicsPath": "sample string 4",
    "TagName": "sample string 5",
    "URLPath": "sample string 6",
    "ID": "5bf41f48-be65-4e20-b226-a838a9eb42d5",
    "CreateMemberID": "f4e01c91-1b5d-4466-ba05-9a1c07335bd4",
    "CreateDate": "2025-04-27T23:23:36.3921444+08:00",
    "EditeMemberID": "9d6111ce-bd24-41da-9b74-68e103a16307",
    "EditeDate": "2025-04-27T23:23:36.3921444+08:00",
    "Flag": 12
  },
  "Success": true,
  "IsSuccess": true,
  "Msg": "sample string 3",
  "Code": 4,
  "StatusCode": "sample string 5",
  "Errors": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  }
}

application/xml, text/xml

Sample:
<ExecuteResultOfImageResourcesRAoaKam_S xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.Core">
  <Code>4</Code>
  <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 3</d2p1:Key>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Errors>
  <IsSuccess>true</IsSuccess>
  <Msg>sample string 3</Msg>
  <StatusCode>sample string 5</StatusCode>
  <Success>true</Success>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/ZTSoft.TPS.Model.Images">
    <_x003C_CreateDate_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.TPS.Model.Common">2025-04-27T23:23:36.3921444+08:00</_x003C_CreateDate_x003E_k__BackingField>
    <_x003C_CreateMemberID_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.TPS.Model.Common">f4e01c91-1b5d-4466-ba05-9a1c07335bd4</_x003C_CreateMemberID_x003E_k__BackingField>
    <_x003C_EditeDate_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.TPS.Model.Common">2025-04-27T23:23:36.3921444+08:00</_x003C_EditeDate_x003E_k__BackingField>
    <_x003C_EditeMemberID_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.TPS.Model.Common">9d6111ce-bd24-41da-9b74-68e103a16307</_x003C_EditeMemberID_x003E_k__BackingField>
    <_x003C_Flag_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.TPS.Model.Common">12</_x003C_Flag_x003E_k__BackingField>
    <_x003C_ID_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.TPS.Model.Common">5bf41f48-be65-4e20-b226-a838a9eb42d5</_x003C_ID_x003E_k__BackingField>
    <d2p1:DepartmentId>84779167-c051-48e2-b50d-c76f4e52dcde</d2p1:DepartmentId>
    <d2p1:MemberId>989b3d22-6337-4a7e-a69e-84c16937ff67</d2p1:MemberId>
    <d2p1:PhysicsPath>sample string 4</d2p1:PhysicsPath>
    <d2p1:TagId>d3f83dd6-7638-49ff-9748-1f657b31dc2d</d2p1:TagId>
    <d2p1:TagName>sample string 5</d2p1:TagName>
    <d2p1:URLPath>sample string 6</d2p1:URLPath>
  </Data>
</ExecuteResultOfImageResourcesRAoaKam_S>