POST api/Image/EditImage

Request Information

URI Parameters

None.

Body Parameters

ImageDTO
NameDescriptionTypeAdditional information
Id

integer

None.

Guid

string

None.

ImageUrl

string

None.

Afdeling

Afdeling

None.

Type

ImageType

None.

Title

string

None.

Description

string

None.

FrontText

string

None.

FrontTextColor

string

None.

FrontBackgroundColor

string

None.

ShowOnFrontPage

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Guid": "sample string 2",
  "ImageUrl": "sample string 3",
  "Afdeling": 0,
  "Type": 0,
  "Title": "sample string 4",
  "Description": "sample string 5",
  "FrontText": "sample string 6",
  "FrontTextColor": "sample string 7",
  "FrontBackgroundColor": "sample string 8",
  "ShowOnFrontPage": true
}

application/xml, text/xml

Sample:
<ImageDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Model.DTOClasses">
  <Afdeling>Håndbold</Afdeling>
  <Description>sample string 5</Description>
  <FrontBackgroundColor>sample string 8</FrontBackgroundColor>
  <FrontText>sample string 6</FrontText>
  <FrontTextColor>sample string 7</FrontTextColor>
  <Guid>sample string 2</Guid>
  <Id>1</Id>
  <ImageUrl>sample string 3</ImageUrl>
  <ShowOnFrontPage>true</ShowOnFrontPage>
  <Title>sample string 4</Title>
  <Type>News</Type>
</ImageDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ServiceResultOfBoolean
NameDescriptionTypeAdditional information
Success

boolean

None.

ErrorMessage

string

None.

SuccessMessage

string

None.

Result

boolean

None.

StatusCode

HttpStatusCode

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "ErrorMessage": "sample string 2",
  "SuccessMessage": "sample string 3",
  "Result": true,
  "StatusCode": 100
}

application/xml, text/xml

Sample:
<ServiceResultOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Model">
  <ErrorMessage>sample string 2</ErrorMessage>
  <Result>true</Result>
  <StatusCode>Continue</StatusCode>
  <Success>true</Success>
  <SuccessMessage>sample string 3</SuccessMessage>
</ServiceResultOfboolean>