Resources User Set Queries And Watches
Set Queries And Watches
Http Method
POST
End Point
/api/users/{userId}/queries-and-watches
Placeholder Description Example
{userId} User Id 1
Request Body
Content Type
application/json
Example
{
"projectQueries" : [ {
"name" : "string" ,
"query" : "string"
}
]
,
"issueQueries" : [ {
"name" : "string" ,
"query" : "string"
}
]
,
"issueQueryWatches" : {
"string" : true
}
,
"pullRequestQueries" : [ {
"name" : "string" ,
"query" : "string"
}
]
,
"pullRequestQueryWatches" : {
"string" : true
}
,
"buildQueries" : [ {
"name" : "string" ,
"query" : "string"
}
]
,
"buildQuerySubscriptions" : [ "string" ]
}
Response
Operation Successful
Status Code
200
Response Body
No response body if successful; error
Operation Failed
Status code
Status code other than 200 indicating the error type
Response Body
Error detail of content type "text/plain"
cURL Example
$ curl -u <login name>:<password or access token> [email protected] -H "Content-Type: application/json" https://git.crazyhackgut.ru/api/users/1/queries-and-watches
Please wait...
Page is in error, reload to recover