MAPI Manual

NAME

UPDATE_FILE_BYNAME

FUNCTION

Update a file by file_name

SYNOPSIS

file_name, source_file, file_type, file_displayname, file_description, file_format

DESCRIPTION

This function allows users to update a file by file_name.

Required Parameters

* action: UPDATE_FILE_BYNAME.

* file_name: file name. Note: This is the file name defined by the system. Not the display name.

* source_file: specifies the file path.

* file_type: type of the file. Available types are given below:

  • IVR_SOUND: sound file.
  • LOGO: logo.
  • MAP_IMAGE: dialog map image.
  • IC3_IMAGE: image file.
  • USER_DATA: user data.
  • VIDEO: video file.

* file_displayname: specifies file name on screen.

* file_description: specifies description of file.

* file_format: format of the file. Available formats are given below:

  • wav: wave audio file,
  • mp3: mp3 audio file,
  • ogg: audio and video file.

RETURN DATA

The response contains the following attribute:

* msg: Success or error message.

ROLE PERMITTED

YVN Tech

EXAMPLES

The following example shows a successful HTTP GET request and response.

Request:

http://app02.yvntech.com/MapIHttpS/MapIS?action=UPDATE_FILE_BYNAME&file_name=9000.IVR_SOUND.115.165a0b7f3f9.wav&file_displayname=file%20two%20update&login_name=user@example.com&login_passwd=1111


Response:

<result tftype='1' infotype='0'>
    <field name='msg'>SUCCESS</field>
</result>


TIPS

ENVIRONMENT

AUTHOR

YVN Tech

SEE ALSO

ADD_FILE

Mweb v2.0 YVNTECH 2014