---
title: "Tests Channel version rules"
method: POST
path: "/channels/rule-test/v1"
tags: ["Channels"]
---

# Tests Channel version rules

`POST /channels/rule-test/v1`

## Query parameters

- `deploymentProcessId` string
- `feedId` string
- `feedType` 'None' | 'NuGet' | 'Docker' | 'Maven' | 'OctopusProject' | 'GitHub' | 'Helm' | 'OciRegistry' | 'AwsElasticContainerRegistry' | 'BuiltIn' | 'S3' | 'AzureContainerRegistry' | 'GoogleContainerRegistry' | 'ArtifactoryGeneric' | 'Npm' | 'GcsStorage' | 'PyPi'
- `preReleaseTagPattern` string
- `stepName` string
- `version` string, required
- `versionRange` string
- `versionTagRegex` string

## Response `200`

The result of testing the Channel version rules

- TestChannelVersionRulesResponseV1
  - `Errors` string[], required
  - `SatisfiesPreReleaseTag` boolean, required
  - `SatisfiesVersionRange` boolean, required
  - `SatisfiesVersionTagRegex` boolean, required

## Other responses

- `400` — Bad request. Either the payload was not structurally valid or business rules did not permit the operation.
- `404` — Not found. One or more of the entities involved in the operation was not found.

---

[API](https://skmtc.net/octopus/apis/octopus-server-api.md) · [All operations](https://skmtc.net/octopus/apis/octopus-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/octopus/octopus-server-api/revisions/835047dab520/schema)
