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 Authorization string header required
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Path Parameters session_id string required
Session ID
Body application/json You can update both name and status of a session in single request.
Response 200▼
application/json successful 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"
}