{"id":5034,"date":"2025-02-03T13:05:02","date_gmt":"2025-02-03T12:05:02","guid":{"rendered":"https:\/\/www.trans.eu\/api\/?p=5034"},"modified":"2025-12-29T10:10:47","modified_gmt":"2025-12-29T09:10:47","slug":"update-vehicle-offer-with-a-given-offer-id","status":"publish","type":"post","link":"https:\/\/www.trans.eu\/api\/vehicles\/manage-offers\/update-vehicle-offer-with-a-given-offer-id\/","title":{"rendered":"Update vehicle offer with a given offer id"},"content":{"rendered":"\n<p>Update vehi\u00adcle offer <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Description<\/h2>\n\n\n\n<p>Edit\u00ading a vehi\u00adcle offer removes the orig\u00adi\u00adnal offer and assigns a new offer id.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Url parameters and connection settings<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>URL:<\/strong>&nbsp;https:\/\/api.platform.trans.eu<\/li>\n\n\n\n<li><strong>End\u00adpoint:<\/strong>&nbsp;\/ext\/vehicles-api\/v1\/vehicles\/{offerId}<\/li>\n\n\n\n<li><strong>Method:<\/strong>&nbsp;PUT<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Headers<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Con\u00adtent-type: application\/json<\/li>\n\n\n\n<li>Accept: application\/json<\/li>\n\n\n\n<li>Autho\u00adriza\u00adtion: Bear\u00ader {access_token}<\/li>\n\n\n\n<li>Api-key: {unique_ap\u00adp_api-key}<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Authorization and access<\/h2>\n\n\n\n<p>Autho\u00adriza\u00adtion process&nbsp;<a href=\"https:\/\/www.trans.eu\/api\/general-information\/authorization-process\/\" target=\"_blank\" rel=\"noopener\" title>is described here<\/a>.&nbsp; Each API request must also con\u00adsist of unique Api-key obtained dur\u00ading appli\u00adca\u00adtion reg\u00adis\u00adtra\u00adtion togeth\u00ader with client_id and client_secret.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Update Vehicle offer request<\/h2>\n\n\n\n<p>Exam\u00adple of request for updat\u00ading vehi\u00adcle offer. For allowed val\u00adues please look&nbsp;<a href=\"https:\/\/www.trans.eu\/api\/general-information\/allowed-values\/\">here<\/a>.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>{\n  \"vehicle_size\": \"bus\",\n  \"truck_body\": \"standard-tent\",\n  \"loading_place\": {\n    \"address\": {\n      \"locality\": \"Wroclaw\",\n      \"postal_code\": \"56-111\",\n      \"country\": \"pl\"\n    }\n  },\n  \"unloading_place\": {\n    \"address\": {\n      \"locality\": \"Wroclaw\",\n      \"postal_code\": \"56-111\",\n      \"country\": \"pl\"\n    }\n  },\n  \"cargo\": {\n    \"capacity\": 5\n  },\n  \"available_on\": {\n    \"begin\": \"2021-03-09T15:25:00+0000\",\n    \"end\": \"2021-03-09T19:25:00+0000\"\n  }\n}<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Response<\/h2>\n\n\n\n<p>Con\u00adfir\u00adma\u00adtion of prop\u00ader\u00adly updat\u00ading offer<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>{\n  \"id\": \"01E4WTST4JK6HT6SZD8PDY7BDS\"\n}<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p class=\"dont-break-out\">Update vehi\u00adcle offer Descrip\u00adtion Edit\u00ading a vehi\u00adcle offer removes the orig\u00adi\u00adnal offer and assigns a new offer id. Url para\u00adme\u00adters \u2026<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"wp_typography_post_enhancements_disabled":false,"footnotes":""},"categories":[114],"tags":[],"class_list":["post-5034","post","type-post","status-publish","format-standard","hentry","category-manage-offers"],"acf":[],"aioseo_notices":[],"lang":"en","translations":{"en":5034},"pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/5034","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/comments?post=5034"}],"version-history":[{"count":4,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/5034\/revisions"}],"predecessor-version":[{"id":5457,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/posts\/5034\/revisions\/5457"}],"wp:attachment":[{"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/media?parent=5034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/categories?post=5034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trans.eu\/api\/wp-json\/wp\/v2\/tags?post=5034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}