POST api/Procedure/AddImage?specialityId={specialityId}&procedureId={procedureId}&categoryId={categoryId}&userId={userId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
specialityId

byte

Required

procedureId

string

Required

categoryId

byte

Required

userId

integer

Required

Body Parameters

ImagesDTO
NameDescriptionTypeAdditional information
Name

string

None.

ImagePath

string

None.

ApprovalStatus

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "ImagePath": "sample string 2",
  "ApprovalStatus": 3
}

multipart/form-data

Sample:
{"Name":"sample string 1","ImagePath":"sample string 2","ApprovalStatus":3}

application/xml, text/xml

Sample:
<ImagesDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ScrupUpBusinessModel.DTO">
  <ApprovalStatus>3</ApprovalStatus>
  <ImagePath>sample string 2</ImagePath>
  <Name>sample string 1</Name>
</ImagesDTO>

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

Response Information

Resource Description

string

Response Formats

application/json, text/json, multipart/form-data

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>