Append

Note  This API call is deprecated; use the appendmp call instead. See Append multiple parts.

If a database is larger than 500 MB, use this API call to upload a database divided into multiple parts, where one part is uploaded at a time. On the host, each part is appended to the previous part.

For example, if a database has four parts, call this API four times to upload the parts in order. Check whether each part is finished before starting the next.

HTTP method

PUT

HOST URL

https://instance-name

API call URL

/fmws/{db-upload-uri or rc-upload-uri}/DatabaseFilename

Use the URIs returned from the "getdatabaseuploadinfo" API call for db-upload-uri or rc-upload-uri.

HTTP header
  • x-fms-command: The command for the API call. For this header, "append" is the only value allowed.
  • x-fms-session-key (string): The session key returned from the Authentication API call.
  • x-fms-append (integer): The status for appending the first, second, or last part of the database. Possible values are:
    • 1 - append start: It appends the first part of the file.
    • 2 - append update: It appends the parts between the first and the last in order.
    • 3 - append end: It appends the last part of the file.
Body The file to upload
Parameters None
Response

The API call result code.

For example:

"result": 0
Response header

Check the response header for any error codes.

For example:

Copy
"x-FMS-Result" : 9
"x-FMS-Error" : (9): Access was denied