# Create or update a resource with optional image upload Create or update a resource. For updates, include the resource ID. Endpoint: POST /api/catalog/resources/ Version: 3.59.0-ai-plus Security: PlatformApiKeyAuthentication ## Query parameters: - `id` (integer) Resource ID - `item_id` (string) Item ID associated with the resource - `key` (string) Platform key - `name` (string) Resource name - `org` (string) Platform organization - `platform_key` (string) Platform key (alternative to key) - `platform_org` (string) Platform organization (alternative to org) - `resource_type` (string) Type of resource - `user_id` (integer) User ID who owns the resource - `username` (string) Username who owns the resource ## Request fields (multipart/form-data): - `id` (integer) Resource ID for updates - `user_id` (integer) User ID of the resource owner - `username` (string) Username of the resource owner - `resource_type` (string, required) Type of resource (e.g., video, document) - `url` (string, required) URL of the resource - `name` (string, required) Name of the resource - `description` (string) Description of the resource - `skills` (array) List of skill names associated with the resource - `image` (string) Image file - `data` (any) Additional metadata for the resource ## Response 200 fields (application/json): - `item_id` (string) - `id` (integer, required) - `name` (string,null, required) The display name of the resource. - `url` (string,null, required) Resource URL. - `resource_type` (string,null, required) Resource type. - `data` (any,null, required) Metadata - `image` (string,null) - `description` (string,null)