Skip to main content
No Result Found
Connect & Get help from fellow developers on our Discord community. Ask the CommunityAsk the Community

Finish build API in Test Reporting & Analytics

Use this API to mark a build as complete. Call this after finishing all test runs and hook runs within the build.

Finish a build

PUT https://api-automation.browserstack.com/ext/v1/builds/{{BUILD_HASHED_ID}}/finish

Request parameters

Request

curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
-X PUT "https://api-automation.browserstack.com/ext/v1/builds/BUILD_HASHED_ID/finish" \
-H "Content-Type: application/json" \
-d '{
  "finished_at": "2025-11-11T10:31:00Z"
}'
  • finished_at* String (ISO 8601)

    Build completion timestamp in ISO 8601 format (for example, 2025-11-11T10:45:30Z).

Response attributes 200 OK JSON

Response

{
  "success": true,
  "message": "Build finished successfully."
}
  • success Boolean

    Indicates if the build was finished successfully.

  • message String

    A success or error message describing the result of the operation.

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Download Copy Check Circle