Hi @Tushar Gupta ,
Thank you for using the Microsoft Q&A forum.
The error message "Value for videos[0].documentUrl.videos is invalid" suggests that there is an issue with the structure of the request body for Step 2. So, please re-check your provided request body in postman PUT request. There were Mismatched Brackets in the documentUrl of the Second Video. It looks like there might be some characters in the URL that need encoding, but it's hard to tell without seeing the actual URL content.
After making these adjustments, try the request again and see if the issue persists. If the problem persists, double-check the URL encoding and make sure there are no other syntax errors in the request body.
For debugging purpose, I tried to repro and was able to get a success response. Please find below repro in postman :
Please refer below postman body content that worked for me.
{
"videos": [
{
"mode": "add",
"documentId": "02a504c9cd28296a8b74394ed7488045",
"documentUrl": "https://<YOUR_ENDPOINT_URL>.blob.core.windows.net/d98be185-c266-4639-8558-b7c425705efc-azureml-blobstore/big_buck_bunny_720p_1mb.mp4",
"metadata": {
"cameraId": "camera1",
"timestamp": "2023-06-30 17:40:33"
}
}
]
}
Output:
Hope this helps.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful.