deletePageTypeFieldValue()
Pixelsilk API function to delete one of a field's values--requires the advanced-admin-access permission
Parameters:
pageTypeId: unique identifier of the page type
fieldId: unique identifier of the field
valueId: unique identifier of the value
Output:
The function deletePageTypeFieldValue returns void.
C# Example:
Guid pageTypeId = <page type's id>;
Guid fieldId = <field's id>;
Guid valueId = <value's id>;
DeletePageTypeFieldValue(pageTypeId, fieldId, valueId);
Note the capital first letter of the C# method.
HTTP Example:
Request Headers:
POST /api2/deletePageTypeFieldValue HTTP/1.1
HOST: www.example.com
Content-Length: 264
Content-Type: application/x-www-form-urlencoded
Cookie: auth=7C5DBA9AF1C5...BC202A22818B
Request Data:
Unencoded Data:
json={
"pageTypeId":"031ce0ac-24c1-4254-a7ec-82a4d7fe5c8e",
"fieldId":"325770a4-5d4c-46eb-a7b1-3780efac8c78",
"valueId":"f21c5aa0-f672-4379-8510-048157a7a19f"
}&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=0F488AEE97AD...6CBB7972E31; path=/
Content-Type: text/javascript; charset=UTF-8
Content-Length: 2
Response Data:
{}
JavaScript Example:
Method Call:
pixelsilk2.deletePageTypeFieldValue(input, callback);
Input Object:
{
pageTypeId:"031ce0ac-24c1-4254-a7ec-82a4d7fe5c8e",
fieldId:"325770a4-5d4c-46eb-a7b1-3780efac8c78",
valueId:"cf568c00-1722-483f-8179-3628283f4996"
}
Returned Data:
{}
Back to Page Types »