Chuyển tới nội dung chính

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

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

_Body_

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

{
"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:

{
"message": "Update not successful"
}