# Rules

Automation rules - apply actions to shipments matching a filter.

## List automation rules

 - [GET /rules](https://docs.stallion.ca/openapi/rules/paths/~1rules/get.md): Accepted by tokens carrying either automation:read or automation:write.

## Create an automation rule

 - [POST /rules](https://docs.stallion.ca/openapi/rules/paths/~1rules/post.md)

## Get an automation rule

 - [GET /rules/{rule_id}](https://docs.stallion.ca/openapi/rules/paths/~1rules~1%7Brule_id%7D/get.md): Accepted by tokens carrying either automation:read or automation:write.

## Replace an automation rule

 - [PUT /rules/{rule_id}](https://docs.stallion.ca/openapi/rules/paths/~1rules~1%7Brule_id%7D/put.md)

## Delete an automation rule

 - [DELETE /rules/{rule_id}](https://docs.stallion.ca/openapi/rules/paths/~1rules~1%7Brule_id%7D/delete.md)

