ProcFormFileEdit

ProcFormFileAdd(
    int    FormID,
    int    FileID,
    string Name,
    string Description,
    bool   IsStaffOnly,
    int    FolderID
)

Modified an attached a file to a Form.

Request

Request Data:

  • (int) FormID (required) – identify the Form to which this file is attached to.
  • (int) FileID (required) – ID of the file to modify.
  • (string) Name (optional) – new name for the filae (include file extension matching the actual file type)
  • (string) Description (optional) – new description for the file
  • (bool) IsStaffOnly (optional) – wether the file should be visible to staff users only
  • (int) FolderID (optional) – id for the folder to put the file into. If the folder ID is provided but is not found, the file is attached to the default location.
{
	"FormID"     : <int>,
	"FileID"     : <int>,
	"Name"       : <string>,
	"Description": <string>,
	"IsStaffOnly": <bool>,
	"FolderID"   : <int>
}

Response

{
  "Result": {
    "FileAttachment": {
      "FileID": <int>,
      "FormID": <int>,
      "Name": <string>,
      "Description": <string>,
      "IsStaffOnly": <bool>,
      "FolderID": <int>
    }
  }
}

Errors

  • “Form not found”
  • “File not found”
%d bloggers like this: