Online Docs

Update Mapped Status

Update the properties of the specified the mapped status in a channel.

PATCH odata/_fieldMappings({id}) –x-appvity-channelId: [ChannelID] –x-appvity-teamid: [TeamID] –Cookie: graphNodeCookie=[ID] –data-raw: {MappingStatus-Object}

URL Endpoint

odata/_fieldMappings({id})

Method

PATCH.

Parameters

Do not supply OData Filter syntax.

Request Header

1
2
3
--x-appvity-channelId: [ChannelID]
--x-appvity-teamid: [TeamID]
--Cookie: graphNodeCookie=[ID]

Body

In the request body, supply a JSON representation of fieldMappings object.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{

"fieldId": "5f5ed9639669798c318eb767",

"fieldName": "Not Started",

"projectId": "5f680e6d4d596392f55e0553",

"projectHostname": "anadea.atlassian.net",

"source": "Jira",

"sourceId": "10000",

"sourceName": "New 001",

"enable": true,

"type": "status",

"entityType": "Task"

}

Response

If successful, this method returns a 204 No Content response code.

Error

Code: 401 UNAUTHORIZED, 500 ERROR EXCEPTION.
Content: {error: “error message”}

If the mapping status is not available, this method returns 400 Bad Request with the message:

1
2
3
4
5
{

"message": "Update not successful"

}

Comment

Was this article helpful?
Thanks For Your Feedback