POST /nodes/fieldName

Request

{
	"name": "userPhoneNumber", //required
  "personalData": false, //required
  "localSave": true, //required 
	"settings": { 
		"type": "bool", //optional
		"parsingType": "variable", //optional
		"maxLength": 24 //optional
	}
}

Response

{
  "status": 1,
  "message": "",
  "response": {
    "fieldName": {
      "id": 12,
      "name": "userPhoneNumber",
      "personalData": false,
      "localSave": true,
      "settings": {
        "type": "bool",
        "parsingType": "variable",
        "maxLength": 24
      }
    }
  }
}

PATCH /nodes/fieldName

Request

{
	"id": 12  //required
	"name": "userPhoneNumber", //optional
  "personalData": false, //optional
  "localSave": true, //optional 
	"settings": { 
		"type": "bool", //optional
		"parsingType": "variable", //optional
		"maxLength": 24 //optional
	}
}

Response

{
  "status": 1,
  "message": "",
  "response": {
    "fieldName": {
      "id": 12,
      "name": "userPhoneNumber",
      "personalData": false,
      "localSave": true,
      "settings": {
        "type": "bool",
        "parsingType": "variable",
        "maxLength": 24
      }
    }
  }
}

GET /nodes/fieldName?q=string&offset=0

Request

q - регистронезависимая подстрока fieldName

Response

{
  "status": 1,
  "message": "",
  "response": {
     "fieldNames": [
      {
        "id": 12,
        "name": "userPhoneNumber",
        "personalData": false,
        "localSave": true,
        "settings": {
          "type": "bool",
          "parsingType": "variable",
          "maxLength": 24
        }
      },
      {
        "id": 13,
        "name": "userPanId",
        "personalData": true,
        "localSave": false,
        "settings": {
          "type": "bool",
          "parsingType": "variable"
        }
      }
    ],
    "offset": 0,
    "total": 2
  }
}

GET /nodes/fieldName/{field_id}

Request

Response

{
  "status": 1,
  "message": "",
  "response": {
    "fieldName": {
      "id": 12,
      "name": "userPhoneNumber",
      "personalData": false,
      "localSave": true,
      "settings": {
        "type": "bool",
        "parsingType": "variable",
        "maxLength": 24
      }
    }
  }
}

DELETE /nodes/fieldName/{field_id}

Request

Response

{
  "status": 1,
  "message": "",
  "response": {}
}