Skip to content

Commit ab67c25

Browse files
updated shareable curl
1 parent e7f7321 commit ab67c25

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

docs/apis-for-app-testing.md

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -87,28 +87,28 @@ Shown below is the response to the above cURL request.
8787

8888
## Generate publicly shareable build and test links
8989

90-
To generate public shareable build link, run the below cURL command.
90+
To generate public **shareable build link**, run the below cURL command.
9191

9292
<div className="lambdatest__codeblock">
9393
<CodeBlock className="language-bash">
94-
{`curl -X POST 'https://api.lambdatest.com/lshs/api/v1.0/share-item/generate-sharable-link' \
95-
-H 'Content-Type: application/json' \
96-
--user 'username:password' \
97-
-d '{
98-
"entityIds": ["123456"],
99-
"entityType": "App Automation Build",
100-
"expiresAt": 7
101-
}'`}
94+
{`curl 'https://api.lambdatest.com/lshs/api/v1.0/share-item/generate-sharable-link' \
95+
-H 'Content-Type: application/json' \
96+
-u "${YOUR_LAMBDATEST_USERNAME()}:${YOUR_LAMBDATEST_ACCESS_KEY()}" \
97+
--data-raw '{"entityIds":["buildid"],"entityType":"App Automation Build","expiresAt":7}'`}
10298
</CodeBlock>
10399
</div>
104100

105-
To generate public shareable test link, run the below cURL command.
101+
102+
To generate public **shareable test link**, run the below cURL command.
106103

107104
<div className="lambdatest__codeblock">
108105
<CodeBlock className="language-bash">
109106
{`curl 'https://api.lambdatest.com/lshs/api/v1.0/share-item/generate-sharable-link' \
110-
-H 'authorization: Bearer <Bearer Token>' \
111-
--data-raw '{"entityIds":["APPTESaBCDefGHI5JlMnOPQ"],"entityType":"App Automation Test","expiresAt":7}'`}
107+
-H 'Content-Type: application/json' \
108+
-u "${YOUR_LAMBDATEST_USERNAME()}:${YOUR_LAMBDATEST_ACCESS_KEY()}" \
109+
--data-raw '{"entityIds":["testID"],"entityType":"App Automation Test","expiresAt":7}'
110+
`}
111+
112112
</CodeBlock>
113113
</div>
114114

@@ -117,6 +117,11 @@ To generate public shareable test link, run the below cURL command.
117117
| Test | `entityIds` <br/> <br/> `entityType` <br/> <br/> `expiresAt` | For tests, pass `entityIds` as the test id and pass `entityType` as "App Automation Test" <br/> `expiresAt` is the number of days after which the shareable test link will expire '|
118118
| Build | `entityIds` <br/> <br/> `entityType` <br/> <br/> `expiresAt` | For builds, pass `entityIds` as the build id and pass `entityType` as "App Automation Build" <br/> `expiresAt` is the number of days after which the shareable build link will expire '|
119119

120+
:::note
121+
The shareable links are valid for a period of 7, 15, or 30 days, after which they will expire.
122+
123+
:::
124+
120125
>That’s all! In case you have any questions or need any additional information, you could reach out at our <span className="doc__lt" onClick={() => window.openLTChatWidget()}>**24X7 Chat Support**</span> or mail us directly at [email protected].
121126
122127
<nav aria-label="breadcrumbs">

0 commit comments

Comments
 (0)