# Initiate Media ZIP Packaging Initiates ZIP packaging for the specified media at the given remote office. Returns a status response indicating the packaging progress. Poll this endpoint until `zipStatus` is `COMPLETED`, then call the Download Media API to retrieve the packaged media bundle. ## Endpoints `PUT /emsapi/osdeployer/media/{mediaId}/createZipFile` ## Request URL `https://{server-hostname}:8383/emsapi/osdeployer/media/{mediaId}/createZipFile` ## Scope `OSDMedia.UPDATE` ## Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept** (`string`, Mandatory): `application/mediaZipCreationStatus.v1+json` - **Content-Type** (`string`, Mandatory): `application/json` ### Path Parameters - **mediaId** (`string`, Mandatory): ID of OS deployer Media zip Creation. ## Sample Request ```curl curl --request PUT \ --url https://appdomain/emsapi/osdeployer/media/{mediaId}/createZipFile \ --header 'Accept: application/mediaZipCreationStatus.v1+json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/json' ``` ## Response Parameters ### HTTP Code 200 Response Body: `application/mediaZipFileStatus.v1+json` - `isZipCreationInitiated` (`boolean`): True if the ZIP packaging process was successfully started; false if it could not be initiated. - `mediaStatus` (`integer`): Current media status code. Present only when creating a ZIP for a remote office (value `14` = creating ZIP for remote office). Absent for primary office requests. ## Possible Response Codes - **200**: HTTP code ## Sample Response: HTTP 200 ZIP packaging started for a remote office; `mediaStatus` `14` indicates ZIP creation in progress. ```json { "isZipCreationInitiated": true, "mediaStatus": 14 } ``` ZIP packaging started for the primary office; `mediaStatus` is absent for local office. ```json { "isZipCreationInitiated": true } ``` ## Rate Limits ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **Duration:** 1 minute | **Threshold:** 50 | **Lock period:** 5 minutes Duration - Time window for the threshold. Threshold - Number of API calls allowed within the specified duration. Lock Period - Wait time before consecutive API requests.