Create dependency mapping

POST {{baseUrl}}/api/v1/dependencyMappings

This API creates a dependency mapping between two fields.

OAuth Scope

  • Desk.settings.CREATE

Attributes

Attribute NameData TypeDescription
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

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{&quot;parent&quot;:{&quot;displayLabel&quot;:&quot;Category&quot;,&quot;allowedValues&quot;:[&quot;General&quot;,&quot;Defects&quot;],&quot;id&quot;:&quot;4000000000421&quot;},&quot;mappings&quot;:{&quot;General&quot;:[&quot;High&quot;,&quot;Medium&quot;],&quot;Defects&quot;:[&quot;Low&quot;]},&quot;id&quot;:&quot;4000000047001&quot;,&quot;childId&quot;:&quot;4000000000407&quot;,&quot;layoutId&quot;:&quot;4000000007177&quot;,&quot;parentId&quot;:&quot;4000000000421&quot;,&quot;child&quot;:{&quot;displayLabel&quot;:&quot;Priority&quot;,&quot;allowedValues&quot;:[&quot;High&quot;,&quot;Medium&quot;,&quot;Low&quot;],&quot;id&quot;:&quot;4000000000407&quot;}}