GET
/
assignment
/
query
/
{company_slug}
curl --request GET \
  --url https://api.hierarch.io/v1/assignment/query/{company_slug}/ \
  --header 'token: <api-key>'
{
  "loop": [
    {
      "assignment": {
        "id": 123,
        "title": "<string>",
        "description": "<string>",
        "status": "<string>",
        "remarks": "<string>",
        "product": {
          "id": 123,
          "name": "<string>"
        },
        "pipeline": {
          "id": 123,
          "name": "<string>"
        }
      },
      "handbooks": [
        {
          "id": 123,
          "title": "<string>",
          "slug": "<string>"
        }
      ],
      "clients": [
        {
          "id": 123,
          "first_name": "<string>",
          "last_name": "<string>",
          "profile_photo": "<string>"
        }
      ],
      "personnel": [
        {
          "id": 123,
          "first_name": "<string>",
          "last_name": "<string>",
          "role_name": "<string>"
        }
      ]
    }
  ],
  "current_page": "<string>",
  "max_page": "<string>",
  "start_count": "<string>",
  "end_count": "<string>",
  "max_count": "<string>"
}

Authorizations

token
string
header
required

API token provided to your company

Headers

query
string

Search term, blank by default

page
string

Page number, 1 by default

order
string

Data order - newest / oldest

Path Parameters

company_slug
string
required

This is your company url

Response

200
application/json
OK Response
loop
object[]
current_page
string

Current data page

max_page
string

Maximum number of pages

start_count
string

Starting data count

end_count
string

Ending data count

max_count
string

Maximum number of data