# jetformbuilder/3.6.6/modules/active-campaign/api/update-list-status.php

JetFormBuilder — Dynamic Blocks Form Builder, version 3.6.6. 48 lines.

- Page: https://pluginprobe.com/plugins/jetformbuilder/3.6.6/code/modules/active-campaign/api/update-list-status.php
- Raw: https://pluginprobe.com/plugins/jetformbuilder/3.6.6/raw/modules/active-campaign/api/update-list-status.php
- Modified: 2023-11-20T11:46:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/jetformbuilder/3.6.6/code/modules/active-campaign/api/update-list-status.php#L10-L20`.

```php
<?php


namespace JFB_Modules\Active_Campaign\Api;

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
	die;
}

class Update_List_Status extends Base_Action {

	protected $list;
	protected $contact;

	public function action_endpoint() {
		return 'contactLists';
	}

	public function action_headers() {
		return array(
			'Content-Type' => 'application/json',
		);
	}

	public function action_body() {
		return array(
			'contactList' => array(
				'contact' => $this->contact,
				'list'    => $this->list,
				'status'  => 1,
			),
		);
	}

	public function set_contact( int $contact ): self {
		$this->contact = $contact;

		return $this;
	}

	public function set_list( int $list_items ): self {
		$this->list = $list_items;

		return $this;
	}
}

```
