Skip to main content
POST
/
trackers
Add a new tracker
curl --request POST \
  --url https://api.rechain.co/public/v1/trackers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Tracker Name",
  "description": "This tracker monitors the development progress.",
  "status": "active",
  "filters": {
    "brands": [],
    "labels": [
      {
        "id": "5d613b4c-7778-4feb-adf1-dd16e0c77ead",
        "name": "Agent 1",
        "label_group_id": "fe106f71-8746-4ab6-bf7e-dbaae98bba8f",
        "label_group_name": "Agents"
      }
    ],
    "suppliers": [],
    "product_categories": [
      {
        "en": "Shorts",
        "id": "2d55fe77-abfc-4a25-871c-7cdff943fd3c",
        "company_id": "0f63f61c-93ce-4f7d-8324-94eeb5926a21"
      }
    ]
  },
  "userId": "123e4567-e89b-12d3-a456-426614174000",
  "companyId": "123e4567-e89b-12d3-a456-426614174000",
  "required": "<any>"
}
'
{
  "name": "Tracker Name",
  "description": "This tracker monitors the development progress.",
  "status": "active",
  "filters": {
    "brands": [],
    "labels": [
      {
        "id": "5d613b4c-7778-4feb-adf1-dd16e0c77ead",
        "name": "Agent 1",
        "label_group_id": "fe106f71-8746-4ab6-bf7e-dbaae98bba8f",
        "label_group_name": "Agents"
      }
    ],
    "suppliers": [],
    "product_categories": [
      {
        "en": "Shorts",
        "id": "2d55fe77-abfc-4a25-871c-7cdff943fd3c",
        "company_id": "0f63f61c-93ce-4f7d-8324-94eeb5926a21"
      }
    ]
  },
  "userId": "123e4567-e89b-12d3-a456-426614174000",
  "companyId": "123e4567-e89b-12d3-a456-426614174000",
  "required": "<any>",
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "createdAt": "2024-09-04T10:15:30Z",
  "updatedAt": "2024-09-04T11:30:45Z",
  "trackerPhotos": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174001",
      "fileUrl": "https://example.com/photo.jpg"
    }
  ],
  "trackerProducts": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174002",
      "productId": "123e4567-e89b-12d3-a456-426614174003",
      "developmentTrackerId": "123e4567-e89b-12d3-a456-426614174000"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Create a new tracker

name
string
Example:

"Tracker Name"

description
string
Example:

"This tracker monitors the development progress."

status
string
Example:

"active"

filters
object
Example:
{
"brands": [],
"labels": [
{
"id": "5d613b4c-7778-4feb-adf1-dd16e0c77ead",
"name": "Agent 1",
"label_group_id": "fe106f71-8746-4ab6-bf7e-dbaae98bba8f",
"label_group_name": "Agents"
}
],
"suppliers": [],
"product_categories": [
{
"en": "Shorts",
"id": "2d55fe77-abfc-4a25-871c-7cdff943fd3c",
"company_id": "0f63f61c-93ce-4f7d-8324-94eeb5926a21"
}
]
}
userId
string<uuid>
Example:

"123e4567-e89b-12d3-a456-426614174000"

companyId
string<uuid>
Example:

"123e4567-e89b-12d3-a456-426614174000"

required
any

Response

Successful operation

id
string<uuid>
Example:

"123e4567-e89b-12d3-a456-426614174000"

createdAt
string<date-time>
Example:

"2024-09-04T10:15:30Z"

updatedAt
string<date-time>
Example:

"2024-09-04T11:30:45Z"

trackerPhotos
object[]
trackerProducts
object[]