Online Docs

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--x-appvity-channelId: [ChannelID]

--x-appvity-teamid: [TeamID]

--Cookie: graphNodeCookie=[ID]
```

## Body
```json
{

"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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{

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

1
2
3
4
5
6
7
{

"code": "Duplicate mapping",

"message": "Duplicate mapping"

}

Comment

Was this article helpful?
Thanks For Your Feedback