{"id":988,"date":"2022-02-07T20:31:52","date_gmt":"2022-02-07T20:31:52","guid":{"rendered":"https:\/\/logicbuilder.integroscrm.com\/help\/?page_id=988"},"modified":"2022-08-10T16:22:57","modified_gmt":"2022-08-10T16:22:57","slug":"get-http-headers-from-structure","status":"publish","type":"page","link":"https:\/\/logicbuilder.integroscrm.com\/help\/get-http-headers-from-structure\/","title":{"rendered":"Get Http Headers From Structure"},"content":{"rendered":"\n<p><a name=\"abstract\"><\/a>Converts Structure to the Headers for request with <a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/rest-client\/\">Rest Client<\/a>. It is the way to set Headers for a request to the REST API. To create Headers:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Define with <a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/structure-schema\/\">Structure Schema<\/a> the list of Headers. Usually,&nbsp;<em>\u201cContent-Type\u201d<\/em>&nbsp;Header is always required.<\/li><li>Create structure with <a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/structure-schema\/\">Structure Schema<\/a> operator and link in input the output from <a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/structure-schema\/\">Structure Schema<\/a>.<\/li><li>Set values for Headers with <a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/set-structure-fields\/\">Set Structure Fields<\/a> specifying in inputs values like <span style=\"color:#ec8f45;\">Constants<\/span>\/<a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/named-constant\/\">Named Constant<\/a> or outputs from <a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/get-entity-attributes\/\">Get Entity Attributes<\/a>.<\/li><\/ol>\n\n\n\n<p><strong>inputs:<\/strong><\/p>\n\n\n\n<p><span style=\"color:#ec8f45;\">structure<\/span> \u2013 link here structure which defines Headers. Commonly put here output from <a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/set-structure-fields\/\">Set Structure Fields<\/a>.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Required: yes<\/li><\/ul>\n\n\n\n<p><strong>outputs:<\/strong><\/p>\n\n\n\n<p><span style=\"color:#ec8f45;\">parameters<\/span>&nbsp;\u2013 the structure converted to request Headers. Link this output to the input port&nbsp;<span style=\"color:#ec8f45;\"><em>headers<\/em><\/span>&nbsp;in&nbsp;<a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/rest-client\/\">Rest Client<\/a><\/p>\n\n\n<p><a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/02\/img-125-40dc8eede9464e73bf14ea2f77a526cc.png\" rel=\"prettyPhoto\"><img decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/02\/img-125-40dc8eede9464e73bf14ea2f77a526cc-1024x205.png\" alt=\"\" class=\"wp-image-378\"><\/a><\/p><div style=\"text-align:left\" class=\"yasr-auto-insert-visitor\"><!--Yasr Visitor Votes Shortcode--><div id='yasr_visitor_votes_988' class='yasr-visitor-votes'><div class=\"yasr-custom-text-vv-before yasr-custom-text-vv-before-988\">Click to rate this post!<\/div><div id='yasr-vv-second-row-container-ed95abd126a00' \n                                        class='yasr-vv-second-row-container'><div id='yasr-visitor-votes-rater-ed95abd126a00'\n                                      class='yasr-rater-stars-vv'\n                                      data-rater-postid='988' \n                                      data-rating='0'\n                                      data-rater-starsize='24'\n                                      data-rater-readonly='false'\n                                      data-rater-nonce='fa81b01ba5' \n                                      data-issingular='false'\n                                    ><\/div><div class=\"yasr-vv-stats-text-container\" id=\"yasr-vv-stats-text-container-ed95abd126a00\"><svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" width=\"20\" height=\"20\" \n                               class=\"yasr-dashicons-visitor-stats\"\n                               data-postid=\"988\" \n                               id=\"yasr-stats-dashicon-ed95abd126a00\">\n                            <path d=\"M18 18v-16h-4v16h4zM12 18v-11h-4v11h4zM6 18v-8h-4v8h4z\"><\/path>\n                          <\/svg><span id=\"yasr-vv-text-container-ed95abd126a00\" class=\"yasr-vv-text-container\">[Total: <span id=\"yasr-vv-votes-number-container-ed95abd126a00\">0<\/span>  Average: <span id=\"yasr-vv-average-container-ed95abd126a00\">0<\/span>]<\/span><\/div><div id='yasr-vv-loader-ed95abd126a00' class='yasr-vv-container-loader'><\/div><\/div><div id='yasr-vv-bottom-container-ed95abd126a00' class='yasr-vv-bottom-container'><\/div><\/div><!--End Yasr Visitor Votes Shortcode--><\/div>","protected":false},"excerpt":{"rendered":"<p>Converts Structure to the Headers for request with Rest Client. It is the way to set Headers for a request to the REST API. To create Headers: Define with Structure Schema the list of Headers. Usually,&nbsp;\u201cContent-Type\u201d&nbsp;Header is always required. Create structure with Structure Schema operator and link in input the output from Structure Schema. Set &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/logicbuilder.integroscrm.com\/help\/get-http-headers-from-structure\/\"> <span class=\"screen-reader-text\">Get Http Headers From Structure<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"yasr_overall_rating":0,"yasr_post_is_review":"","yasr_auto_insert_disabled":"","yasr_review_type":"","footnotes":""},"tags":[],"class_list":["post-988","page","type-page","status-publish","hentry"],"yasr_visitor_votes":{"number_of_votes":0,"sum_votes":0,"stars_attributes":{"read_only":false,"span_bottom":false}},"_links":{"self":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/988","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/comments?post=988"}],"version-history":[{"count":4,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/988\/revisions"}],"predecessor-version":[{"id":2102,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/988\/revisions\/2102"}],"wp:attachment":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/media?parent=988"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/tags?post=988"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}