---
title: Current Target Value Settings
slug: dev/current-target-value-settings
docTags: 
createdAt: 2024-07-26T09:33:12.650Z
---

:::ApiMethodV2
```json
{
  "name": "Get Current Target Settings",
  "method": "GET",
  "url": "https://cloud.clemap.com:3032/edgeDevices/{edge_device_id}/evses/{uuid}/currentSettings",
  "description": "This method allows to retrieve the currently valid current settings with a timestamp until which the settings are valid. If there are no currently valid settings, the response values are null.",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "C2HmNgNlZROC-kbbZtHC6",
        "language": "curl",
        "code": "curl --location --globoff '/edgeDevices/{edge_device_id}/evses/{uuid}/currentSettings' \\\n--header 'evsetoken: string'",
        "customLabel": ""
      },
      {
        "id": "UJuz7j4qfTT2wpqBWNQvQ",
        "language": "nodejs",
        "code": "var request = require('request');\nvar options = {\n   'method': 'GET',\n   'url': '/edgeDevices/{edge_device_id}/evses/{uuid}/currentSettings',\n   'headers': {\n      'evsetoken': 'string'\n   }\n};\nrequest(options, function (error, response) {\n   if (error) throw new Error(error);\n   console.log(response.body);\n});\n",
        "customLabel": ""
      },
      {
        "id": "QLhUZU4oWnQ0rR7ZQs118",
        "language": "javascript",
        "code": "var myHeaders = new Headers();\nmyHeaders.append(\"evsetoken\", \"string\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"/edgeDevices/{edge_device_id}/evses/{uuid}/currentSettings\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));",
        "customLabel": ""
      },
      {
        "id": "iLGxtj7KgawkHzL_EHGRi",
        "language": "python",
        "code": "import requests\n\nurl = \"/edgeDevices/{edge_device_id}/evses/{uuid}/currentSettings\"\n\npayload = {}\nheaders = {\n   'evsetoken': 'string'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n",
        "customLabel": ""
      },
      {
        "id": "EcrNqc6ZL6At0t3f-Tzqg",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"/edgeDevices/{edge_device_id}/evses/{uuid}/currentSettings\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Get.new(url)\nrequest[\"evsetoken\"] = \"string\"\n\nresponse = http.request(request)\nputs response.read_body\n",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "C2HmNgNlZROC-kbbZtHC6"
  },
  "results": {
    "languages": [
      {
        "id": "Nd4NttKjFHtHJTSI-2WGc",
        "language": "200",
        "customLabel": "",
        "code": "{\n  \"current\": 10 | null,\n  \"valid_until\": \"2024-05-30T09:14:47.244362+00:00\" | null\n}"
      }
    ],
    "selectedLanguageId": "Nd4NttKjFHtHJTSI-2WGc"
  },
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "name": "evsetoken",
        "kind": "required",
        "type": "string",
        "description": "EVSE authentication token for the specific charging station.",
        "children": []
      }
    ],
    "bodyDataParameters": [],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Header Parameter",
    "value": "headerParameters"
  },
  "autoGeneratedAnchorSlug": "get-current-target-settings",
  "legacyHash": "yLNhxE9n7cf_FTux_N6W4"
}
```
:::

:::ApiMethodV2
```json
{
  "name": "Set Current Target Value",
  "method": "POST",
  "url": "https://cloud.clemap.com:3032/edgeDevices/{edge_device_id}/evses/{uuid}/currentSettings",
  "description": "Allows to set a current target value of a charging station for a certain duration (in seconds). This target value is applied on all phases of the charger. The response of this request states whether the requested target value was received or rejected (e.g. due to the CLEMAP device being disconnected). The target value may not be reached due to external factors, e.g. if the current limit is reached, external signals from the supply company, or other systems controlling the charging station.",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "hK7x-DT4jHe_955AUnAvq",
        "language": "curl",
        "code": "curl --location --globoff '/edgeDevices/{edge_device_id}/evses/{uuid}/currentSettings' \\\n--header 'evsetoken: string' \\\n--data '{\"current\":\"Integer\",\"duration\":\"Integer\"}'",
        "customLabel": ""
      },
      {
        "id": "3zTKlBQMF3V4YEpXz1UrE",
        "language": "nodejs",
        "code": "var request = require('request');\nvar options = {\n   'method': 'POST',\n   'url': '/edgeDevices/{edge_device_id}/evses/{uuid}/currentSettings',\n   'headers': {\n      'evsetoken': 'string'\n   },\n   body: '{\"current\":\"Integer\",\"duration\":\"Integer\"}'\n\n};\nrequest(options, function (error, response) {\n   if (error) throw new Error(error);\n   console.log(response.body);\n});\n",
        "customLabel": ""
      },
      {
        "id": "nc2lqo-7NuDbFrZRb00Ep",
        "language": "javascript",
        "code": "var myHeaders = new Headers();\nmyHeaders.append(\"evsetoken\", \"string\");\n\nvar raw = \"{\\\"current\\\":\\\"Integer\\\",\\\"duration\\\":\\\"Integer\\\"}\";\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"/edgeDevices/{edge_device_id}/evses/{uuid}/currentSettings\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));",
        "customLabel": ""
      },
      {
        "id": "RaTcPWZ8O4OXMKvEQKVNK",
        "language": "python",
        "code": "import requests\n\nurl = \"/edgeDevices/{edge_device_id}/evses/{uuid}/currentSettings\"\n\npayload = \"{\\\"current\\\":\\\"Integer\\\",\\\"duration\\\":\\\"Integer\\\"}\"\nheaders = {\n   'evsetoken': 'string'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n",
        "customLabel": ""
      },
      {
        "id": "OeeJxZE0NaHTWZXPtixN0",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"/edgeDevices/{edge_device_id}/evses/{uuid}/currentSettings\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Post.new(url)\nrequest[\"evsetoken\"] = \"string\"\nrequest.body = \"{\\\"current\\\":\\\"Integer\\\",\\\"duration\\\":\\\"Integer\\\"}\"\n\nresponse = http.request(request)\nputs response.read_body\n",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "hK7x-DT4jHe_955AUnAvq"
  },
  "results": {
    "languages": [
      {
        "id": "dEZ6_ipaI8Apy9ztlHPZi",
        "language": "201",
        "customLabel": "",
        "code": "{\n  \"state\": \"received\",\n  \"current\": 10,\n  \"duration\": 3600\n}"
      }
    ],
    "selectedLanguageId": "dEZ6_ipaI8Apy9ztlHPZi"
  },
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "name": "evsetoken",
        "kind": "required",
        "type": "string",
        "description": "EVSE authentication token for the specific charging station.",
        "children": []
      }
    ],
    "bodyDataParameters": [
      {
        "name": "current",
        "kind": "required",
        "type": "Integer",
        "description": "Current target in ampere."
      },
      {
        "name": "duration",
        "kind": "required",
        "type": "Integer",
        "description": "Duration in seconds",
        "children": []
      }
    ],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "autoGeneratedAnchorSlug": "set-current-target-value",
  "legacyHash": "KpXJsUC8eABhTuXBr2C8H"
}
```
:::

:::ApiMethodV2
```json
{
  "name": "Reset Current Target Value",
  "method": "DELETE",
  "url": "https://cloud.clemap.com:3032/edgeDevices/{edge_device_id}/evses/{uuid}/currentSettings",
  "description": "This method allows to reset the current settings value. The previous settings\nare returned.",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "q4ELPNSOACSrqtBVxuZZ7",
        "language": "curl",
        "code": "curl --location --globoff --request DELETE '/edgeDevices/{edge_device_id}/evses/{uuid}/currentSettings' \\\n--header 'evsetoken: string'",
        "customLabel": ""
      },
      {
        "id": "x06owwwGv8DPzbxRwlgSy",
        "language": "nodejs",
        "code": "var request = require('request');\nvar options = {\n   'method': 'DELETE',\n   'url': '/edgeDevices/{edge_device_id}/evses/{uuid}/currentSettings',\n   'headers': {\n      'evsetoken': 'string'\n   }\n};\nrequest(options, function (error, response) {\n   if (error) throw new Error(error);\n   console.log(response.body);\n});\n",
        "customLabel": ""
      },
      {
        "id": "yxDGr8_v5y7KfpCRT_02u",
        "language": "javascript",
        "code": "var myHeaders = new Headers();\nmyHeaders.append(\"evsetoken\", \"string\");\n\nvar requestOptions = {\n   method: 'DELETE',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"/edgeDevices/{edge_device_id}/evses/{uuid}/currentSettings\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));",
        "customLabel": ""
      },
      {
        "id": "6g9wKYEo3_MckxV6dOH_U",
        "language": "python",
        "code": "import requests\n\nurl = \"/edgeDevices/{edge_device_id}/evses/{uuid}/currentSettings\"\n\npayload = {}\nheaders = {\n   'evsetoken': 'string'\n}\n\nresponse = requests.request(\"DELETE\", url, headers=headers, data=payload)\n\nprint(response.text)\n",
        "customLabel": ""
      },
      {
        "id": "xDgbDb6KEK4OInAAzLmUW",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"/edgeDevices/{edge_device_id}/evses/{uuid}/currentSettings\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"evsetoken\"] = \"string\"\n\nresponse = http.request(request)\nputs response.read_body\n",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "q4ELPNSOACSrqtBVxuZZ7"
  },
  "results": {
    "languages": [
      {
        "id": "0OHBB8VD6dlcvCgicfsmQ",
        "language": "200",
        "customLabel": "",
        "code": "{\n  \"current\": 10 | null,\n  \"valid_until\": \"2024-05-30T09:14:47.244362+00:00\" | null\n}"
      }
    ],
    "selectedLanguageId": "0OHBB8VD6dlcvCgicfsmQ"
  },
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "name": "evsetoken",
        "kind": "required",
        "type": "string",
        "description": "EVSE authentication token for the specific charging station.",
        "children": []
      }
    ],
    "bodyDataParameters": [],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Header Parameter",
    "value": "headerParameters"
  },
  "autoGeneratedAnchorSlug": "reset-current-target-value",
  "legacyHash": "feoqi-FiZYGv98U0nQ5XC"
}
```
:::

