Skip to main content
prerunCheck if the file is approved by Lambdatest
TestMu AI
StatusCommunityBlog
prerun

Check if the file is approved by Lambdatest

Once the pre run executable is successfully uploaded, LambdaTest will check the script and approve it after successful verification. This API will tell if the file is approved or not

POST
/files/validate
Check if the file is approved by Lambdatest
curl --request POST \
--url "https://api.lambdatest.com/automation/api/v1/files/validate" \
--header "Authorization: Basic <encoded-value>" \
--header "Content-Type: application/json" \
--data '{
"file_path": "<file_path>"
}'
{
"data": {
"post_run_file_path": "dialog_disable/post/httpdialogenable.au3"
},
"message": "File exist in our lambda storage and is approved successfully",
"staus": "success"
}

Authorizations

Authorizationstringheaderrequired

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json

To check if the file is approved by Lambdatest

file_pathstringrequired

file path of pre run file in our lambda storage. You can get file_path from the GET /files API

Response

application/json

Successful operation

dataobject
data.post_run_file_pathstring
Example: "dialog_disable/post/httpdialogenable.au3"
messagestring
stausstring
Check if the file is approved by Lambdatest
curl --request POST \
--url "https://api.lambdatest.com/automation/api/v1/files/validate" \
--header "Authorization: Basic <encoded-value>" \
--header "Content-Type: application/json" \
--data '{
"file_path": "<file_path>"
}'
{
"data": {
"post_run_file_path": "dialog_disable/post/httpdialogenable.au3"
},
"message": "File exist in our lambda storage and is approved successfully",
"staus": "success"
}