Create dependency mapping
POST {{baseUrl}}/api/v1/dependencyMappings
This API creates a dependency mapping between two fields.
OAuth Scope
Desk.settings.CREATE
Attributes
Attribute Name | Data Type | Description |
---|---|---|
layoutId (required) | <long> | ID of the layout in which the dependency is mapped |
parentId (required) | <long> | ID of the parent field |
childId (required) | <long> | ID of the child field |
mappings (required) | <list> | JSON object that shows the mapping configured |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"parent":{"displayLabel":"Category","allowedValues":["General","Defects"],"id":"4000000000421"},"mappings":{"General":["High","Medium"],"Defects":["Low"]},"id":"4000000047001","childId":"4000000000407","layoutId":"4000000007177","parentId":"4000000000421","child":{"displayLabel":"Priority","allowedValues":["High","Medium","Low"],"id":"4000000000407"}}