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": "fd6fcc84-8d8b-43fd-8557-f70e0fd4d80e",
  "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>fd6fcc84-8d8b-43fd-8557-f70e0fd4d80e</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.