Update Status
Update the properties of the specified status in a channel.
PATCH odata/status({id}) --x-appvity-channelId: [ChannelID] --x-appvity-teamid: [TeamID] --Cookie: graphNodeCookie=[ID] --data-raw: {StatusObject} |
URL Endpoint
odata/status({id})
Method
PATCH.
Parameters
Do not supply OData Filter syntax.
Request Header
x-appvity-channelId: [ChannelID]
x-appvity-teamid: [TeamID]
Cookie: graphNodeCookie=[ID]
_Body_
In the request body, supply a JSON representation of Status object.
{
"name": "[Status Name]",
"color": "[Status Color Code]",
"category": "[Status Catergory]",
"description": "[Description]",
"primary": [Set Primary],
"order": [Status Order],
"value": [[Status Order]]
}
Response
If successful, this method returns 204 No Content response code.
Error
Code: 401 UNAUTHORIZED, 500 ERROR EXCEPTION.
Content: {error: "error message”}
Example:
Request
Response