prerun › Check if the file is approved by Lambdatest
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
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 Authorization string header required
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_path string required
file path of pre run file in our lambda storage. You can get file_path from the GET /files API
Response 200▼
application/json Successful operation
data object
▶ Hide child attributesdata. post_run_file_path string
Example: "dialog_disable/post/httpdialogenable.au3"
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"
}