---
title: "Resubmit a rejected compliance application"
method: PATCH
path: "/compliance/applications/{id}"
tags: ["Compliance"]
---

# Resubmit a rejected compliance application

`PATCH /compliance/applications/{id}`

Resubmit a previously rejected compliance application with corrected documents.
Only applications in `rejected` status can be resubmitted. All documents must be
re-uploaded — partial updates are not supported.

File/document count must match exactly. Mismatch returns 400 with message `"Expected X files, got Y"`.

## Path parameters

- `id` string, required

## Response `200`

Application resubmitted successfully

- object
  - `status` boolean
  - `data` ComplianceApplication — A compliance application for a specific country, number type, and user type
    - `_id` string — Unique identifier
    - `organizationId` string — The organization this application belongs to
    - `plivoComplianceId` string — Plivo's compliance application identifier
    - `alias` string — Auto-generated alias (orgId-countryIso-env)
    - `status` 'draft' | 'submitted' | 'accepted' | 'rejected' | 'suspended' | 'expired' — Current status of the compliance application
    - `countryIso` string — ISO 3166-1 alpha-2 country code
    - `numberType` 'local' | 'mobile' | 'tollfree'
    - `userType` 'individual' | 'business'
    - `endUserName` string — Legal business or individual name
    - `endUserLastName` string, nullable
    - `endUserEmail` string, nullable
    - `endUserCountry` string, nullable
    - `documentFileNames` string[] — Names of uploaded document files
    - `rejectionReason` string, nullable — Reason for rejection, if applicable
    - `createdBy` string — User ID of the person who created this application
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `400` — Application is not in rejected status, file count mismatch, or other validation error
- `401` — Unauthorized access
- `404` — Application not found or does not belong to this organization
- `500` — Internal server error
- `502` — Bad gateway — Plivo's compliance API returned an error or is unavailable

---

[API](https://skmtc.net/smallest-inc/apis/agent-management-api.md) · [All operations](https://skmtc.net/smallest-inc/apis/agent-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smallest-inc/agent-management-api/revisions/c2d0eb64b01a/schema)
