UserAnnouncementFileModifyRequest
Bases: OCIRequest
This command is used to change the name of the file or upload a new announcement file for an existing announcement in the user repository. When modifying the file type the command will fail if the media type of the new file changes the announcement from audio to video (or vice versa).
The following elements are only used in AS data mode and ignored in XS data mode:
announcementFileExternalId
The response is either a SuccessResponse or an ErrorResponse.
Attributes:
user_id (Optional[str]):
announcement_file_key (Optional[AnnouncementFileKey]):
announcement_file_external_id (Optional[str]):
new_announcement_file_name (Optional[str]):
announcement_file (Optional[LabeledMediaFileResource]):
Source code in src/mercury_ocip_fast/commands/commands.py
100499 100500 100501 100502 100503 100504 100505 100506 100507 100508 100509 100510 100511 100512 100513 100514 100515 100516 100517 100518 100519 100520 100521 100522 100523 100524 100525 100526 100527 100528 100529 100530 100531 100532 100533 100534 100535 100536 100537 100538 100539 100540 100541 | |
Responses
Example Usage
from mercury_ocip_fast.client import Client
from mercury_ocip_fast.commands import UserAnnouncementFileModifyRequest
client = Client()
command = UserAnnouncementFileModifyRequest(
user_id=...,
announcement_file_key=...,
announcement_file_external_id=...,
new_announcement_file_name=...,
announcement_file=...,
)
response = client.command(command)
print(response)