{% extends "base.html" %} {% block title %} » DC Contracts » {{dc_contract.name}} » Properties » Edit {% endblock %} {% block nav %} DC Contracts » {{dc_contract.name}} » Properties » Edit {% endblock %} {% block content %}
Update Properties {{ input_textarea('properties', dc_contract.properties, 40, 80, show_pos=True) }}

Example

For the SFTP protocol:

{
  "enabled": true,
  "protocol": "sftp",
  "file_type": ".df2",
  "hostname": "example.com",
  "username": "username",
  "password": "password", /* Remove if using private key */
  "private_key": "private_key", /* Remove if using password */
  "directories": ["downloads1", "downloads2"],
  "mpan_map": {  /* Optional */
    "99 0993 2821 985": {
      "mpan": null,  /* Ignore MPAN */
      "from": 2024-12-04T10:00:00Z,
			"to": 2025-01-12:00:00Z,
    },
    "99 0873 1942 952": {
      "mpan": "99 7821 8541 389",
      "from": 2024-11-16T22:00:00Z,
      "to": 2025-02-18:00:00Z,
    },
  },
}
		

For the HTTPS protocol:

			{% raw %}
{
  "enabled": true,
  "protocol": "https",
  "download_days": 8,
  "parser": "meniscus",
  "url_template": "https://data.example.com/?from={{chunk_start.strftime('%d/%m/%Y')}}&to={{chunk_finish.strftime('%d/%m/%Y')}}",
  "url_values": {
    "99 4298 4729 917": {
      "name1": val1,
      "name2": val2,
    }
  }
  "mpan_map": {  \\ Optional
    "99 0993 2821 985": null,  \\ Ignore MPAN
  },
}

			{% endraw %}
		
{% endblock %}