---
title: "Get active assignment"
method: GET
path: "/v1/resources/{resourceId}/active-assignment"
tags: ["Schedule"]
---

# Get active assignment

`GET /v1/resources/{resourceId}/active-assignment`

## Request

- Base URL: `https://api.workwing.io`
- URL: `https://api.workwing.io/v1/resources/{resourceId}/active-assignment`
- Auth: HTTP bearer

Get the current active assignment (EN_ROUTE or ON_SITE) for a resource. If it has more than one, the most recently updated is returned.

## Path parameters

- `resourceId` string, uuid, required

## Response `200`

Default Response

- object
  - `data` object, nullable, required: Null when the resource is not en route to or on site at a job
    - `id` string, uuid, required
    - `job_id` string, uuid, required
    - `resource_id` string, uuid, required
    - `status` 'T_EN_ROUTE' | 'T_ON_SITE', required
    - `assigned_at` string, date-time, nullable, required
    - `acknowledged_at` string, date-time, nullable, required
    - `arrived_at` string, date-time, nullable, required
    - `job_number` string, nullable, required
    - `job_status` string, required
    - `customer_name` string, nullable, required
    - `scheduled_start` string, date-time, nullable, required
    - `scheduled_end` string, date-time, nullable, required
  - `meta` object, required
    - `request_id` string, required
    - `timestamp` string, date-time, required

---

[API](https://skmtc.dev/workwing/apis/workwing-api.md) · [All operations](https://skmtc.dev/workwing/apis/workwing-api/llms.txt) · [OpenAPI document](https://skmtc.dev/workwing/apis/workwing-api/revisions/54bb14368a35?raw)
