---
title: "Upload a new compliance test"
method: POST
path: "/tests"
tags: ["Tests"]
---

# Upload a new compliance test

`POST /tests`

Allows developers and service providers to upload new compliance tests to the platform. Tests can be added via API to ensure they are executed as part of the compliance checks for credentials issuers.

## Request body

- TestSubmission
  - `name` string, required — The name of the test.
  - `description` string — A brief description of the test.
  - `content` string, base64, required — The encoded test script/content.

## Response `201`

Test uploaded successfully.

- SuccessResponse
  - `status` string
  - `code` integer
  - `message` string

## Other responses

- `400` — Invalid test data provided.
- `500` — Internal server error while processing the test upload.

## Changes

- **2024-10-17** `53644f0719aa` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/forkbombeu/apis/credimi-api/changes/tests/post.md)

---

[API](https://skmtc.dev/forkbombeu/apis/credimi-api.md) · [All operations](https://skmtc.dev/forkbombeu/apis/credimi-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/forkbombeu/credimi-api/revisions/53644f0719aa/schema)
