PUT api/Resources/SaveResource

Allows a resource to be update or created by passing an APIResource within the body.

Request Information

URI Parameters

None.

Body Parameters

The APIResource object to be updated or created as a resource.

APIResource
NameDescriptionTypeAdditional information
ID

integer

None.

Name

string

None.

Date

date

None.

StartTime

string

None.

EndTime

string

None.

AvailableFrom

date

None.

AvailableTo

date

None.

ResourceType

string

None.

Adults

integer

None.

Children

integer

None.

Capacity

integer

None.

TotalBooked

integer

None.

ProductMapID

integer

None.

AvailableDays

string

None.

Notes

string

None.

UpSellInfo

string

None.

ProductList

Collection of Object

None.

ResourceUDFs

Collection of Object

None.

QuestionnaireID

integer

None.

Request Formats

application/json, text/json

Sample:
{"ID":0,"Name":"","Date":"0001-01-01T00:00:00","StartTime":"","EndTime":"","AvailableFrom":"0001-01-01T00:00:00","AvailableTo":"0001-01-01T00:00:00","ResourceType":"","Adults":0,"Children":0,"Capacity":0,"TotalBooked":0,"ProductMapID":0,"AvailableDays":"","Notes":"","UpSellInfo":"","ProductList":[],"ResourceUDFs":null,"QuestionnaireID":0}

application/xml, text/xml

Sample:
<?xml version="1.0" encoding="utf-16"?>
<Resource xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ID>0</ID>
  <Name />
  <Date>0001-01-01T00:00:00</Date>
  <StartTime />
  <EndTime />
  <AvailableFrom>0001-01-01T00:00:00</AvailableFrom>
  <AvailableTo>0001-01-01T00:00:00</AvailableTo>
  <ResourceType />
  <Adults>0</Adults>
  <Children>0</Children>
  <Capacity>0</Capacity>
  <TotalBooked>0</TotalBooked>
  <ProductMapID>0</ProductMapID>
  <AvailableDays />
  <Notes />
  <UpSellInfo />
  <ProductList />
  <QuestionnaireID>0</QuestionnaireID>
</Resource>

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.

Response Formats

application/json, text/json

Sample:
{"Result":"SUCCESS","Message":"The Resource: Test Resource has been saved under ID: 001"}

application/xml, text/xml

Sample:
<?xml version="1.0" encoding="utf-16"?>
<InformationResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Result>SUCCESS</Result>
  <Message>The Resource: Test Resource has been saved under ID: 001</Message>
</InformationResponse>