# Resubmit POST /v1/me/organization-requests/{request_id}/resubmit Resubmit Authentication: bearer access token with audience `taifa-management`. Endpoint roles and eligibility are reviewed separately from the OpenAPI bearer scheme. No operation-specific scopes are declared in the OpenAPI document. Bearer authentication and endpoint authorization requirements still apply. ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `request_id` | path | string | Yes | | | `idempotency-key` | header | string | Yes | | ## Request body ### application/json Required; identity__organization_requests__Resubmit | Field | Variant | Type | Required | Description | | --- | --- | --- | --- | --- | | `name` | | string | Yes | Validation: min length 2; max length 200 | | `organization_type` | | string | Yes | Validation: min length 2; max length 100 | | `website` | | string | Yes | Validation: min length 8; max length 2048 | | `domains` | | string[] | Yes | Validation: min items 1; max items 10 | | `purpose` | | string | Yes | Validation: min length 12; max length 4000 | | `contacts` | | Contact[] | Yes | Validation: min items 1; max items 10 | | `reason` | | string | Yes | Validation: min length 8; max length 500 | | `expected_version` | | integer | Yes | Validation: minimum 1 | ## Responses ### 200 Successful Response No fields declared in the current specification. ### 422 Validation Error | Field | Variant | Type | Required | Description | | --- | --- | --- | --- | --- | | `detail` | | ValidationError[] | No | | ## Request examples Illustrative only. Replace placeholders and keep management tokens on the server. ### cURL ```sh curl -X POST 'https://YOUR_IDENTITY_HOST/v1/me/organization-requests/REPLACE_WITH_REQUEST_ID/resubmit' \ -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \ -H 'idempotency-key: REPLACE_WITH_IDEMPOTENCY_KEY' \ -H 'Content-Type: application/json' \ --data '{ "name": "REPLACE_WITH_NAME", "organization_type": "REPLACE_WITH_ORGANIZATION_TYPE", "website": "REPLACE_WITH_WEBSITE", "domains": [], "purpose": "REPLACE_WITH_PURPOSE", "contacts": [], "reason": "REPLACE_WITH_REASON", "expected_version": 0 }' ``` ### TypeScript (Node.js/server-side) ```typescript const response = await fetch('https://YOUR_IDENTITY_HOST/v1/me/organization-requests/REPLACE_WITH_REQUEST_ID/resubmit', { method: 'POST', headers: { Authorization: `Bearer ${process.env.TAIFA_MANAGEMENT_TOKEN}`, 'idempotency-key': 'REPLACE_WITH_IDEMPOTENCY_KEY', 'Content-Type': 'application/json' }, body: JSON.stringify({ "name": "REPLACE_WITH_NAME", "organization_type": "REPLACE_WITH_ORGANIZATION_TYPE", "website": "REPLACE_WITH_WEBSITE", "domains": [], "purpose": "REPLACE_WITH_PURPOSE", "contacts": [], "reason": "REPLACE_WITH_REASON", "expected_version": 0 }) }); const result = await response.json(); ``` ### Python ```python import os import json import requests response = requests.request( 'POST', 'https://YOUR_IDENTITY_HOST/v1/me/organization-requests/REPLACE_WITH_REQUEST_ID/resubmit', headers={'Authorization': 'Bearer ' + os.environ['TAIFA_MANAGEMENT_TOKEN'], 'idempotency-key': 'REPLACE_WITH_IDEMPOTENCY_KEY'}, json=json.loads('{"name":"REPLACE_WITH_NAME","organization_type":"REPLACE_WITH_ORGANIZATION_TYPE","website":"REPLACE_WITH_WEBSITE","domains":[],"purpose":"REPLACE_WITH_PURPOSE","contacts":[],"reason":"REPLACE_WITH_REASON","expected_version":0}') ) response.raise_for_status() ``` ## Response example No response example in the current specification.