{"id":6522,"date":"2022-01-10T15:04:13","date_gmt":"2022-01-10T14:04:13","guid":{"rendered":"https:\/\/help.cirrus-shield.com\/?post_type=docs&#038;p=6522"},"modified":"2022-01-11T09:43:01","modified_gmt":"2022-01-11T08:43:01","slug":"important-notess","status":"publish","type":"docs","link":"https:\/\/help.cirrus-shield.com\/en\/docs\/developer-guide\/rest-api\/important-notess\/","title":{"rendered":"Important Notes"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">1. Picklist Fields<\/h4>\n\n\n\n<p>When sending picklist values to the Rest API, the picklist value \u201cName\u201d must be used.<\/p>\n\n\n\n<p>Example: if we have a \u201cCountry\u201d picklist field with the following picklist values: (Label=\u201cLebanon\u201d, Name=\u201dLebanon\u201d), (Label=\u201cFrance\u201d, Name=\u201dFrance\u201d), (Label=\u201cUnited Arab Emirates\u201d, Name=\u201dUnited_Arab_Emirates\u201d), the picklist value to send to the API is \u201cLebanon\u201d, \u201cFrance\u201d or \u201cUnited_Arab_Emirates\u201d.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">2. Multi-Picklist Fields<\/h4>\n\n\n\n<p>When sending multi-picklist values to the Rest API, the multi-picklist value \u201cName\u201d must be used. If we want to send multiple values, the multi-picklist values Name must be separated by a comma.<\/p>\n\n\n\n<p>Example: if we have a \u201cVisited Countries\u201d multi-picklist field with the following values: (Label=\u201cLebanon\u201d, Name=\u201dLebanon\u201d), (Label=\u201cFrance\u201d, Name=\u201dFrance\u201d), (Label=\u201cUnited Arab Emirates\u201d, Name=\u201dUnited_Arab_Emirates\u201d), and we want to set the multi-picklist field value to the values \u201cFrance\u201d and \u201cUnited Arab Emirates\u201d, the field value to send to the API is \u201cFrance,United_Arab_Emirates\u201d.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":944,"menu_order":11,"comment_status":"open","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"doc_tag":[],"class_list":["post-6522","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/6522","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/comments?post=6522"}],"version-history":[{"count":2,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/6522\/revisions"}],"predecessor-version":[{"id":6526,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/6522\/revisions\/6526"}],"up":[{"embeddable":true,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/944"}],"prev":[{"title":"Source code examples","link":"https:\/\/help.cirrus-shield.com\/en\/docs\/developer-guide\/rest-api\/source-code-examples\/","href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/6450"}],"wp:attachment":[{"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/media?parent=6522"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/doc_tag?post=6522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}