Tracked Groups

Get All Tracked Groups

GET SERVER_URL/v1/api-key/tracked-groups?filter[mac_address][]={filter[mac_address][]}&filter[id][]={filter[id][]}&page[limit]={page[limit]}

Request returns all tracked groups (objects/beacons). You can also sort objects by title and id, using parameters below.

Parameters

Header

Parameter Value
Api-key Application key, you can get it from JTW-token

Query

Parameter Value
sort Sort by keys, ex. -id, -title
{filter[id][]} Filtering data by ID
{filter[title][]} Filtering data by title
{like[title][]} Searching by name
{page[limit]} Number of requested objects
{page[offset]} Offset on query parameters

JSON Response Example

Code - 200

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
{
  "data": [
    {
      "type": "string",
      "id": 0,
      "attributes": {
        "title": "string",
        "created_at": 0,
        "updated_at": 0,
        "deleted_at": 0
      }
    }
  ]
}

Post All Tracked Groups

POST SERVER_URL/v1/api-key/tracked-groups

Request create tracked groups.

Parameters

Header

Parameter Value
Api-key Application key, you can get it from JTW-token

Query

Body Data, which should send on web server to create tracked groups

JSON Body Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
{
  "data": {
    "type": "string",
    "id": 0,
    "attributes": {
      "title": "string",
      "created_at": 0,
      "updated_at": 0,
      "deleted_at": 0
    }
  }
}

JSON Response Example

Code 201

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
{
  "data": {
    "type": "string",
    "id": 0,
    "attributes": {
      "title": "string",
      "created_at": 0,
      "updated_at": 0,
      "deleted_at": 0
    }
  }
}

Get Tracked Groups by ID

GET SERVER_URL/v1/tracked-groups/{id}

Request returns tracked beacon by ID.

Parameters

Header

Parameter Value
Api-key Application key, you can get it from JTW-token

Path

id Tracked group ID

JSON Response Example

Code 200

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
{
  "data": {
    "type": "string",
    "id": 0,
    "attributes": {
      "title": "string",
      "created_at": 0,
      "updated_at": 0,
      "deleted_at": 0
    }
  }
}

Patch Tracked Beacon by ID

PATCH SERVER_URL/v1/tracked-groups/{id}

Request enables change tracked group by ID.

Parameters

Header

Parameter Value
Api-key Application key, you can get it from JTW-token

Path

id Tracked group ID

JSON Body Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
{
  "data": {
    "type": "string",
    "id": 0,
    "attributes": {
      "title": "string",
      "created_at": 0,
      "updated_at": 0,
      "deleted_at": 0
    }
  }
}

JSON Response Example

Code 200

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
{
  "data": {
    "type": "string",
    "id": 0,
    "attributes": {
      "title": "string",
      "created_at": 0,
      "updated_at": 0,
      "deleted_at": 0
    }
  }
}

Delete Tracked Group by ID

DELETE SERVER_URL/v1/tracked-groups/{id}

Request enables delete tracked groups by ID.

Parameters

Header

Parameter Value
Api-key Application key, you can get it from JTW-token

Path

id Tracked group ID

JSON Response Example

Code 204

1
Group successfully delete.

Restore Tracked Groups by ID

POST SERVER_URL/v1/tracked-groups/{id}/restore

Request enables restore tracked groups by ID.

Parameters

Header

Parameter Value
Api-key Application key, you can get it from JTW-token

Path

id Tracked groups ID

JSON Response Example

Code 200

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
{
  "data": {
    "type": "string",
    "id": 0,
    "attributes": {
      "title": "string",
      "created_at": 0,
      "updated_at": 0,
      "deleted_at": 0
    }
  }
}