From ab67c2525fceba96fc40b5e49176c28bf5ac8cec Mon Sep 17 00:00:00 2001 From: shreybansal-lambdatest Date: Thu, 20 Mar 2025 17:55:10 +0530 Subject: [PATCH] updated shareable curl --- docs/apis-for-app-testing.md | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/docs/apis-for-app-testing.md b/docs/apis-for-app-testing.md index 82682f80b..6a298fe07 100644 --- a/docs/apis-for-app-testing.md +++ b/docs/apis-for-app-testing.md @@ -87,28 +87,28 @@ Shown below is the response to the above cURL request. ## Generate publicly shareable build and test links -To generate public shareable build link, run the below cURL command. +To generate public **shareable build link**, run the below cURL command.
-{`curl -X POST 'https://api.lambdatest.com/lshs/api/v1.0/share-item/generate-sharable-link' \ --H 'Content-Type: application/json' \ ---user 'username:password' \ --d '{ - "entityIds": ["123456"], - "entityType": "App Automation Build", - "expiresAt": 7 -}'`} +{`curl 'https://api.lambdatest.com/lshs/api/v1.0/share-item/generate-sharable-link' \ + -H 'Content-Type: application/json' \ + -u "${YOUR_LAMBDATEST_USERNAME()}:${YOUR_LAMBDATEST_ACCESS_KEY()}" \ + --data-raw '{"entityIds":["buildid"],"entityType":"App Automation Build","expiresAt":7}'`}
-To generate public shareable test link, run the below cURL command. + +To generate public **shareable test link**, run the below cURL command.
{`curl 'https://api.lambdatest.com/lshs/api/v1.0/share-item/generate-sharable-link' \ - -H 'authorization: Bearer ' \ - --data-raw '{"entityIds":["APPTESaBCDefGHI5JlMnOPQ"],"entityType":"App Automation Test","expiresAt":7}'`} + -H 'Content-Type: application/json' \ + -u "${YOUR_LAMBDATEST_USERNAME()}:${YOUR_LAMBDATEST_ACCESS_KEY()}" \ + --data-raw '{"entityIds":["testID"],"entityType":"App Automation Test","expiresAt":7}' +`} +
@@ -117,6 +117,11 @@ To generate public shareable test link, run the below cURL command. | Test | `entityIds`

`entityType`

`expiresAt` | For tests, pass `entityIds` as the test id and pass `entityType` as "App Automation Test"
`expiresAt` is the number of days after which the shareable test link will expire '| | Build | `entityIds`

`entityType`

`expiresAt` | For builds, pass `entityIds` as the build id and pass `entityType` as "App Automation Build"
`expiresAt` is the number of days after which the shareable build link will expire '| +:::note +The shareable links are valid for a period of 7, 15, or 30 days, after which they will expire. + +::: + >That’s all! In case you have any questions or need any additional information, you could reach out at our  window.openLTChatWidget()}>**24X7 Chat Support** or mail us directly at support@lambdatest.com.