deletePageTypeField()
Pixelsilk API function to delete a field from a page type--requires the advanced-admin-access permission
Parameters:
pageTypeId: the unique identifier of the page type
fieldId: the unique identifier of the field
Output:
The function deletePageTypeField returns void.
C# Example:
Guid pageTypeId = <page type's id>;
Guid fieldId = <field's id>;
DeletePageTypeField(pageTypeId, fieldId);
Note the capital first letter of the C# method.
HTTP Example:
Request Headers:
POST /api2/deletePageTypeField HTTP/1.1
HOST: www.example.com
Content-Length: 194
Content-Type: application/x-www-form-urlencoded
Cookie: auth=84210CC77DBA...CB76F0A3635E
Request Data:
Unencoded Data:
json={
"pageTypeId":"56e7e8e2-fb4a-4aea-8bdb-d335f0e83462",
"fieldId":"0beacaeb-6c42-4b6b-9771-2cd48b54e4f6"
}&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=BE181BBA7451...EE5A78F6D0C; path=/
Content-Type: text/javascript; charset=UTF-8
Content-Length: 2
Response Data:
{}
JavaScript Example:
Method Call:
pixelsilk2.deletePageTypeField(input, callback);
Input Object:
{
pageTypeId:"56e7e8e2-fb4a-4aea-8bdb-d335f0e83462",
fieldId:"e01febed-6015-4d8f-a520-e682923dcb9a"
}
Returned Data:
{}
Back to Page Types »