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.SiteParameterName | Description | Type | Additional 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": "7cb67b6b-87f5-4c7d-a985-4a16fc81bfdc", "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>7cb67b6b-87f5-4c7d-a985-4a16fc81bfdc</ListID> <ListItemID>2</ListItemID> </SiteParameter>
Response Information
Resource Description
Returns a bool to indicate if the site was succesfully created.
System.Net.Http.HttpResponseMessageName | Description | Type | Additional 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. |