{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/wellapp-ai/json-schema/wellapp-ai-post-v1-medias-request-schema.json",
  "title": "PostV1MediasRequest",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/wellapp-ai-openapi-generated.yml#/components/schemas/PostV1MediasRequest",
  "type": "object",
  "properties": {
    "file": {
      "type": "string",
      "description": "Image in png, jpg or svg format"
    },
    "data.type": {
      "type": "string",
      "description": "Resource type identifier"
    },
    "data.attributes.media_type": {
      "type": "string",
      "description": "Type of media (avatar, logo, banner)"
    },
    "data.attributes.is_primary": {
      "type": "boolean",
      "description": "Marks preferred media. Default: true"
    },
    "data.relationships.people.data[].type": {
      "type": "string",
      "description": "Type for people relationship"
    },
    "data.relationships.people.data[].id": {
      "type": "string",
      "description": "UUID of the person to associate with this media"
    },
    "data.relationships.companies.data[].type": {
      "type": "string",
      "description": "Type for company relationship"
    },
    "data.relationships.companies.data[].id": {
      "type": "string",
      "description": "UUID of the company to associate with this media"
    },
    "data.relationships.workspaces.data[].type": {
      "type": "string",
      "description": "Type for workspace relationship"
    },
    "data.relationships.workspaces.data[].id": {
      "type": "string",
      "description": "UUID of the workspace to associate with this media"
    },
    "data.relationships.workspaces.data[].external_workspace_id": {
      "type": "string",
      "description": "UUID of the external workspace to associate with this media"
    }
  },
  "required": [
    "file",
    "data.type"
  ]
}