Create Status Mapping
POST odata/\_fieldMappings --x-appvity-channelId: [ChannelID] --x-appvity-teamid: [TeamID] --Cookie: graphNodeCookie=[ID] --data-raw: {MappingStatus-Object} |
URL Endpoint
odata/\_fieldMappings.
Method
POST.
Parameters
Do not supply OData Filter syntax.
Request Header
--x-appvity-channelId: [ChannelID]
--x-appvity-teamid: [TeamID]
--Cookie: graphNodeCookie=[ID]
Body
{
"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
{
"@odata.context":
"https://schema.appvity.com/odata/$metadata#_fieldMappings/$entity",
"@odata.editLink":
"https://schema.appvity.com/odata/_fieldMappings('5f7295104d596392f5aa2073')",
"@odata.id":
"https://schema.appvity.com/odata/_fieldMappings('5f7295104d596392f5aa2073')",
"fieldId": "5f5ed9639669798c318eb767",
"fieldName": "Not Started",
"projectId": "5f680e6d4d596392f55e0553",
"projectHostname": "anadea.atlassian.net",
"source": "Jira",
"sourceId": "10000",
"sourceName": "New 001",
"enable": ## true## ,
"type": "status",
"createdAt": "2020-09-29T01:59:44.969Z",
"updatedAt": "2020-09-29T01:59:44.969Z",
"_id": "5f7295104d596392f5aa2073"
}
Error
Code: 401 UNAUTHORIZED, 500 ERROR EXCEPTION.
Content: {error: "error message”}
If status is mapped, this method returns 400 Bad Request response code with the following message:
{
"code": "Duplicate mapping",
"message": "Duplicate mapping"
}