Add issue watchers
POSThttps://your-domain/openapi/v2/project/issues/:issueID/watchers
Add issue watchers.
History
Version | Changes |
---|---|
v3.14.117, v3.15.26 | Added in: v3.14.117, v3.15.26 |
Request
Path Parameters
The ID of the issue
Query Parameters
The team ID
- application/json
Body
required
The users where need to add issue watchers
Possible values: non-empty
and <= 8 characters
issue watchers
Responses
- 200
- 401
- 403
- 404
- 500
Request successful.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
Error meta data for this request.
[
{
"result": "SUCCESS"
},
{
"result": "FAIL",
"errorCode": "NotFound",
"errorMsg": "NotFound issue"
},
{
"result": "FAIL",
"errorCode": "Internal server error",
"errorMsg": "Internal server error"
},
{
"result": "FAIL",
"errorCode": "PermissionDenied",
"errorMsg": "PermissionDenied view_tasks"
},
{
"result": "FAIL",
"errorCode": "InvalidParameter",
"errorMsg": "InvalidParameter issueComment text empty"
}
]
Returned if the authentication credentials are incorrect or missing.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "Unauthorized",
"errorMsg": "Access token is invalid"
}
Returns if the scope check fails.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "Forbidden",
"errorMsg": "Scope is invalid"
}
Returned if the resource object was not found.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "NotFound",
"errorMsg": "Not Found"
}
Internal Server Error.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "Internal Server Error",
"errorMsg": "Internal Server Error"
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://your-domain/openapi/v2/project/issues/:issueID/watchers' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"watchers": [
"UoG2xQsS",
"Hw7ex3bq"
]
}'