{"id":949,"date":"2024-01-28T13:49:05","date_gmt":"2024-01-28T13:49:05","guid":{"rendered":"https:\/\/olxdoc.wpenginepowered.com\/?p=949"},"modified":"2024-01-29T11:44:38","modified_gmt":"2024-01-29T11:44:38","slug":"post-message","status":"publish","type":"post","link":"https:\/\/doc.olxgroup.com\/api\/?p=949","title":{"rendered":"Post Message"},"content":{"rendered":"\r\n<h2>Post Message<\/h2>\r\n<p>Posts new message in a given thread. Field &#8216;phone&#8217; is optional and depends on the category &#8211; used in Jobs categories right now.<\/p>\r\n<h5>AUTHORIZATIONS:&gt; <i>access_token<\/i><\/h5>\r\n<h5>PATH\u00a0PARAMETERS<\/h5>\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td title=\"threadId\">threadId required<\/td>\r\n<td>integer<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<h5>REQUEST BODY SCHEMA:\u00a0application\/json<\/h5>\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td title=\"text\">text required<\/td>\r\n<td>string\r\n<p>Text of the message<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td title=\"attachments\"><button aria-label=\"expand attachments\">attachments<\/button><\/td>\r\n<td>Array of\u00a0objects<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<h3>Responses<\/h3>\r\n<p><strong>200<\/strong><\/p>\r\n<p>Status 200<\/p>\r\n<p>OLX Production Server<\/p>\r\n<p>https:\/\/www.olx.ro\/api\/partner\/threads\/{threadId}\/messages <code>POST\r\n\/threads\/{threadId}\/messages\r\nRequest samples\r\nPayload\r\nContent type\r\napplication\/json\r\n{\r\n\"text\": \"string\",\r\n\"attachments\": [\r\n{}\r\n]\r\n}\t\t\t<\/code> <button>Copy<\/button> POST \/threads\/{threadId}\/messages Request samples Payload Content type application\/json { &#8220;text&#8221;: &#8220;string&#8221;, &#8220;attachments&#8221;: [ {} ] } Copied to clipboard<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Post Message Posts new message in a given thread. Field &#8216;phone&#8217; is optional and depends on the category &#8211; used in Jobs categories right now. AUTHORIZATIONS:&gt; access_token PATH\u00a0PARAMETERS threadId required integer REQUEST BODY SCHEMA:\u00a0application\/json text required string Text of the message attachments Array of\u00a0objects Responses 200 Status 200 OLX Production Server https:\/\/www.olx.ro\/api\/partner\/threads\/{threadId}\/messages POST \/threads\/{threadId}\/messages Request&#8230;  <a href=\"https:\/\/doc.olxgroup.com\/api\/?p=949\" title=\"Read Post Message\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[96],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/949"}],"collection":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=949"}],"version-history":[{"count":0,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/949\/revisions"}],"wp:attachment":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=949"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=949"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=949"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}