POST ---- * task: POST and instance of ``relation/LineRelation`` * user: site administrator * hierarchy: ``55b9dc81a6165413b9d16ab6`` * Field Display Policy: ``LineMenuFDPSite`` * Configuration Template: ``line-cft`` :: $ curl -v -H 'Authorization: Basic YWRtaW5AbG9jdXMxLmNvbTpwYXNzd29yZA==' -H 'Content-Type:application/json' --data-binary @post-payload.json -X POST 'http://localhost/api/relation/LineRelation/ ?hierarchy=55b9dc81a6165413b9d16ab6 &policy_name=LineMenuFDPSite &template_name=line-cft &nowait=true &format=json' + About to connect() to localhost port 80 (#0) + Trying 127.0.0.1... connected > POST /api/relation/LineRelation/ ?hierarchy=55b9dc81a6165413b9d16ab6 &policy_name=LineMenuFDPSite &template_name=line-cft &nowait=true &format=json HTTP/1.1 > Authorization: Basic YWRtaW5AbG9jdXMxLmNvbTpwYXNzd29yZA== > User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3 > Host: localhost > Accept: */* > Content-Type:application/json > Content-Length: 1941 > Expect: 100-continue > < HTTP/1.1 100 Continue < HTTP/1.1 202 ACCEPTED < Server: nginx/1.1.19 < Date: Thu, 30 Jul 2015 13:10:46 GMT < Content-Type: application/json < Transfer-Encoding: chunked < Connection: keep-alive < Vary: Accept, Cookie, Accept-Language, X-CSRFToken < Content-Language: en-us < Allow: GET, POST, DELETE, HEAD, OPTIONS < X-CSRFToken: d2q7nV4aWDWFpuazsnRvJVMcj9qX5Ksg < Set-Cookie: csrftoken=d2q7nV4aWDWFpuazsnRvJVMcj9qX5Ksg; SameSite=Lax; httponly; Path=/ < Set-Cookie: sessionid=hahbo0wy7sa8u8rfaiz2tcqxvkvwshp8; SameSite=Lax; httponly; Path=/ < + Connection #0 to host localhost left intact + Closing connection #0 {"href": "/api/tool/Transaction/aff36c0b-ff6a-431b-be58-d2f636edb7cd/", "success": true, "transaction_id": "aff36c0b-ff6a-431b-be58-d2f636edb7cd"} Snippet of the file: ``post-payload.json``: :: { "data": { "partyEntranceTone": "Default", "cfaCssPolicy": "Use System Default", "autoAnswer": "Auto Answer Off", "callForwardNotRegisteredInt": { "callingSearchSpaceName": "Intl24HrsEnh-locus1" }, "routePartitionName": "Site-locus1", "callForwardOnFailure": { "callingSearchSpaceName": "Intl24HrsEnh-locus1" }, "shareLineAppearanceCssName": "Intl24HrsEnh-locus1", "callForwardBusy": { "callingSearchSpaceName": "Intl24HrsEnh-locus1" }, "pattern": "90217", "patternPrecedence": "Default", "callForwardNoAnswer": { "callingSearchSpaceName": "Intl24HrsEnh-locus1" }, "callForwardNoCoverage": { "callingSearchSpaceName": "Intl24HrsEnh-locus1" }, "callForwardNotRegistered": { "callingSearchSpaceName": "Intl24HrsEnh-locus1" }, "usage": "Device", "alertingName": "techsupport", "enterpriseAltNum": { "isUrgent": false, "addLocalRoutePartition": false, "advertiseGloballyIls": true