1"use strict";(self.webpackChunkmy_website=self.webpackChunkmy_website||[]).push([["8165"],{5873(n,e,t){t.r(e),t.d(e,{Highlight:()=>c,metadata:()=>i,default:()=>p,frontMatter:()=>r,contentTitle:()=>l,toc:()=>a,assets:()=>d});var i=JSON.parse('{"id":"contacts/organizations/org_fields_options/post_org_fields_opt","title":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C/\u043E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0432 \u043F\u043E\u043B\u0435 \u043A\u043E\u043C\u043F\u0430\u043D\u0438\u0439","description":"\u0414\u0430\u043D\u043D\u044B\u0439 \u043C\u0435\u0442\u043E\u0434 \u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D \u0442\u043E\u043B\u044C\u043A\u043E \u0434\u043B\u044F \u043F\u043E\u043B\u0435\u0439 \u0441 \u0442\u0438\u043F\u0430\u043C\u0438: \u0412\u044B\u043F\u0430\u0434\u0430\u044E\u0449\u0438\u0439 \u0441\u043F\u0438\u0441\u043E\u043A (select), \u0421\u0432\u044F\u0437\u0430\u043D\u043D\u044B\u0435 \u043F\u043E\u043B\u044F (hierarchy), \u041C\u0443\u043B\u044C\u0442\u0438\u043A\u043D\u043E\u043F\u043A\u0430 (multi_button)","source":"@site/docs/contacts/organizations/org_fields_options/post_org_fields_opt.md","sourceDirName":"contacts/organizations/org_fields_options","slug":"/api/post_org_field_options","permalink":"/docs/api/post_org_field_options","draft":false,"unlisted":false,"tags":[],"version":"current","sidebarPosition":2,"frontMatter":{"sidebar_position":2,"title":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C/\u043E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0432 \u043F\u043E\u043B\u0435 \u043A\u043E\u043C\u043F\u0430\u043D\u0438\u0439","pagination_next":null,"pagination_prev":null,"slug":"/api/post_org_field_options"},"sidebar":"tutorialSidebar"}'),s=t(4848),o=t(8453);let r={sidebar_position:2,title:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C/\u043E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0432 \u043F\u043E\u043B\u0435 \u043A\u043E\u043C\u043F\u0430\u043D\u0438\u0439",pagination_next:null,pagination_prev:null,slug:"/api/post_org_field_options"},l="\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C/\u043E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0432 \u043F\u043E\u043B\u0435 \u043A\u043E\u043C\u043F\u0430\u043D\u0438\u0439",d={},c=({children:n,color:e})=>(0,s.jsx)("span",{style:{backgroundColor:e,borderRadius:"2px",color:"#fff",padding:"0.2rem"},children:n}),a=[{value:"<Highlight>POST</Highlight> /organizations/custom_fields//options/",id:"post-organizationscustom_fieldsoptions",level:2},{value:"URL",id:"url",level:3},{value:"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B",id:"\u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B",level:3},{value:"PATH-\u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B",id:"path-\u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B",level:4},{value:"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u0442\u0435\u043B\u0430 \u0437\u0430\u043F\u0440\u043E\u0441\u0430 (JSON)",id:"\u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B-\u0442\u0435\u043B\u0430-\u0437\u0430\u043F\u0440\u043E\u0441\u0430-json",level:4},{value:"\u041F\u0440\u0438\u043C\u0435\u0440\u044B \u0442\u0435\u043B\u0430 \u0437\u0430\u043F\u0440\u043E\u0441\u0430 (JSON):",id:"\u043F\u0440\u0438\u043C\u0435\u0440\u044B-\u0442\u0435\u043B\u0430-\u0437\u0430\u043F\u0440\u043E\u0441\u0430-json",level:4},{value:"\u041E\u0442\u0432\u0435\u0442\u044B",id:"\u043E\u0442\u0432\u0435\u0442\u044B",level:3},{value:"\u041F\u0440\u0438\u043C\u0435\u0440\u044B \u043E\u0442\u0432\u0435\u0442\u0430:",id:"\u043F\u0440\u0438\u043C\u0435\u0440\u044B-\u043E\u0442\u0432\u0435\u0442\u0430",level:4}];function h(n){let e={admonition:"admonition",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",hr:"hr",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,o.R)(),...n.components},{Details:t}=e;return t||function(n,e){throw Error("Expected "+(e?"component":"object")+" `"+n+"` to be defined: you likely forgot to import, pass, or provide it.")}("Details",!0),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(e.header,{children:(0,s.jsx)(e.h1,{id:"\u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C\u043E\u0431\u043D\u043E\u0432\u0438\u0442\u044C-\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F-\u0432-\u043F\u043E\u043B\u0435-\u043A\u043E\u043C\u043F\u0430\u043D\u0438\u0439",children:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C/\u043E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0432 \u043F\u043E\u043B\u0435 \u043A\u043E\u043C\u043F\u0430\u043D\u0438\u0439"})}),"\n",(0,s.jsx)(e.admonition,{type:"info",children:(0,s.jsx)(e.p,{children:"\u0414\u0430\u043D\u043D\u044B\u0439 \u043C\u0435\u0442\u043E\u0434 \u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D \u0442\u043E\u043B\u044C\u043A\u043E \u0434\u043B\u044F \u043F\u043E\u043B\u0435\u0439 \u0441 \u0442\u0438\u043F\u0430\u043C\u0438: \u0412\u044B\u043F\u0430\u0434\u0430\u044E\u0449\u0438\u0439 \u0441\u043F\u0438\u0441\u043E\u043A (select), \u0421\u0432\u044F\u0437\u0430\u043D\u043D\u044B\u0435 \u043F\u043E\u043B\u044F (hierarchy), \u041C\u0443\u043B\u044C\u0442\u0438\u043A\u043D\u043E\u043F\u043A\u0430 (multi_button)"})}),"\n",(0,s.jsxs)(e.h2,{id:"post-organizationscustom_fieldsoptions",children:[(0,s.jsx)(c,{color:"#c79712",children:"POST"})," /organizations/custom_fields/",":field_id","/options/"]}),"\n",(0,s.jsx)(e.hr,{}),"\n",(0,s.jsx)(e.h3,{id:"url",children:"URL"}),"\n",(0,s.jsxs)(e.p,{children:[(0,s.jsx)(e.em,{children:"https://\u0434\u043E\u043C\u0435\u043D_\u0441\u0438\u0441\u0442\u0435\u043C\u044B/api/v2"}),(0,s.jsx)(e.code,{children:"/organizations/custom_fields/123/options/"})]}),"\n",(0,s.jsx)(e.hr,{}),"\n",(0,s.jsx)(e.h3,{id:"\u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B",children:"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B"}),"\n",(0,s.jsx)(e.h4,{id:"path-\u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B",children:"PATH-\u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B"}),"\n",(0,s.jsxs)(e.table,{children:[(0,s.jsx)(e.thead,{children:(0,s.jsxs)(e.tr,{children:[(0,s.jsx)(e.th,{style:{textAlign:"center"},children:"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440"}),(0,s.jsx)(e.th,{style:{textAlign:"center"},children:"\u0422\u0438\u043F"}),(0,s.jsx)(e.th,{style:{textAlign:"center"},children:"\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0439"}),(0,s.jsx)(e.th,{children:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435"})]})}),(0,s.jsx)(e.tbody,{children:(0,s.jsxs)(e.tr,{children:[(0,s.jsx)(e.td,{style:{textAlign:"center"},children:(0,s.jsx)(e.code,{children:"field_id"})}),(0,s.jsx)(e.td,{style:{textAlign:"center"},children:"\u0447\u0438\u0441\u043B\u043E"}),(0,s.jsx)(e.td,{style:{textAlign:"center"},children:(0,s.jsx)(e.strong,{children:"\u0414\u0430"})}),(0,s.jsx)(e.td,{children:"ID \u043A\u0430\u0441\u0442\u043E\u043C\u043D\u043E\u0433\u043E \u043F\u043E\u043B\u044F"})]})})]}),"\n",(0,s.jsx)(e.h4,{id:"\u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B-\u0442\u0435\u043B\u0430-\u0437\u0430\u043F\u0440\u043E\u0441\u0430-json",children:"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u0442\u0435\u043B\u0430 \u0437\u0430\u043F\u0440\u043E\u0441\u0430 (JSON)"}),"\n",(0,s.jsxs)(e.table,{children:[(0,s.jsx)(e.thead,{children:(0,s.jsxs)(e.tr,{children:[(0,s.jsx)(e.th,{style:{textAlign:"center"},children:"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440"}),(0,s.jsx)(e.th,{style:{textAlign:"center"},children:"\u0422\u0438\u043F"}),(0,s.jsx)(e.th,{style:{textAlign:"center"},children:"\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0439"}),(0,s.jsx)(e.th,{children:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435"})]})}),(0,s.jsx)(e.tbody,{children:(0,s.jsxs)(e.tr,{children:[(0,s.jsx)(e.td,{style:{textAlign:"center"},children:(0,s.jsx)(e.code,{children:"options"})}),(0,s.jsx)(e.td,{style:{textAlign:"center"},children:"\u043C\u0430\u0441\u0441\u0438\u0432"}),(0,s.jsx)(e.td,{style:{textAlign:"center"},children:(0,s.jsx)(e.strong,{children:"\u0414\u0430"})}),(0,s.jsx)(e.td,{children:"\u041C\u0430\u0441\u0441\u0438\u0432 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0439"})]})})]}),"\n",(0,s.jsx)(e.hr,{}),"\n",(0,s.jsx)(e.h4,{id:"\u043F\u0440\u0438\u043C\u0435\u0440\u044B-\u0442\u0435\u043B\u0430-\u0437\u0430\u043F\u0440\u043E\u0441\u0430-json",children:"\u041F\u0440\u0438\u043C\u0435\u0440\u044B \u0442\u0435\u043B\u0430 \u0437\u0430\u043F\u0440\u043E\u0441\u0430 (JSON):"}),"\n",(0,s.jsx)(e.pre,{children:(0,s.jsx)(e.code,{className:"language-json",children:'{\n "options": [ //\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043D\u043E\u0432\u043E\u0433\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F\n {\n "name": {\n "ru": "\u041D\u043E\u0432\u0430\u044F \u043E\u043F\u0446\u0438\u044F",\n "en": "New option"\n }\n }\n ]\n}\n\n{\n "options": [ //\u041E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044
1E\u0449\u0435\u0433\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F\n {\n "id": 11016, //ID \u043E\u0431\u043D\u043E\u0432\u043B\u044F\u0435\u043C\u043E\u0433\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F,\n "name": {\n "ru": "\u041E\u0431\u043D\u043E\u0432\u043B\u0451\u043D\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435",\n "en": "Updated option"\n }\n }\n ]\n}\n\n{\n "options": [ //\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043D\u043E\u0432\u043E\u0433\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0434\u043B\u044F \u0441\u0432\u044F\u0437\u0430\u043D\u043D\u044B\u0445 \u043F\u043E\u043B\u0435\u0439 \u043D\u0430 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u044B\u0439 \u0443\u0440\u043E\u0432\u0435\u043D\u044C\n {\n "pid": 4588, //ID \u0440\u043E\u0434\u0438\u0442\u0435\u043B\u044C\u0441\u043A\u043E\u0433\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F\n "name": {\n "ru": "\u041D\u043E\u0432\u0430\u044F \u043E\u043F\u0446\u0438\u044F",\n "en": "New option"\n }\n }\n ]\n}\n'})}),"\n",(0,s.jsx)(e.hr,{}),"\n",(0,s.jsx)(e.h3,{id:"\u043E\u0442\u0432\u0435\u0442\u044B",children:"\u041E\u0442\u0432\u0435\u0442\u044B"}),"\n",(0,s.jsx)(e.h4,{id:"\u043F\u0440\u0438\u043C\u0435\u0440\u044B-\u043E\u0442\u0432\u0435\u0442\u0430",children:"\u041F\u0440\u0438\u043C\u0435\u0440\u044B \u043E\u0442\u0432\u0435\u0442\u0430:"}),"\n",(0,s.jsxs)(t,{children:[(0,s.jsx)("summary",{children:"\u041F\u0440\u0438\u043C\u0435\u0440 \u043E\u0442\u0432\u0435\u0442\u0430"}),(0,s.jsx)(e.pre,{children:(0,s.jsx)(e.code,{className:"language-json",children:'{\n "data": [ //\u041E\u0442\u0432\u0435\u0442 \u043D\u0430 \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043D\u043E\u0432\u043E\u0433\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F\n {\n "id": 11016,\n "name": {\n "ru": "\u041D\u043E\u0432\u0430\u044F \u043E\u043F\u0446\u0438\u044F",\n "en": "New option"\n }\n }\n ]\n}\n\n{\n "data": [ //\u041E\u0442\u0432\u0435\u0442 \u043D\u0430 \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044E\u0449\u0435\u0433\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F\n {\n "id": 11016,\n "name": {\n "ru": "\u041E\u0431\u043D\u043E\u0432\u043B\u0451\u043D\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435",\n "en": "Updated option"\n }\n }\n ]\n}\n\n{\n "data": [ //\u041E\u0442\u0432\u0435\u0442 \u043D\u0430 \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043D\u043E\u0432\u043E\u0433\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0434\u043B\u044F \u0441\u0432\u044F\u0437\u0430\u043D\u043D\u044B\u0445 \u043F\u043E\u043B\u0435\u0439 \u043D\u0430 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u044B\u0439 \u0443\u0440\u043E\u0432\u0435\u043D\u044C\n {\n "id": 11016,\n "name": {\n "ru": "\u041D\u043E\u0432\u0430\u044F \u043E\u043F\u0446\u0438\u044F",\n "en": "New option"\n }\n }\n ]\n}\n'})})]}),"\n",(0,s.jsxs)(t,{children:[(0,s.jsx)("summary",{children:"\u041F\u0440\u0438\u043C\u0435\u0440\u044B \u043E\u0448\u0438\u0431\u043E\u043A"}),(0,s.jsx)(e.pre,{children:(0,s.jsx)(e.code,{className:"language-json",children:'{\n "errors": [\n {\n "code": "e-401",\n "title": "Authorization error",\n "details": "Username or api key is incorrect"\n }\n ]\n}\n\n{\n "errors": [\n {\n "code": "e-404",\n "title": "Not found",\n "details": "Custom field with id {99999999} does not exist"\n }\n ]\n}\n'})})]})]})}function p(n={}){let{wrapper:e}={...(0,o.R)(),...n.components};return e?(0,s.jsx)(e,{...n,children:(0,s.jsx)(h,{...n})}):h(n)}},8453(n,e,t){t.d(e,{R:()=>r,x:()=>l});var i=t(6540);let s={},o=i.createContext(s);function r(n){let e=i.useContext(o);return i.useMemo(function(){return"function"==typeof n?n(e):{...e,...n}},[e,n])}function l(n){let e;return e=n.disableParentContext?"function"==typeof n.components?n.components(s):n.components||s:r(n.components),i.createElement(o.Provider,{value:e},n.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.