deletePageType()
Pixelsilk API function to delete a page type--requires the advanced-admin-access permission
Parameters:
pageTypeId: the unique identifier for the page type
Output:
The function deletePageType returns void.
C# Example:
Guid pageTypeId = <page type's id>;
DeletePageType(pageTypeId);
Note the capital first letter of the C# method.
HTTP Example:
Request Headers:
POST /api2/deletePageType HTTP/1.1
HOST: www.example.com
Content-Length: 124
Content-Type: application/x-www-form-urlencoded
Cookie: auth=6D907845481D...218945431F79
Request Data:
Unencoded Data:
json={
"pageTypeId":"5fbb9e8f-7e0f-433a-8b71-2eb10f7d04a2"
}&token=7AdbNHZQBtwc...RPTEK8UvSUQ=
Url-encoded Data:
json=%7b%0d%0a+++...%22%0d%0a%7d&token=7AdbNHZQBtwc...TEK8UvSUQ%3d
Response Headers:
HTTP/1.1 200 OK
Set-Cookie: auth=55722C2C3BAE...9F8FF71889B; path=/
Content-Type: text/javascript; charset=UTF-8
Content-Length: 2
Response Data:
{}
JavaScript Example:
Method Call:
pixelsilk2.deletePageType(input, callback);
Input Object:
{
pageTypeId:"7aea1d43-478a-464d-8fb9-c6d7a786fd67"
}
Returned Data:
{}
Back to Page Types »