{"openapi":"3.0.0","info":{"title":"Afineo Webservices API — import","description":"Module `import` of the Afineo API v3 (4 endpoints).\n\nImport asset data into the platform. Supports auto-mapped imports and JSON/JSONL formats, in both repository and project contexts. Data can be sent inline via the data parameter or as a file upload.\n\nFull specification: https://api.afineo.io/openapi.json","version":"3.0.0","contact":{"name":"Afineo Solutions","url":"https://www.afineo.com"},"x-logo":{"url":"./logo.png","altText":"Afineo - Powerful Data, Powerful People"}},"servers":[{"url":"https://{instance}.afineo.io","description":"Afineo instance","variables":{"instance":{"description":"Your Afineo instance name","default":"client"}}}],"tags":[{"name":"import","description":"Import asset data into the platform. Supports auto-mapped imports and JSON/JSONL formats, in both repository and project contexts. Data can be sent inline via the data parameter or as a file upload."}],"paths":{"/api/v3/import/auto/node/":{"post":{"tags":["import"],"summary":"auto/node — Auto-mapped import in node (project context)","description":"## Purpose\n\nImports data from CSV or Excel files into a specific node/project context using automatic attribute mapping based on column headers.\n\n## Content-Type\n\nThis endpoint requires `multipart/form-data` content type.\n\n## Supported File Formats\n\nFile type is automatically detected from file extension:\n- **CSV**: Text-based comma/semicolon separated values\n- **XLSX**: Excel 2007+ format (Office Open XML)\n\n## Example with curl\n\n```bash\ncurl -X POST \"https://your-domain/api/v3/import/auto/node/\" \\\n  -H \"Authorization: Bearer YOUR_TOKEN\" \\\n  -F \"class_id=4\" \\\n  -F \"parent_id=12345\" \\\n  -F \"file=@/path/to/data.csv\" \\\n  -F \"separator=;\" \\\n  -F \"mode=create_in_context\"\n```\n\n## Auto-Mapping Rules\n\nThe system automatically maps columns to attributes using these rules:\n1. **By uname**: Column header matches attribute uname exactly\n2. **By label**: Column header matches attribute label exactly\n\n## Header Conventions\n\n| Suffix | Meaning | Example |\n|--------|---------|---------|\n| `*` | Key column (used to identify existing assets) | `reference*` |\n| `!` | Associated data (linked entity) | `category!` |\n| `[suffix]` | Cross-reference data | `price[EUR]` |\n\n## Update Modes (Node/Project)\n\n- `create_in_context`: Create assets in the specified node context (default)\n- `update_in_context`: Update existing assets in the context\n- `classify_only`: Only classify assets (no data modification)\n\n## Errors\n\n- `2` : `Class ID \"…\" is invalid`\n- `2` : `Invalid data_start_row. Must be >= 1`\n- `2` : `Invalid file format. Supported formats: …`\n- `2` : `Invalid header_row. Must be >= 1`\n- `2` : `No file uploaded. Use multipart/form-data with a \"file\" field.`\n- `2` : and 3 other validation message(s) of the same family\n- `3` : `Failed to access local file`\n- `3` : `Failed to access uploaded file`\n- `3` : `Failed to copy local file`\n- `3` : `Failed to move uploaded file`\n- `3` : `Failed to read file with mapping`\n- `3` : `Import error: Data structure issue during update phase. Please check your key columns and data.`\n- `3` : and 2 other validation message(s) of the same family\n- `997` : `You don't have the rights to access this class (…)`\n- `997` : `You don't have the rights to do this action`\n","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Import response","content":{"application/json":{"schema":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/SuccessEnvelope"},{"type":"object","properties":{"result":{"$ref":"#/components/schemas/ImportAutoResult"}}}]},{"$ref":"#/components/schemas/ErrorResponse"}]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"class_id":{"type":"integer","description":"Library identifier (e.g., 4=Products). Use POST /api/v3/administration/classes/list to retrieve available libraries.","example":4},"parent_id":{"type":"integer","description":"Parent node ID in project. Use POST /api/v3/get-asset/by-search/node to find project nodes.","example":12345},"file":{"type":"string","format":"binary","description":"The file to import. Must be sent as multipart/form-data with a filename including a valid extension (e.g. products.csv). Supported formats: CSV, XLSX. Sending the file as raw binary without a filename will result in an error.","example":"products.csv"},"mode":{"type":"string","description":"Import mode: \"create_in_context\" (create nodes in project), \"update_in_context\" (update existing nodes), \"classify_only\" (classify without modification).","enum":["create_in_context","update_in_context","classify_only"],"example":"create_in_context"},"separator":{"type":"string","description":"CSV column separator (default: \";\"). Only used for CSV files","example":";"},"header_row":{"type":"integer","description":"Row number containing column headers (default: 1)","example":1},"data_start_row":{"type":"integer","description":"Row number where data starts (default: 2)","example":2},"type_id":{"type":"integer","description":"Asset type ID for created assets. Use POST /api/v3/types/list with class_id to get available types.","example":257},"version_id":{"type":"integer","description":"Version ID for multilingual imports. Use POST /api/v3/administration/versions/list with class_id to get available versions.","example":1}},"required":["class_id","parent_id","mode"]}}}}}},"/api/v3/import/auto/repository/":{"post":{"tags":["import"],"summary":"auto/repository — Auto-mapped import in repository","description":"## Purpose\n\nImports data from CSV or Excel files into the repository using automatic attribute mapping based on column headers.\n\n## Content-Type\n\nThis endpoint requires `multipart/form-data` content type.\n\n## Supported File Formats\n\nFile type is automatically detected from file extension:\n- **CSV**: Text-based comma/semicolon separated values\n- **XLSX**: Excel 2007+ format (Office Open XML)\n\n## Example with curl\n\n```bash\ncurl -X POST \"https://your-domain/api/v3/import/auto/repository/\" \\\n  -H \"Authorization: Bearer YOUR_TOKEN\" \\\n  -F \"class_id=4\" \\\n  -F \"file=@/path/to/data.csv\" \\\n  -F \"separator=;\" \\\n  -F \"mode=create_or_update\"\n```\n\n## Auto-Mapping Rules\n\nThe system automatically maps columns to attributes using these rules:\n1. **By uname**: Column header matches attribute uname exactly\n2. **By label**: Column header matches attribute label exactly\n\n## Header Conventions\n\n| Suffix | Meaning | Example |\n|--------|---------|---------|\n| `*` | Key column (used to identify existing assets) | `reference*` |\n| `!` | Associated data (linked entity) | `category!` |\n| `[suffix]` | Cross-reference data | `price[EUR]` |\n\n## Update Modes (Repository)\n\n- `create_only`: Only create new assets, skip existing ones\n- `update_only`: Only update existing assets, skip new ones\n- `create_or_update`: Create new assets or update existing ones (default)\n\n## Errors\n\n- `2` : `Class ID \"…\" is invalid`\n- `2` : `Invalid data_start_row. Must be >= 1`\n- `2` : `Invalid file format. Supported formats: …`\n- `2` : `Invalid header_row. Must be >= 1`\n- `2` : `No file uploaded. Use multipart/form-data with a \"file\" field.`\n- `2` : `Parent asset (…) does not exist or has been deleted`\n- `2` : and 3 other validation message(s) of the same family\n- `3` : `Failed to access local file`\n- `3` : `Failed to access uploaded file`\n- `3` : `Failed to copy local file`\n- `3` : `Failed to move uploaded file`\n- `3` : `Failed to read file with mapping`\n- `3` : `Import error: Data structure issue during update phase. Please check your key columns and data.`\n- `3` : and 2 other validation message(s) of the same family\n- `997` : `You don't have the rights to access this class (…)`\n- `997` : `You don't have the rights to do this action`\n","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Import response","content":{"application/json":{"schema":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/SuccessEnvelope"},{"type":"object","properties":{"result":{"$ref":"#/components/schemas/ImportAutoResult"}}}]},{"$ref":"#/components/schemas/ErrorResponse"}]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"class_id":{"type":"integer","description":"Library identifier (e.g., 4=Products). Use POST /api/v3/administration/classes/list to retrieve available libraries.","example":4},"parent_id":{"type":"integer","description":"Parent asset ID in repository. Use POST /api/v3/get-asset/by-search/repository to find assets. Set to 0 for repository root.","example":0},"file":{"type":"string","format":"binary","description":"The file to import. Must be sent as multipart/form-data with a filename including a valid extension (e.g. products.csv). Supported formats: CSV, XLSX. Sending the file as raw binary without a filename will result in an error.","example":"products.csv"},"mode":{"type":"string","description":"Import mode: \"create_only\" (new assets only), \"update_only\" (existing assets only), \"create_or_update\" (both).","enum":["create_only","update_only","create_or_update"],"example":"create_or_update"},"separator":{"type":"string","description":"CSV column separator (default: \";\"). Only used for CSV files","example":";"},"header_row":{"type":"integer","description":"Row number containing column headers (default: 1)","example":1},"data_start_row":{"type":"integer","description":"Row number where data starts (default: 2)","example":2},"type_id":{"type":"integer","description":"Asset type ID for created assets. Use POST /api/v3/types/list with class_id to get available types.","example":257},"version_id":{"type":"integer","description":"Version ID for multilingual imports. Use POST /api/v3/administration/versions/list with class_id to get available versions.","example":1}},"required":["class_id","mode"]}}}}}},"/api/v3/import/json/node/":{"post":{"tags":["import"],"summary":"json/node — Import JSON/JSONL data in node (project context)","description":"## Purpose\n\nImports data from JSON or JSONL format into a specific node/project context. Supports two input modes:\n1. **Inline data**: Pass JSON data directly via the `data` parameter\n2. **File upload**: Upload a JSON/JSONL file via multipart/form-data\n\n## Content-Type\n\n- For inline data: `application/json`\n- For file upload: `multipart/form-data`\n\n## JSON Schema\n\n### Line Structure (JSONL format)\n\nEach line represents one asset to import:\n\n```jsonl\n{\"key\": {...}, \"type_id\": 257, \"fields\": [...]}\n```\n\n### Asset Identification (`key`)\n\n```jsonl\n// By direct asset_id\n{\"key\": {\"id\": 5845}, \"fields\": [...]}\n\n// By key attribute (code/uname)\n{\"key\": {\"attr\": \"reference\", \"value\": \"ABC123\"}, \"fields\": [...]}\n\n// By key attribute (numeric id)\n{\"key\": {\"attr\": 231, \"value\": \"ABC123\"}, \"fields\": [...]}\n```\n\n### Attribute Resolution (`id` and `attr`)\n\nThe `attr` parameter resolves attributes in this order:\n1. **Numeric ID**: Direct attribute ID (e.g., `231`)\n2. **Uname**: Attribute uname/code (e.g., `\"designationlibelle\"`)\n3. **Label**: Attribute label (e.g., `\"Designation\"`)\n\nUse POST /api/v3/attributes/list to retrieve attribute IDs and unames.\n\n### Attribute Fields (`fields`)\n\n```jsonl\n// Simple attribute by ID\n{\"id\": 231, \"value\": \"Product A\"}\n\n// With language version\n{\"id\": 658, \"value\": \"Red leather\", \"version\": 1}\n\n// By attribute code/uname instead of ID\n{\"attr\": \"designationlabel\", \"value\": \"Text\", \"version\": 2}\n\n// Multiple values (sync required)\n{\"id\": 724, \"value\": [\"Red\", \"Black\"], \"sync\": true}\n\n// Associated data with search key\n{\"id\": 800, \"value\": [\"SKU1\", \"SKU2\"], \"keyassoc\": 231, \"sync\": true}\n```\n\n### Field Parameters\n\n| Parameter | Required | Description |\n|-----------|----------|-------------|\n| `id` or `attr` | Yes | Attribute numeric ID, code/uname, or label |\n| `value` | Yes | Value (string, number, or array for multiples) |\n| `version` | No | Language version ID (default version if absent) |\n| `sync` | **Required if array** | `true` = replace all, `false` = append |\n| `keyassoc` | No | Key attribute ID for associated data |\n\n## Important Notes\n\n- **`type_id` is required when creating assets** (modes `create_in_context`). Without it, rows will fail with an error. It can be set globally via the `type_id` parameter or per line via the `type_id` field in each JSON object.\n\n## Examples with curl\n\n### Mode 1: Inline JSON (data parameter)\n\n```bash\ncurl -X POST \"https://your-domain/api/v3/import/json/node/\" \\\n  -H \"Authorization: Bearer YOUR_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"class_id\": 4,\n    \"parent_id\": 12345,\n    \"mode\": \"create_in_context\",\n    \"type_id\": 257,\n    \"data\": [\n      {\"key\": {\"attr\": \"reference\", \"value\": \"ABC\"}, \"fields\": [{\"id\": 231, \"value\": \"Product A\"}]},\n      {\"key\": {\"attr\": \"reference\", \"value\": \"DEF\"}, \"fields\": [{\"id\": 231, \"value\": \"Product B\"}]}\n    ]\n  }'\n```\n\n### Mode 2: File upload\n\n```bash\ncurl -X POST \"https://your-domain/api/v3/import/json/node/\" \\\n  -H \"Authorization: Bearer YOUR_TOKEN\" \\\n  -F \"class_id=4\" \\\n  -F \"parent_id=12345\" \\\n  -F \"mode=create_in_context\" \\\n  -F \"file=@/path/to/data.jsonl\"\n```\n\n## Update Modes (Node/Project)\n\n- `create_in_context`: Create assets in the specified node context (default)\n- `update_in_context`: Update existing assets in the context\n- `classify_only`: Only classify assets (no data modification)\n\n## Common Errors\n\n| Error Code | Message | Cause | Solution |\n|------------|---------|-------|----------|\n| 2 | \"No data provided\" | Neither `data` nor `file` parameter | Provide exactly one of `data` or `file` |\n| 2 | \"Cannot use both data and file\" | Both parameters provided | Use only one input mode |\n| 2 | \"Parent node does not exist\" | Invalid parent_id | Use valid node ID from project |\n| 2 | \"Invalid file format\" | File is not .json or .jsonl | Use JSON or JSONL file extension |\n| 3 | \"JSON parse error on line X\" | Malformed JSON in file | Fix JSON syntax at specified line |\n| 3 | \"Not allowed operation\" | No permission on project | Check user project permissions |\n\n## Errors\n\n- `2` : `Cannot use both \"data\" and \"file\" parameters. Choose one input mode.`\n- `2` : `Class ID \"…\" is invalid`\n- `2` : `Invalid file format. Only JSON and JSONL files are supported for this endpoint.`\n- `2` : `Invalid file format. Supported formats: …`\n- `2` : `No data provided. Use either \"data\" parameter (JSON body) or \"file\" parameter (multipart upload)`\n- `2` : `Parameter \"data\" cannot be empty`\n- `2` : and 4 other validation message(s) of the same family\n- `3` : `Failed to access local file`\n- `3` : `Failed to access uploaded file`\n- `3` : `Failed to copy local file`\n- `3` : `Failed to create temporary file for JSON data`\n- `3` : `Failed to move uploaded file`\n- `3` : `Failed to read file with mapping`\n- `3` : and 3 other validation message(s) of the same family\n- `997` : `You don't have the rights to access this class (…)`\n- `997` : `You don't have the rights to do this action`\n","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"JSON Import response","content":{"application/json":{"schema":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/SuccessEnvelope"},{"type":"object","properties":{"result":{"$ref":"#/components/schemas/ImportJsonResult"}}}]},{"$ref":"#/components/schemas/ErrorResponse"}]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"class_id":{"type":"integer","description":"Library identifier (e.g., 4=Products). Use POST /api/v3/administration/classes/list to retrieve available libraries.","example":4},"parent_id":{"type":"integer","description":"Parent node ID in project. Use POST /api/v3/get-asset/by-search/node to find project nodes.","example":12345},"mode":{"type":"string","description":"Import mode: \"create_in_context\" (create nodes in project), \"update_in_context\" (update existing nodes), \"classify_only\" (classify without modification).","enum":["create_in_context","update_in_context","classify_only"],"example":"create_in_context"},"data":{"type":"array","description":"**MUTUALLY EXCLUSIVE with `file`** - Array of JSON objects to import (inline mode). Each object must contain `key` (asset identification), optionally `type_id`, and `fields` array. Exactly one of `data` or `file` must be provided.","example":"[{\"key\": {\"attr\": \"reference\", \"value\": \"ABC123\"}, \"type_id\": 257, \"fields\": [{\"id\": 231, \"value\": \"Product A\"}]}]","items":{"type":"string"}},"file":{"type":"string","format":"binary","description":"**MUTUALLY EXCLUSIVE with `data`** - JSON (.json) or JSONL (.jsonl) file to import. Must be sent as multipart/form-data with a filename including a valid extension (e.g. products.jsonl). Sending the file as raw binary without a filename will result in an error. Exactly one of `data` or `file` must be provided.","example":"products.jsonl"},"type_id":{"type":"integer","description":"Asset type ID for created assets. **Required when creating assets** (without it, creation will fail). Can be overridden per line with type_id field. Use POST /api/v3/types/list with class_id to get available types.","example":257},"version_id":{"type":"integer","description":"Default version ID for multilingual imports (can be overridden per field with version). Use POST /api/v3/administration/versions/list with class_id to get available versions.","example":1}},"required":["class_id","parent_id","mode"]}}}}}},"/api/v3/import/json/repository/":{"post":{"tags":["import"],"summary":"json/repository — Import JSON/JSONL data in repository","description":"## Purpose\n\nImports data from JSON or JSONL format into the repository. Supports two input modes:\n1. **Inline data**: Pass JSON data directly via the `data` parameter\n2. **File upload**: Upload a JSON/JSONL file via multipart/form-data\n\n## Content-Type\n\n- For inline data: `application/json`\n- For file upload: `multipart/form-data`\n\n## JSON Schema\n\n### Line Structure (JSONL format)\n\nEach line represents one asset to import:\n\n```jsonl\n{\"key\": {...}, \"type_id\": 257, \"fields\": [...]}\n```\n\n### Asset Identification (`key`)\n\n```jsonl\n// By direct asset_id\n{\"key\": {\"id\": 5845}, \"fields\": [...]}\n\n// By key attribute (code/uname)\n{\"key\": {\"attr\": \"reference\", \"value\": \"ABC123\"}, \"fields\": [...]}\n\n// By key attribute (numeric id)\n{\"key\": {\"attr\": 231, \"value\": \"ABC123\"}, \"fields\": [...]}\n```\n\n### Attribute Resolution (`id` and `attr`)\n\nThe `attr` parameter resolves attributes in this order:\n1. **Numeric ID**: Direct attribute ID (e.g., `231`)\n2. **Uname**: Attribute uname/code (e.g., `\"designationlibelle\"`)\n3. **Label**: Attribute label (e.g., `\"Designation\"`)\n\nUse POST /api/v3/attributes/list to retrieve attribute IDs and unames.\n\n### Attribute Fields (`fields`)\n\n```jsonl\n// Simple attribute by ID\n{\"id\": 231, \"value\": \"Product A\"}\n\n// With language version\n{\"id\": 658, \"value\": \"Red leather\", \"version\": 1}\n\n// By attribute code/uname instead of ID\n{\"attr\": \"designationlabel\", \"value\": \"Text\", \"version\": 2}\n\n// Multiple values (sync required)\n{\"id\": 724, \"value\": [\"Red\", \"Black\"], \"sync\": true}\n\n// Associated data with search key\n{\"id\": 800, \"value\": [\"SKU1\", \"SKU2\"], \"keyassoc\": 231, \"sync\": true}\n```\n\n### Complete JSONL Example\n\n```jsonl\n{\"key\": {\"attr\": \"reference\", \"value\": \"ABC123\"}, \"type_id\": 257, \"fields\": [{\"id\": 231, \"value\": \"3-seater sofa\"}, {\"id\": 658, \"value\": \"Red leather\", \"version\": 1}, {\"id\": 658, \"value\": \"Cuir rouge\", \"version\": 2}, {\"id\": 724, \"value\": [\"Red\", \"Black\"], \"sync\": true}]}\n{\"key\": {\"attr\": \"reference\", \"value\": \"DEF456\"}, \"type_id\": 257, \"fields\": [{\"id\": 231, \"value\": \"Coffee table\"}, {\"id\": 800, \"value\": [\"ABC123\"], \"keyassoc\": 231, \"sync\": false}]}\n```\n\n### Field Parameters\n\n| Parameter | Required | Description |\n|-----------|----------|-------------|\n| `id` or `attr` | Yes | Attribute numeric ID, code/uname, or label |\n| `value` | Yes | Value (string, number, or array for multiples) |\n| `version` | No | Language version ID (default version if absent) |\n| `sync` | **Required if array** | `true` = replace all, `false` = append |\n| `keyassoc` | No | Key attribute ID for associated data |\n\n## Important Notes\n\n- **`type_id` is required when creating assets** (modes `create_only` and `create_or_update`). Without it, rows will fail with an error. It can be set globally via the `type_id` parameter or per line via the `type_id` field in each JSON object.\n\n## Examples with curl\n\n### Mode 1: Inline JSON (data parameter)\n\n```bash\ncurl -X POST \"https://your-domain/api/v3/import/json/repository/\" \\\n  -H \"Authorization: Bearer YOUR_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"class_id\": 4,\n    \"mode\": \"create_or_update\",\n    \"type_id\": 257,\n    \"data\": [\n      {\"key\": {\"attr\": \"reference\", \"value\": \"ABC\"}, \"fields\": [{\"id\": 231, \"value\": \"Product A\"}]},\n      {\"key\": {\"attr\": \"reference\", \"value\": \"DEF\"}, \"fields\": [{\"id\": 231, \"value\": \"Product B\"}]}\n    ]\n  }'\n```\n\n### Mode 2: File upload\n\n```bash\ncurl -X POST \"https://your-domain/api/v3/import/json/repository/\" \\\n  -H \"Authorization: Bearer YOUR_TOKEN\" \\\n  -F \"class_id=4\" \\\n  -F \"mode=create_or_update\" \\\n  -F \"file=@/path/to/data.jsonl\"\n```\n\n## Update Modes (Repository)\n\n- `create_only`: Only create new assets, skip existing ones\n- `update_only`: Only update existing assets, skip new ones\n- `create_or_update`: Create new assets or update existing ones (default)\n\n## Common Errors\n\n| Error Code | Message | Cause | Solution |\n|------------|---------|-------|----------|\n| 2 | \"No data provided\" | Neither `data` nor `file` parameter | Provide exactly one of `data` or `file` |\n| 2 | \"Cannot use both data and file\" | Both parameters provided | Use only one input mode |\n| 2 | \"Invalid file format\" | File is not .json or .jsonl | Use JSON or JSONL file extension |\n| 2 | \"Parameter data must be an array\" | `data` is not a JSON array | Ensure `data` is an array of objects |\n| 3 | \"JSON parse error on line X\" | Malformed JSON in file | Fix JSON syntax at specified line |\n| 3 | \"Import error\" | Processing failed | Check attribute IDs and data format |\n\n## Errors\n\n- `2` : `Cannot use both \"data\" and \"file\" parameters. Choose one input mode.`\n- `2` : `Class ID \"…\" is invalid`\n- `2` : `Invalid file format. Only JSON and JSONL files are supported for this endpoint.`\n- `2` : `Invalid file format. Supported formats: …`\n- `2` : `No data provided. Use either \"data\" parameter (JSON body) or \"file\" parameter (multipart upload)`\n- `2` : `Parameter \"data\" cannot be empty`\n- `2` : and 4 other validation message(s) of the same family\n- `3` : `Failed to access local file`\n- `3` : `Failed to access uploaded file`\n- `3` : `Failed to copy local file`\n- `3` : `Failed to create temporary file for JSON data`\n- `3` : `Failed to move uploaded file`\n- `3` : `Failed to read file with mapping`\n- `3` : and 3 other validation message(s) of the same family\n- `997` : `You don't have the rights to access this class (…)`\n- `997` : `You don't have the rights to do this action`\n","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"JSON Import response","content":{"application/json":{"schema":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/SuccessEnvelope"},{"type":"object","properties":{"result":{"$ref":"#/components/schemas/ImportJsonResult"}}}]},{"$ref":"#/components/schemas/ErrorResponse"}]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"class_id":{"type":"integer","description":"Library identifier (e.g., 4=Products). Use POST /api/v3/administration/classes/list to retrieve available libraries.","example":4},"parent_id":{"type":"integer","description":"Parent asset ID in repository. Use POST /api/v3/get-asset/by-search/repository to find assets. Set to 0 for repository root (default).","example":0},"mode":{"type":"string","description":"Import mode: \"create_only\" (new assets only), \"update_only\" (existing assets only), \"create_or_update\" (both).","enum":["create_only","update_only","create_or_update"],"example":"create_or_update"},"data":{"type":"array","description":"**MUTUALLY EXCLUSIVE with `file`** - Array of JSON objects to import (inline mode). Each object must contain `key` (asset identification), optionally `type_id`, and `fields` array. Exactly one of `data` or `file` must be provided.","example":"[{\"key\": {\"attr\": \"reference\", \"value\": \"ABC123\"}, \"type_id\": 257, \"fields\": [{\"id\": 231, \"value\": \"Product A\"}]}]","items":{"type":"string"}},"file":{"type":"string","format":"binary","description":"**MUTUALLY EXCLUSIVE with `data`** - JSON (.json) or JSONL (.jsonl) file to import. Must be sent as multipart/form-data with a filename including a valid extension (e.g. products.jsonl). Sending the file as raw binary without a filename will result in an error. Exactly one of `data` or `file` must be provided.","example":"products.jsonl"},"type_id":{"type":"integer","description":"Asset type ID for created assets. **Required when creating assets** (without it, creation will fail). Can be overridden per line with type_id field. Use POST /api/v3/types/list with class_id to get available types.","example":257},"version_id":{"type":"integer","description":"Default version ID for multilingual imports (can be overridden per field with version). Use POST /api/v3/administration/versions/list with class_id to get available versions.","example":1}},"required":["class_id","mode"]}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token generated with /api/v3/token/get/"}},"schemas":{"SuccessEnvelope":{"type":"object","title":"Success Response","properties":{"status_code":{"type":"integer","enum":[1],"example":1,"description":"Status code (1 = success)"},"status_message":{"type":"string","example":"","description":"Status message"}},"required":["status_code","status_message","result"]},"ErrorResponse":{"type":"object","title":"Error Response","properties":{"status_code":{"type":"integer","example":3,"description":"Status code (0 = the action does not exist, 2 = parameter error, 3 = no result, 997 = unauthorized action, 998 = invalid token, 999 = connection error)"},"status_message":{"type":"string","example":"Class not found or access denied","description":"Error message"},"result":{"type":"array","items":{"type":"object"},"example":[],"description":"Empty array on error"}},"required":["status_code","status_message","result"]},"ExportPage":{"type":"object","properties":{"results_total":{"type":"integer","example":15,"description":"Total number of items"},"items":{"type":"array","items":{"type":"object"},"description":"Export data"},"num_page":{"type":"integer","nullable":true,"example":1,"description":"Current page number"},"nb_pages":{"type":"integer","nullable":true,"example":15,"description":"Total number of pages"},"results_per_page":{"type":"integer","nullable":true,"example":100,"description":"Number of results per page"}},"required":["results_total","items"],"description":"Export result"},"ExportJobQueued":{"type":"object","properties":{"queue_id":{"type":"integer","example":47593,"description":"Queue ID for async file retrieval via export/get-file"}},"required":["queue_id"],"description":"Queue information"},"ImportAutoResult":{"type":"object","properties":{"success":{"type":"boolean","example":true,"description":"Import success status"},"mapping":{"type":"object","properties":{"resolved":{"type":"array","items":{"type":"object","properties":{"column":{"type":"integer","example":1,"description":"Column index (1-based)"},"header":{"type":"string","example":"reference*","description":"Original column header from file"},"attribute_id":{"type":"integer","nullable":true,"example":145,"description":"Matched attribute ID. Null if mapped to a system field."},"attribute_code":{"type":"string","example":"reference","description":"Portable attribute code (ROLE_XML), stable across environments (the auto-incremented id is not). Only present for attribute mappings."},"attribute_label":{"type":"string","example":"Reference","description":"Matched attribute label. Only present for attribute mappings."},"system_field":{"type":"string","nullable":true,"example":"[ID_FICHE]","description":"System field identifier. Only present for system field mappings. Full list: [ID_FICHE], [ID_NODE], [ID_TYPE], [CODE_TYPE], [LABEL_TYPE], [ID_STATUT], [CODE_STATUT], [LABEL_STATUT], [STATUT] (legacy synonym of [LABEL_STATUT]), [ID_WFITEMS], [CODE_WFITEMS], [LABEL_WFITEMS], [ORDRE], [PARENT], [PAGENUM]. The [CODE_*] forms are the portable ones: they are stable across environments, unlike the ids, and not translated, unlike the labels."},"is_key":{"type":"boolean","example":true,"description":"Whether this column is marked as a key column (header ends with *)"}}},"description":"Columns successfully mapped to attributes or system fields"},"unresolved":{"type":"array","items":{"type":"object","properties":{"column":{"type":"integer","example":3,"description":"Column index (1-based)"},"header":{"type":"string","example":"unknown_column","description":"Column header that could not be matched to any attribute"}}},"description":"Columns that could not be mapped (no matching uname or label found in the class)"}},"description":"Mapping information"},"stats":{"type":"object","properties":{"total_rows":{"type":"integer","example":1500,"description":"Total number of data rows processed"},"created":{"type":"integer","example":1200,"description":"Number of assets created"},"updated":{"type":"integer","example":300,"description":"Number of assets updated"},"excluded":{"type":"integer","example":0,"description":"Number of rows excluded (no key value)"},"errors":{"type":"integer","example":0,"description":"Number of rows with errors"}},"required":["total_rows","created","updated","excluded","errors"],"description":"Import statistics"},"errors":{"type":"array","items":{"type":"object","properties":{"row":{"type":"integer","description":"Row number"},"message":{"type":"string","description":"Error message"}}},"description":"List of row-level errors"},"history_id":{"type":"integer","example":12345,"description":"ID of the import action in the history log. Can be used to track or reference this import operation."}},"required":["success","mapping","stats","errors"],"description":"Import result"},"ImportJsonResult":{"type":"object","properties":{"success":{"type":"boolean","example":true,"description":"Import success status"},"stats":{"type":"object","properties":{"total_rows":{"type":"integer","example":2,"description":"Total number of data rows processed"},"created":{"type":"integer","example":1,"description":"Number of assets created"},"updated":{"type":"integer","example":1,"description":"Number of assets updated"},"excluded":{"type":"integer","example":0,"description":"Number of rows excluded (no key value)"},"errors":{"type":"integer","example":0,"description":"Number of rows with errors"}},"required":["total_rows","created","updated","excluded","errors"],"description":"Import statistics"},"errors":{"type":"array","items":{"type":"object","properties":{"row":{"type":"integer","example":3,"description":"Row number where error occurred"},"message":{"type":"string","example":"Invalid attribute ID: 999","description":"Error message describing the issue"}}},"example":[{"row":3,"message":"Invalid attribute ID: 999"}],"description":"List of row-level errors encountered during import"},"history_id":{"type":"integer","example":12345,"description":"ID of the import action in the history log"},"mapping":{"type":"object","additionalProperties":true,"description":"Column-to-attribute mapping actually applied, always returned : the JSON endpoints share executeAutoImport() with the auto_* endpoints. Same shape as ImportAutoResult.mapping (resolved[] / unresolved[])."}},"required":["success","mapping","stats","errors"],"description":"Import result"},"PermissionGroup":{"type":"object","properties":{"id":{"type":"integer","example":15,"description":"Group ID"},"label":{"type":"string","example":"My group","description":"Group label"},"parent_id":{"type":"integer","example":1511,"description":"Parent group ID"},"parent_label":{"type":"string","example":"My group parent","description":"Parent group label"},"configuration":{"type":"object","properties":{"langs":{"type":"object","additionalProperties":true,"example":{"all_versions":true},"description":"Multilingual"},"default_display_mask":{"type":"object","nullable":true,"properties":{"id":{"type":"integer","example":1032,"description":"Mask ID"},"code":{"type":"string","example":"mask_purchasing","description":"Portable mask code, stable across environments (the auto-incremented id is not)"},"label":{"type":"string","example":"A mask","description":"Mask label"}},"description":"Default display mask of the group. Use `code` rather than `id` to replay this configuration on another environment."},"profiles":{"type":"object","description":"Profiles of the group, one per type. Use `code` rather than `id` to replay this configuration on another environment.","properties":{"asset":{"type":"object","nullable":true,"properties":{"id":{"type":"integer","example":35,"description":"Profile ID"},"code":{"type":"string","example":"profile_full_rights","description":"Portable profile code"},"label":{"type":"string","example":"Full rights","description":"Profile label"}},"description":"Asset profile"},"general":{"type":"object","nullable":true,"properties":{"id":{"type":"integer","example":33,"description":"Profile ID"},"code":{"type":"string","example":"profile_full_rights","description":"Portable profile code"},"label":{"type":"string","example":"Full rights","description":"Profile label"}},"description":"General profile"},"project":{"type":"object","nullable":true,"properties":{"id":{"type":"integer","example":34,"description":"Profile ID"},"code":{"type":"string","example":"profile_full_rights","description":"Portable profile code"},"label":{"type":"string","example":"Full rights","description":"Profile label"}},"description":"Project profile"}}},"status":{"type":"array","items":{"type":"object","properties":{"class_id":{"type":"integer","example":2,"description":"Class ID"},"class_code":{"type":"string","example":"lib_products","description":"Portable library code, stable across environments (the auto-incremented id is not)"},"class_label":{"type":"string","example":"DAM","description":"Class label"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","example":1093,"description":"Status ID"},"code":{"type":"string","example":"status_active","description":"Portable status code, stable across environments (the auto-incremented id is not)"},"label":{"type":"string","example":"Active","description":"Status label"}},"required":["id","code","label"]},"description":"Statuses granted to the group for this library. Use `code` rather than `id` to replay this configuration on another environment."}},"required":["class_id","class_code","class_label","items"]},"description":"Status list"},"overload_by_status":{"type":"array","items":{"type":"object","properties":{"class_id":{"type":"integer","example":2,"description":"Class ID"},"class_code":{"type":"string","example":"lib_products","description":"Portable library code, stable across environments (the auto-incremented id is not)"},"class_label":{"type":"string","example":"DAM","description":"Class label"},"items":{"type":"array","items":{"type":"object","properties":{"status":{"type":"object","properties":{"id":{"type":"integer","example":1111,"description":"Status ID"},"code":{"type":"string","example":"status_proposed","description":"Portable status code, stable across environments"},"label":{"type":"string","example":"Proposed","description":"Status label"}},"required":["id","code","label"],"description":"Status the overload applies to"},"profile_asset":{"type":"object","properties":{"id":{"type":"integer","example":53,"description":"Profile ID, 0 when the overload does not set a profile"},"code":{"type":"string","example":"profile_contributor","description":"Portable profile code, empty when the overload does not set a profile"},"label":{"type":"string","example":"Profile test","description":"Profile label, \"Default\" when the overload does not set a profile"}},"description":"Overloaded asset profile"},"mask":{"type":"object","properties":{"id":{"type":"integer","example":1064,"description":"Mask ID, 0 when the overload does not set a mask"},"code":{"type":"string","example":"mask_full_display","description":"Portable mask code, empty when the overload does not set a mask"},"label":{"type":"string","example":"Full display mask","description":"Mask label, \"Default\" when the overload does not set a mask"}},"description":"Overloaded display mask"}},"required":["status","profile_asset","mask"]},"description":"Overloads defined for this library"}},"required":["class_id","class_code","class_label","items"]},"description":"Overloaded by status"}},"required":["langs","default_display_mask","profiles","status","overload_by_status"],"description":"Group configuration (langs, default display mask, profiles, statuses and overload by status)"},"users":{"type":"object","additionalProperties":{"type":"string"},"example":{"2187":"login@company.com"},"description":"Users in group"}},"required":["id","label","parent_id","parent_label","configuration","users"]},"DisplayMask":{"type":"object","properties":{"id":{"type":"integer","example":1025,"description":"Mask ID"},"code":{"type":"string","example":"code_1025","description":"Portable mask code, stable across environments (the auto-incremented id is not)"},"label":{"type":"string","example":"Standard mask","description":"Mask label"},"class_id":{"type":"integer","example":2,"description":"Class ID"},"class_code":{"type":"string","example":"lib_products","description":"Portable library code, stable across environments (the auto-incremented id is not)"},"class_label":{"type":"string","example":"DAM","description":"Class label"},"attributes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","example":123,"description":"Attribute ID"},"code":{"type":"string","example":"product_name","description":"Portable attribute code (ROLE_XML), stable across environments (the auto-incremented id is not)"},"label":{"type":"string","example":"Product name","description":"Attribute label"},"hidden":{"type":"boolean","example":false,"description":"Whether attribute is hidden"},"read":{"type":"boolean","example":true,"description":"Whether attribute is readable"},"write":{"type":"boolean","example":true,"description":"Whether attribute is writable"},"locally_editable":{"type":"boolean","example":false,"description":"Whether attribute is locally editable (asset share)"}},"required":["id","code","label","hidden","read","write","locally_editable"]},"description":"Attributes configuration for the class"}},"required":["id","code","label","class_id","class_code","class_label","attributes"]},"WorkflowSummary":{"type":"object","properties":{"id":{"type":"integer","example":15,"description":"Workflow ID"},"code":{"type":"string","example":"","description":"Workflow code"},"label":{"type":"string","example":"Workflow validation","description":"Workflow label"},"class_id":{"type":"integer","example":4,"description":"Class ID"},"project_node_id":{"type":"integer","example":1234,"description":"Project node ID (0 for the repository project)"},"project_label":{"type":"string","example":"My Project","description":"Project label (\"Repository Project\" for the repository)"},"tags":{"type":"array","items":{"type":"string"},"example":["validation","review"],"description":"Array of tags (can be empty)"},"supertype":{"type":"object","properties":{"id":{"type":"integer","example":3,"description":"Supertype ID"},"label":{"type":"string","example":"Products","description":"Supertype label"}},"required":["id","label"],"description":"Supertype information"},"types":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","example":"type_product","description":"Portable type code, stable across environments (the auto-incremented id is not)"},"id":{"type":"integer","example":42,"description":"Type ID"},"label":{"type":"string","example":"Product","description":"Type label"}},"required":["id","code","label"]},"description":"Array of asset types associated with this workflow"}},"required":["id","code","label","class_id","project_node_id","project_label","tags","supertype","types"],"description":"Workflow information without its steps"},"WorkflowSummaryList":{"type":"object","properties":{"results_total":{"type":"integer","example":2,"description":"Total number of workflows returned"},"items":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowSummary"},"description":"Array of workflow objects"}},"required":["results_total","items"]},"Workflow":{"type":"object","properties":{"id":{"type":"integer","example":15,"description":"Workflow ID"},"code":{"type":"string","example":"","description":"Workflow code"},"label":{"type":"string","example":"Workflow validation","description":"Workflow label"},"tags":{"type":"array","items":{"type":"string"},"example":["validation","review"],"description":"Array of tags (can be empty)"},"class_id":{"type":"integer","example":4,"description":"Associated class ID"},"project_node_id":{"type":"integer","example":1234,"description":"Project node ID (0 for repository project)"},"project_label":{"type":"string","example":"My Project","description":"Project label"},"started":{"type":"boolean","example":true,"description":"Whether the workflow is started"},"filters":{"type":"array","nullable":true,"items":{"type":"object","properties":{"attribute_id":{"type":"integer","example":123,"description":"Attribute ID. Use POST /api/v3/attributes/list with class_id to get available attributes."},"attribute_code":{"type":"string","example":"product_name","description":"Portable attribute code (ROLE_XML), stable across environments (the auto-incremented id is not)"},"attribute_label":{"type":"string","example":"Status","description":"Attribute label"},"value":{"type":"string","example":"active","description":"Filter value"}}},"description":"Workflow filters (array of filter objects or null)"},"supertype":{"type":"object","properties":{"id":{"type":"integer","example":3,"description":"Supertype ID"},"label":{"type":"string","example":"Products","description":"Supertype label"}},"required":["id","label"],"description":"Supertype information"},"types":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","example":"type_product","description":"Portable type code, stable across environments (the auto-incremented id is not)"},"id":{"type":"integer","example":42,"description":"Type ID"},"label":{"type":"string","example":"Product","description":"Type label"}},"required":["id","code","label"]},"description":"Array of asset types associated with this workflow"},"configuration":{"type":"object","properties":{"step_groups":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowStepGroup"},"description":"Array of step groups containing steps with their nested data"}},"required":["step_groups"],"description":"Workflow configuration containing step groups hierarchy"}},"required":["id","code","label","class_id","project_node_id","project_label","tags","supertype","types","started","configuration"],"description":"Complete workflow information with hierarchical structure"},"WorkflowStepGroup":{"type":"object","properties":{"id":{"type":"integer","example":1,"description":"Step group ID"},"code":{"type":"string","example":"group_validation","description":"Portable step group code. Unique within the workflow (not across the platform)."},"label":{"type":"string","example":"Validation","description":"Step group label"},"order":{"type":"integer","example":1,"description":"Display order"},"steps":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowStep"},"description":"Array of steps in this group"}},"required":["id","code","label","order","steps"]},"WorkflowStep":{"type":"object","properties":{"id":{"type":"integer","example":101,"description":"Step ID"},"code":{"type":"string","example":"step_draft","description":"Portable step code. Unique within the workflow (not across the platform). This is the value expected in the \"wf-{workflowCode}-{stepCode}\" format used to force a workflow step."},"label":{"type":"string","example":"Draft","description":"Step label"},"order":{"type":"integer","example":1,"description":"Display order"},"color":{"type":"string","nullable":true,"example":"#28a745","description":"Step color"},"start":{"type":"boolean","example":false,"description":"Whether this is a start step"},"notification":{"type":"object","nullable":true,"properties":{"mail_template_id":{"type":"integer","example":5,"description":"Mail template ID"},"mail_template_code":{"type":"string","example":"code_5","description":"Portable code of the mail template, stable across environments (the auto-incremented id is not)"},"mail_template_label":{"type":"string","example":"Validation notification","description":"Mail template label"}},"description":"Notification configuration (null if not configured)"},"delay_days":{"type":"integer","nullable":true,"example":7,"description":"Delay in days for the step"},"workflow_action_on_arrival":{"type":"object","nullable":true,"properties":{"id":{"type":"integer","example":536,"description":"Process ID triggered when an asset reaches this step"},"code":{"type":"string","example":"code_536","description":"Portable process code, stable across environments (the auto-incremented id is not)"},"label":{"type":"string","example":"Create vendor component","description":"Process label"}},"required":["id","code","label"],"description":"Process triggered on arrival at this step (null if none)"},"contributors":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","example":5,"description":"Contributor group ID"},"code":{"type":"string","example":"group_validators","description":"Portable contributor group code. Unique within the project (not across the platform)."},"label":{"type":"string","example":"Validation Group","description":"Contributor group label"}},"required":["id","code","label"]},"description":"Array of contributors for this step"},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","example":201,"description":"Action ID"},"code":{"type":"string","example":"action_validate","description":"Portable action (button) code. Unique within the workflow (not across the platform)."},"label":{"type":"string","example":"Validate","description":"Action label"},"goto_step":{"type":"object","nullable":true,"properties":{"id":{"type":"integer","example":102,"description":"Destination step ID"},"code":{"type":"string","example":"step_validated","description":"Portable step code, stable across environments (the auto-incremented id is not)"},"label":{"type":"string","example":"Validated","description":"Destination step label"}},"required":["id","code","label"],"description":"Destination step (null if no destination)"},"mode":{"type":"string","enum":["send_the_brief","submit","reject","validate"],"example":"validate","description":"Action mode (send_the_brief, submit, reject or validate)"},"display_if_completeness":{"type":"boolean","example":false,"description":"Display button only if all completeness attributes are filled"}},"required":["id","code","label","mode","display_if_completeness"]},"description":"Array of actions for this step"},"completeness":{"type":"object","nullable":true,"properties":{"attributes":{"type":"array","nullable":true,"items":{"type":"object","properties":{"id":{"type":"integer","example":1547,"description":"Attribute ID"},"code":{"type":"string","example":"component_commercial_name","description":"Portable attribute code (ROLE_XML), stable across environments (the auto-incremented id is not)"},"label":{"type":"string","example":"Component commercial name","description":"Attribute label"}},"required":["id","code","label"]},"description":"Attributes taken into account for completeness"},"automate_goto_step":{"type":"object","nullable":true,"properties":{"id":{"type":"integer","example":102,"description":"Automatic transition step ID when complete"},"code":{"type":"string","example":"step_validate","description":"Portable step code, stable across environments (the auto-incremented id is not)"},"label":{"type":"string","example":"Validate","description":"Automatic transition step label when complete"}},"required":["id","code","label"],"description":"Automatic step transition when completeness is reached"}},"description":"Completeness configuration (null if not configured)"},"hotfolder":{"type":"object","nullable":true,"properties":{"action_on_update":{"type":"object","nullable":true,"properties":{"id":{"type":"integer","example":201,"description":"Action ID to execute on update"},"code":{"type":"string","example":"action_validate","description":"Portable action code, stable across environments (the auto-incremented id is not)"},"label":{"type":"string","example":"Validate","description":"Action label"}},"required":["id","code","label"],"description":"Action to execute when hotfolder is updated (null for no automatic step change)"},"create_version":{"type":"boolean","example":true,"description":"Whether to create a version on update"}},"description":"Hotfolder configuration (null if not configured or not active)"},"status_piloting_view":{"type":"object","properties":{"status":{"type":"object","nullable":true,"properties":{"id":{"type":"integer","example":1234,"description":"Status id"},"code":{"type":"string","example":"status_active","description":"Portable status code, stable across environments (the auto-incremented id is not)"},"label":{"type":"string","nullable":true,"example":"Admin Status","description":"Status label"}},"required":["id","code"],"description":"Status configuration (null if not configured)"},"default_view":{"type":"string","nullable":true,"enum":["default","completeness","list"],"example":"completeness","description":"Default view mode (default, completeness, or list)"},"children_piloting":{"$ref":"#/components/schemas/WorkflowChildrenPiloting"}},"description":"Status, piloting and view configuration"},"reminder":{"type":"object","nullable":true,"properties":{"days_before":{"type":"integer","example":7,"description":"Days before deadline to send notification"},"recurrence_days":{"type":"integer","nullable":true,"example":1,"description":"Recurrence interval in days for notifications"}},"description":"Reminder configuration (null if not configured)"}},"required":["id","code","label","order","start","contributors","actions","status_piloting_view"]},"WorkflowChildrenPiloting":{"type":"object","nullable":true,"oneOf":[{"type":"object","title":"Workflow Type","properties":{"type":{"type":"string","enum":["workflow"],"example":"workflow","description":"Children piloting type"},"items":{"type":"array","items":{"type":"object","properties":{"workflow":{"type":"object","properties":{"id":{"type":"integer","example":15,"description":"Target workflow ID"},"code":{"type":"string","example":"code_15","description":"Portable workflow code, stable across environments (the auto-incremented id is not)"},"label":{"type":"string","nullable":true,"example":"Child Workflow","description":"Target workflow label"}},"required":["id","code"]},"step":{"type":"object","properties":{"id":{"type":"integer","example":101,"description":"Target step ID"},"code":{"type":"string","example":"step_draft","description":"Portable step code, stable across environments (the auto-incremented id is not)"},"label":{"type":"string","nullable":true,"example":"Draft","description":"Target step label"}},"required":["id","code"]}},"required":["workflow","step"]},"description":"Array of workflow step configurations"}},"required":["type","items"]},{"type":"object","title":"Status Type","properties":{"type":{"type":"string","enum":["status"],"example":"status","description":"Children piloting type"},"items":{"type":"array","items":{"type":"object","properties":{"status":{"type":"object","properties":{"id":{"type":"integer","example":123,"description":"Status ID"},"code":{"type":"string","example":"status_active","description":"Portable status code, stable across environments (the auto-incremented id is not)"},"label":{"type":"string","nullable":true,"example":"Active","description":"Status label"}},"required":["id","code"]},"supertypes":{"type":"array","nullable":true,"items":{"type":"object","properties":{"id":{"type":"integer","example":3,"description":"Supertype ID"},"label":{"type":"string","nullable":true,"example":"Products","description":"Supertype label"}},"required":["id"]},"description":"Array of supertypes (null if not configured)"},"types":{"type":"array","nullable":true,"items":{"type":"object","properties":{"code":{"type":"string","example":"type_product","description":"Portable type code, stable across environments (the auto-incremented id is not)"},"id":{"type":"integer","example":42,"description":"Type ID"},"label":{"type":"string","nullable":true,"example":"Product","description":"Type label"}},"required":["id","code"]},"description":"Array of types (null if not configured)"}},"required":["status"]},"description":"Array of status configurations"}},"required":["type","items"]}],"description":"Children piloting configuration (null if not configured)"},"WorkflowList":{"type":"object","properties":{"results_total":{"type":"integer","example":2,"description":"Total number of workflows returned"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Workflow"},"description":"Array of workflow objects with complete information"}},"required":["results_total","items"]}}}}