Overview
Identify the target by exactly one of targetUserId or targetUsername. An optional invoker identifies the in-game administrator; the API key is captured separately on the audit entry.
- Permission scope
warnings.write- Community feature
warnings- Content type
application/json
Authentication
Send Authorization: Bearer YOUR_API_KEY and X-Clan-Id: COMMUNITY_ID. The community API switch and key must be enabled. The key must have the scope shown above. See authentication and key storage.
No path or query parameters.
Request body
A JSON request body is required.
Exactly one of these field sets is required: targetUserId or targetUsername.
| Field | Type | Required | Constraints and description |
|---|---|---|---|
targetUserId | integer | Conditional | min 1, max 9007199254740991 |
targetUsername | string | Conditional | min length 3, max length 20 |
severity | Low | Medium | High | Yes | — |
description | string | Yes | min length 1, max length 1024 |
invokerUserId | integer | No | min 1, max 9007199254740991 |
invokerUsername | string | No | min length 3, max length 20 |
Error responses
| Status | When it is returned |
|---|---|
| 400 | The request was malformed or failed validation. |
| 401 | The API key is missing, malformed, or not recognised for this community. |
| 403 | The key is disabled, lacks the required permission, or the community's subscription or tier does not cover API access or this feature. |
| 404 | The requested resource does not exist. |
| 409 | The request conflicts with current state. |
| 429 | Rate limited. |
| 500 | Unexpected server error. |
Rate limits
This operation shares the key’s request budget. On 429, read error.code and follow Retry-After when present. Upstream Roblox limits may omit budget details. Check current state and this endpoint's recovery guidance before retrying a write. See rate limits and recovery.