---
title: "Run a job for a specific agency group and rule"
method: POST
path: "/agency-group/{agency_group_id}/run-job"
tags: ["Run Job"]
---

# Run a job for a specific agency group and rule

`POST /agency-group/{agency_group_id}/run-job`

## Request

- Base URL: `http://localhost:3010/v1`
- URL: `http://localhost:3010/v1/agency-group/{agency_group_id}/run-job`
- Auth: HTTP basic

## Headers

- `X-CloudScheduler` string, string
- `X-CloudScheduler-ScheduleTime` string, date-time
- `X-CloudScheduler-Jobname` string, string
- `Authorization` string, string, required
- `Accept` 'application/json', required

## Request body

- object
  - `rule_id` string, required

## Response `202`

The job will be initiated

- string

## Other responses

- `400`: Validation error. Usually caused by a missing or invalid parameter
- `401`: Failed to authenticate the incoming request
- `default`: Server error occurred

---

[API](https://skmtc.dev/staffshift/apis/staffshift-api-gateway.md) - [All operations](https://skmtc.dev/staffshift/apis/staffshift-api-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/staffshift/apis/staffshift-api-gateway/revisions/1f079f6b65f5?raw)
