Emails information on the specified item.
Use the operation to email detailed information on the specified item (a test, a test run, a defect, and so on) to the specified users. The item with the specified ID must exist.
Basic authentication using a user’s login and password. See Authentication for details.
The authenticating user must have the Read privilege for the item.
To email item information to users, send a POST request to the following URL:
ProjectId : integer, required
The ID of the project to which the item belongs.
EntityCode : string, required
The type of the item whose data you want to email. Possible values:
Id : integer, required
The ID of the item whose data you want to email.
In the request body, pass the
SendEntityByIdPostRequest object that lists the IDs of the users who will get information about the item:
UsersIds : array of integers, required
An array of IDs of the users who will get the email.
A sample request:
POST http://yourserver.com/rest-api/service/api/v2/projects/11873/sendemail/Tests/2 HTTP/1.1
Authorization: Basic am9obkBleGFtcGxlLmNvbTpwQHNzd29yZA==
A sample request made by using cURL:
curl -u email@example.com:p@ssword http://yourserver.com/service/api/v2/projects/11873/sendemail/Tests/2
On success, the operation returns an empty response with HTTP status code 200.
If the operation fails, it returns the appropriate status code and (optionally) the error description in the response body.
If the project with the specified ProjectId does not exist or the authenticating user does not have rights to access the project, the operation returns the
Access is denied error.