Skip to main content

Create API Resource

Endpoint: POST /api/v1/resource Purpose: Allows clients to create a new resource in the Enigma AI platform. Request Body (JSON):
{
  "name": "string",
  "type": "string",
  "config": {
    "key": "value"
  }
}
Response:
  • 201 Created – Resource successfully created.
  • Body:
{
  "id": "uuid",
  "name": "string",
  "type": "string",
  "createdAt": "ISO8601 timestamp"
}
Error Cases:
  • 400 Bad Request – Validation failed.
  • 401 Unauthorized – Missing or invalid API key.
  • 409 Conflict – Resource with the same name already exists.
Authentication: Uses API key passed in the Authorization: Bearer <token> header. Permissions: Requires resource:create scope.