POST api/SiteManagement/CreateSiteIfNotExists

Creates a site for a list item if it does not exists.

Request Information

URI Parameters

None.

Body Parameters

Use the parameter to specify the ListID and ListItemID

WorkPoint365.WebAPI.Model.SiteParameter
NameDescriptionTypeAdditional information
ListID

Gets or sets the list identifier.

globally unique identifier

None.

ListItemID

Gets or sets the list item identifier.

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ListID": "a6a2b73e-cae9-4189-9bfa-3c16e7fa59a4",
  "ListItemID": 2
}

application/xml, text/xml

Sample:
<SiteParameter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WorkPoint365.WebAPI.Model">
  <ListID>a6a2b73e-cae9-4189-9bfa-3c16e7fa59a4</ListID>
  <ListItemID>2</ListItemID>
</SiteParameter>

Response Information

Resource Description

Returns a bool to indicate if the site was succesfully created.

System.Net.Http.HttpResponseMessage
NameDescriptionTypeAdditional information
Version

System.Version

None.

Content

System.Net.Http.HttpContent

None.

StatusCode

System.Net.HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

System.Net.Http.HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.