Session›Update session name and status. (Server 2)
Session
Update session name and status. (Server 2)
To update the test session name and status {"passed","failed"}.
Update session name and status. (Server 2) curl --request PATCH \
--url "https://manual-api.lambdatest.com/sessions/{session_id}" \
--header "Authorization: Basic <encoded-value>" \
--header "Content-Type: application/json" \
--data '{
"name": "<name>",
"status_ind": "<status_ind>",
"custom_data": "<custom_data>"
}'
{
"message": "Session updated successfully",
"status": "success"
}
Authorizations
Authorizationstringheaderrequired
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Path Parameters
session_idstringrequired
Session ID
Body
application/jsonYou can update both name and status of a session in single request.
Response
application/jsonsuccessful operation.
Update session name and status. (Server 2) curl --request PATCH \
--url "https://manual-api.lambdatest.com/sessions/{session_id}" \
--header "Authorization: Basic <encoded-value>" \
--header "Content-Type: application/json" \
--data '{
"name": "<name>",
"status_ind": "<status_ind>",
"custom_data": "<custom_data>"
}'
{
"message": "Session updated successfully",
"status": "success"
}