Profile Block

Profile Block

Used by the Table Lookup node to select a source and profile block, and subsequent tags.

GET /api/profile_block

This API returns a list of all the profile blocks the current user has access to.

Response Content

The response will be a JSON array of objects, with each object consisting of the following information:

Key Type Description
id Integer The ID of the profile block.
name String The name of the profile block.
profile_tags JSON A list of the profile tags belonging to this profile block.

The profile_tags field consists of an array of JSON objects with the following information:

Key Type Description
id Integer The ID of the profile tag.
profile_block Integer The ID of the parent profile_block.
profile_tag_name String The name of the profile_tag.
profile_tag Integer The profile tag number.

Examples

curl 'http://localhost/jarvis-agent/n2fe/api/profile_block'  -H 'Cookie: N2FE_CGISESSID=4876c530f3d7252330a95ea51007f252'
[
   {
      "id" : "18",
      "profile_tags" : [],
      "name" : "Any Profile"
   },
   {
      "name" : "App Specific 1",
      "id" : "8",
      "profile_tags" : [
         {
            "id" : "157",
            "profile_tag_name" : "2nd Data",
            "profile_block" : "8",
            "profile_tag" : "121341"
         },
         {
            "id" : "354",
            "profile_block" : "8",
            "profile_tag_name" : "Acct Daily",
            "profile_tag" : "11325978"
         },
         ...
       ]
    }
    ...
]

GET /api/profile_block/:block_id

This API point gets a specific profile block.

Parameter Example Description
block_id 8 [URL parameter], [Required] The section of help we are obtaining information from.

Response Content

The response will be a JSON array of objects, with each object consisting of the following information:

Key Type Description
id Integer The ID of the profile block.
name String The name of the profile block.
profile_tags JSON A list of the profile tags belonging to this profile block.

The profile_tags consists of an array of JSON objects with the following information:

Key Type Description
id Integer The ID of the profile tag.
profile_block Integer The ID of the parent profile_block.
profile_tag_name String The name of the profile_tag.
profile_tag Integer The profile tag number.

Examples

curl 'http://localhost/jarvis-agent/n2fe/api/profile_block/8'  -H 'Cookie: N2FE_CGISESSID=4876c530f3d7252330a95ea51007f252'
{
  "id" : "8",
  "name" : "App Specific 1"
  "profile_tags" : [
   {
        "profile_block" : "8",
        "profile_tag" : "1234764",
        "id" : "848",
        "profile_tag_name" : "Wallet Type"
     },
     {
        "profile_tag_name" : "2nd Data",
        "id" : "153",
        "profile_block" : "8",
        "profile_tag" : "12625464"
     },
     {
        "profile_block" : "8",
        "profile_tag" : "1312750",
        "profile_tag_name" : "New Data",
        "id" : "858"
     }
     ...
  ]
}

GET /api/profile_block/:block_id/tag/:tag_id

This API point gets a specific tag from a specified profile block.

Parameter Example Description
block_id 8 [URL parameter], [Required] The ID of the profile block.
tag_id 12625464 [URL parameter], [Required] The ID of the profile tag.

Response Content

The response will be a JSON object, with each object consisting of the following information:

Key Type Description
id Integer The ID of the profile tag.
profile_block Integer The ID of the parent profile_block.
profile_tag_name String The name of the profile_tag.
profile_tag Integer The profile tag number.

Examples

curl 'http://localhost/jarvis-agent/n2fe/api/profile_block/8/tag/12625464'  -H 'Cookie: N2FE_CGISESSID=4876c530f3d7252330a95ea51007f252'
 {
    "profile_tag_name" : "2nd Data",
    "id" : "153",
    "profile_block" : "8",
    "profile_tag" : "12625464"
 }