{"id":1209,"date":"2024-05-08T19:54:45","date_gmt":"2024-05-08T18:54:45","guid":{"rendered":"https:\/\/www.help.headlight.tech\/?post_type=ht_kb&#038;p=1209"},"modified":"2025-11-03T15:41:43","modified_gmt":"2025-11-03T14:41:43","slug":"how-to-toggle-a-car-as-a-pool-car-in-a-workflow","status":"publish","type":"ht_kb","link":"https:\/\/www.help.headlight.tech\/?ht_kb=how-to-toggle-a-car-as-a-pool-car-in-a-workflow","title":{"rendered":"How to Toggle a Car as a Pool Car in a Workflow"},"content":{"rendered":"\n<p>If you need to update the status of a car to designate it as a pool car in the Headlight system, you can achieve this by using the &#8220;Dated Change&#8221; API operation. This function allows you to modify attributes of versioned objects, such as cars, based on specified dates. Here\u2019s a step-by-step guide on how to toggle a car as a pool car:<\/p>\n\n\n\n<ol>\n<li><strong>Access the Dated Change workflow Operation:<\/strong>\n<ul>\n<li>Select the Headlight operation: Dated Change.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Fill in the Required Fields:<\/strong>\n<ul>\n<li><strong>Object Type:<\/strong> Enter &#8220;CAR&#8221; to specify that the object you are updating is a car.<\/li>\n\n\n\n<li><strong>Object Identifier:<\/strong> Provide the unique identifier of the vehicle, <code>car.car_id<\/code>, which uniquely identifies the car in the system.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Set the Attribute to be Updated:<\/strong>\n<ul>\n<li><strong>Attribute:<\/strong> Type <code>is_pool_car<\/code> to indicate that you are updating the pool car status of the vehicle.<\/li>\n\n\n\n<li><strong>Value:<\/strong> Enter <code>TRUE<\/code> to toggle the status to a pool car. If you need to switch it off, you would use <code>FALSE<\/code>.<\/li>\n\n\n\n<li><strong>Type:<\/strong> Choose <code>boolean<\/code> as the type of the attribute, since <code>is_pool_car<\/code> is a true\/false value.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Specify the Date (Optional):<\/strong>\n<ul>\n<li><strong>Date:<\/strong> If you want the change to take effect on a specific date, enter it here. If no date is provided, the change will occur on the date the workflow is executed.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"618\" height=\"1024\" src=\"https:\/\/www.help.headlight.tech\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-08-at-20.49.43-618x1024.png\" alt=\"\" class=\"wp-image-1210\" srcset=\"https:\/\/www.help.headlight.tech\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-08-at-20.49.43-618x1024.png 618w, https:\/\/www.help.headlight.tech\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-08-at-20.49.43-181x300.png 181w, https:\/\/www.help.headlight.tech\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-08-at-20.49.43-768x1272.png 768w, https:\/\/www.help.headlight.tech\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-08-at-20.49.43-30x50.png 30w, https:\/\/www.help.headlight.tech\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-08-at-20.49.43-36x60.png 36w, https:\/\/www.help.headlight.tech\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-08-at-20.49.43-60x100.png 60w, https:\/\/www.help.headlight.tech\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-08-at-20.49.43.png 802w\" sizes=\"(max-width: 618px) 100vw, 618px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>If you need to update the status of a car to designate it as a pool car in the Headlight system, you can achieve this by using the &#8220;Dated Change&#8221; API operation. This function allows you to modify attributes of versioned objects, such as cars, based on specified dates. Here\u2019s&#8230;<\/p>\n","protected":false},"author":2,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":[],"ht-kb-category":[103,94],"ht-kb-tag":[],"_links":{"self":[{"href":"https:\/\/www.help.headlight.tech\/index.php?rest_route=\/wp\/v2\/ht-kb\/1209"}],"collection":[{"href":"https:\/\/www.help.headlight.tech\/index.php?rest_route=\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.help.headlight.tech\/index.php?rest_route=\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.help.headlight.tech\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.help.headlight.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1209"}],"version-history":[{"count":1,"href":"https:\/\/www.help.headlight.tech\/index.php?rest_route=\/wp\/v2\/ht-kb\/1209\/revisions"}],"predecessor-version":[{"id":1214,"href":"https:\/\/www.help.headlight.tech\/index.php?rest_route=\/wp\/v2\/ht-kb\/1209\/revisions\/1214"}],"wp:attachment":[{"href":"https:\/\/www.help.headlight.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1209"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.help.headlight.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-category&post=1209"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.help.headlight.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-tag&post=1209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}