Update bug
Change information of existing properties with new information. A bug’s fields and information in the current channel will be updated.
PATCH odata/bugs({bug-id})
--x-appvity-channelId: [ChannelID]
--x-appvity-teamid: [TeamID]
--Cookie: graphNodeCookie=[ID]
--data-raw:
{
[bug Properties]
}
URL Endpoint
odata/bugs({bug-id})
Method
PATCH.
Parameters
This method is not support OData Filter syntax.
Request
Header
--x-appvity-channelId: [ChannelID]
--x-appvity-teamid: [TeamID]
--Cookie: graphNodeCookie=[ID]
Body
In the requested body, only include all fields that need to update. Other fields that not included will keep it old value.
{
"name": "B-bug 1",
"owner": "Cora Rowland",
"priority": "Normal",
"status": "In Progress",
"severity": "High",
"dueDate": "2020-09-29T17:00:00Z",
"assignedTo": [
{
"_id": "5bce7df753b66e19aaa3e825",
"sourceId": "a68cf37b-c7fe-4f7d-ae5c-cf432d7ecf8f",
"displayName": "z Kate Cloud",
"email": "clouduser7@anadea.onmicrosoft.com",
"source": "Microsoft.Graph.User",
"username": "clouduser7@anadea.onmicrosoft.com"
}
]
}
Response
Success
If successful, this method returns a 204 No Content
response code and no content in the response body.
Error
This method can return any of the HTTP status codes. The most common errors that apps should handle for this method are the 400, 403, 404, 409, and 412 responses.
Example
Request
curl --location --request PATCH 'https://teams.appvity.com/odata/bugs(5f6176d04d596392f54717f8)' \
--H 'x-appvity-channelId: 19:15c258785b4040699180e7a8ad6c6014@thread.tacv2' \
--H 'x-appvity-teamid: 19:15c258785b4040699180e7a8ad6c6014@thread.tacv2' \
--H 'Cookie: graphNodeCookie=s%3AlaIrRjrQdBULLxHHgBM0ofupyqfGBmRf.4vy0SDHjNaJ9%2Fa3MeJbeIOQchnkP1NNAQTv9AViLawk' \
--data-binary '
{
[bug Properties]
}'
Response
No Content.