Skip to main content

Update File ID

Description

Updates file ID via the web service.

Function Signature:

def update_file_id(ws_config: WebServiceConfig, video_clip_id: int, file_id: int) -> StandardResult:

Parameters

  • ws_config (WebServiceConfig): Configuration for the web service connection.
  • video_clip_id (int): Video clip identifier.
  • file_id (int): File identifier.

Returns

  • StandardResult: A result object containing:
    • code: HTTP status code (200 for success, -1 for exceptions).
    • description: Response body or error message.

Example Usage

# Example usage
ws_config = WebServiceConfig(access_key="key", secret_key="secret", base_url="https://api.example.com/")
video_clip_id = 1
file_id = 1
result = update_file_id(ws_config, video_clip_id, file_id)
print(result)

Behavior

  • Sends a signed request to the web service.
  • On success, returns the computed value or result object.

Error Handling

  • Exceptions set the result code to -1 and include an error message when implemented.