Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

DDSameera's avatar

How to double encode the UUID before making an API request.

I want to pass UUID parameter to ZOOM API So I refered this API page https://marketplace.zoom.us/docs/api-reference/zoom-api/cloud-recording/recordingsettingsupdate

Here is the unclear part.

If a UUID starts with “/” or contains “//” (example: “/ajXp112QmuoKj4854875==”), you must double encode the UUID before making an API request.

So I modified my code.

 $uuId = $recordingSettings['uu_id'];
        $uuId =  htmlentities( $uuId, ENT_QUOTES, "UTF-8", true);
        $updateSettingsUrl = "/meetings/".$uuId."/recordings/settings";
       $updateMeetingSettingResponse = $this->zoomPatch($updateSettingsUrl, $patchData);

It doesnt work . I have no idea about Double Encoding. please help me to resolve this .

0 likes
1 reply
DDSameera's avatar
DDSameera
OP
Best Answer
Level 3

Found the solution


        $uuId = $recordingSettings['uu_id'];

        //Double URL Encode
        $uuId = urlencode($uuId);
        $uuId = urlencode($uuId);

        
        $updateSettingsUrl ="/meetings/" . $uuId . "/recordings/settings";
        $updateMeetingSettingResponse = $this->zoomPatch($updateSettingsUrl, $patchData);

         $updateMeetingSettingsStatus = $updateMeetingSettingResponse->status();

Please or to participate in this conversation.