{"openapi":"3.0.0","info":{"title":"Afineo Webservices API — get-asset","description":"Module `get-asset` of the Afineo API v3 (4 endpoints).\n\nRetrieve asset data by search criteria or by ID. Supports both repository (master data) and project (contextual data) contexts. Use this to read asset information without modifying it.\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":"get-asset","description":"Retrieve asset data by search criteria or by ID. Supports both repository (master data) and project (contextual data) contexts. Use this to read asset information without modifying it."}],"paths":{"/api/v3/get-asset/by-id/node/":{"post":{"tags":["get-asset"],"summary":"by-id/node — Get project node asset by ID","description":"## Purpose\n\nReturns project-contextualized asset with all attribute values (includes project-specific overrides).\n\n## Errors\n\n- `2` : `Asset does not exist or has been deleted`\n- `2` : `Class ID \"…\" is invalid`\n- `2` : a parameter is missing, of the wrong type, outside the allowed values, or a nested property is malformed (see the request schema)\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":"Asset data","content":{"application/json":{"schema":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/SuccessEnvelope"},{"type":"object","properties":{"result":{"type":"object","properties":{"id":{"type":"integer","example":5756,"description":"Node ID"},"parent_id":{"type":"integer","nullable":true,"example":466175,"description":"Parent node ID"},"version_id":{"type":"integer","example":1,"description":"Version ID"},"path":{"type":"string","example":"0/1978/5756","description":"Node path"},"supertype_id":{"type":"integer","example":7,"description":"Supertype ID"},"supertype_label":{"type":"string","nullable":true,"example":"Products","description":"Supertype label"},"type_id":{"type":"integer","example":291,"description":"Type ID"},"type_code":{"type":"string","example":"housses","description":"Portable type code, stable across environments (the auto-incremented id is not). Empty string if the type has no code."},"type_label":{"type":"string","example":"HOUSSES","description":"Type label"},"workflow_item_id":{"type":"integer","nullable":true,"example":null,"description":"Workflow item ID"},"workflow_item_code":{"type":"string","example":"code_1204","description":"Portable workflow step code (wf_items), unique within its workflow. Empty string if the asset has no workflow step."},"workflow_item_label":{"type":"string","nullable":true,"example":"Pending validation","description":"Workflow item label (step/action)"},"creation_date":{"type":"string","example":"2018-09-12T00:00:00+02:00","description":"Creation date (ISO 8601)"},"modification_date":{"type":"string","example":"2025-07-30T00:00:00+02:00","description":"Modification date (ISO 8601)"},"status_id":{"type":"integer","example":1115,"description":"Status ID"},"status_code":{"type":"string","example":"status_validated","description":"Portable status code of the asset, stable across environments (the auto-incremented id is not). NB: distinct from the API envelope return code, also named status_code but located at the root of the response."},"status_label":{"type":"string","nullable":true,"example":"Validated","description":"Status label"},"media":{"type":"string","nullable":true,"example":"/path/to/image.jpg","description":"Asset thumbnail image path (null if no image)"},"data":{"type":"object","additionalProperties":true,"example":{"2017":"AAF22DSQ22DQS2","2018":"2804-AAF22DSQ22DQS2"},"description":"Asset data with attribute values"}},"required":["id","type_id","type_code","type_label","creation_date","modification_date","status_id","status_code","media","data"],"description":"Asset object"}}}]},{"$ref":"#/components/schemas/ErrorResponse"}]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"Node ID. Use POST /api/v3/get-asset/by-search/node to find nodes and get their IDs.","example":5756},"class_id":{"type":"integer","description":"Library ID. Use POST /api/v3/administration/classes/list to get available libraries.","example":4},"version_id":{"type":"integer","description":"Version ID. Use POST /api/v3/administration/versions/list with class_id to get available versions.","example":1}},"required":["id","class_id"]}}}}}},"/api/v3/get-asset/by-id/repository/":{"post":{"tags":["get-asset"],"summary":"by-id/repository — Get repository asset by ID","description":"## Purpose\n\nReturns complete repository asset with all attribute values (master data without project overrides).\n\n## Errors\n\n- `2` : `Asset does not exist or has been deleted`\n- `2` : `Class ID \"…\" is invalid`\n- `2` : a parameter is missing, of the wrong type, outside the allowed values, or a nested property is malformed (see the request schema)\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":"Asset data","content":{"application/json":{"schema":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/SuccessEnvelope"},{"type":"object","properties":{"result":{"type":"object","properties":{"id":{"type":"integer","example":141560,"description":"Asset ID"},"parent_id":{"type":"integer","nullable":true,"example":466175,"description":"Parent asset ID"},"version_id":{"type":"integer","example":1,"description":"Version ID"},"path":{"type":"string","example":"0/1978/141560","description":"Asset path"},"supertype_id":{"type":"integer","example":7,"description":"Supertype ID"},"supertype_label":{"type":"string","nullable":true,"example":"Products","description":"Supertype label"},"type_id":{"type":"integer","example":291,"description":"Type ID"},"type_code":{"type":"string","example":"housses","description":"Portable type code, stable across environments (the auto-incremented id is not). Empty string if the type has no code."},"type_label":{"type":"string","example":"HOUSSES","description":"Type label"},"workflow_item_id":{"type":"integer","nullable":true,"example":null,"description":"Workflow item ID"},"workflow_item_code":{"type":"string","example":"code_1204","description":"Portable workflow step code (wf_items), unique within its workflow. Empty string if the asset has no workflow step."},"workflow_item_label":{"type":"string","nullable":true,"example":"Pending validation","description":"Workflow item label (step/action)"},"creation_date":{"type":"string","example":"2018-09-12T00:00:00+02:00","description":"Creation date (ISO 8601)"},"modification_date":{"type":"string","example":"2025-07-30T00:00:00+02:00","description":"Modification date (ISO 8601)"},"status_id":{"type":"integer","example":1115,"description":"Status ID"},"status_code":{"type":"string","example":"status_validated","description":"Portable status code of the asset, stable across environments (the auto-incremented id is not). NB: distinct from the API envelope return code, also named status_code but located at the root of the response."},"status_label":{"type":"string","nullable":true,"example":"Validated","description":"Status label"},"media":{"type":"string","nullable":true,"example":"/path/to/image.jpg","description":"Asset thumbnail image path (null if no image)"},"data":{"type":"object","additionalProperties":true,"example":{"2017":"AAF22DSQ22DQS2","2018":"2804-AAF22DSQ22DQS2"},"description":"Asset data with attribute values"}},"required":["id","type_id","type_code","type_label","creation_date","modification_date","status_id","status_code","media","data"],"description":"Asset object"}}}]},{"$ref":"#/components/schemas/ErrorResponse"}]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"Asset ID. Use POST /api/v3/get-asset/by-search/repository to find assets and get their IDs.","example":50},"class_id":{"type":"integer","description":"Library ID. Use POST /api/v3/administration/classes/list to get available libraries.","example":4},"version_id":{"type":"integer","description":"Version ID. Use POST /api/v3/administration/versions/list with class_id to get available versions.","example":1}},"required":["id","class_id"]}}}}}},"/api/v3/get-asset/by-search/node/":{"post":{"tags":["get-asset"],"summary":"by-search/node — Search project node assets by filters","description":"## Purpose\n\nReturns project-contextualized assets matching filters with pagination and custom attribute selection.\n\n## Context\n\nSearches within a specific project node tree (catalog, publication) instead of repository.\n\n## Errors\n\n- `2` : `Class ID \"…\" is invalid`\n- `2` : `Parent node (…) does not exist or has been deleted`\n- `2` : `The parameter \"attribute_list\" must be a list of 10 or less elements.`\n- `2` : `The parameter \"parent_id\" must be filled`\n- `2` : `The parameter \\\"parent_id\\\" must be greater than 0`\n- `2` : and 6 other validation message(s) of the same family\n- `3` : `No results found`\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":"Asset list by search","content":{"application/json":{"schema":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/SuccessEnvelope"},{"type":"object","properties":{"result":{"type":"object","properties":{"results_total":{"type":"integer","example":15,"description":"Number of items"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","example":141560,"description":"Node ID"},"parent_id":{"type":"integer","nullable":true,"example":466175,"description":"Parent node ID"},"version_id":{"type":"integer","example":1,"description":"Version ID"},"path":{"type":"string","example":"0/1978/141560","description":"Node path"},"supertype_id":{"type":"integer","example":7,"description":"Supertype ID"},"supertype_label":{"type":"string","nullable":true,"example":"Products","description":"Supertype label"},"type_id":{"type":"integer","example":291,"description":"Type ID"},"type_code":{"type":"string","example":"housses","description":"Portable type code, stable across environments (the auto-incremented id is not). Empty string if the type has no code."},"type_label":{"type":"string","example":"HOUSSES","description":"Type label"},"workflow_item_id":{"type":"integer","nullable":true,"example":null,"description":"Workflow item ID"},"workflow_item_code":{"type":"string","example":"code_1204","description":"Portable workflow step code (wf_items), unique within its workflow. Empty string if the asset has no workflow step."},"workflow_item_label":{"type":"string","nullable":true,"example":null,"description":"Workflow item label (step/action)"},"creation_date":{"type":"string","example":"2018-09-12T00:00:00+02:00","description":"Creation date (ISO 8601)"},"modification_date":{"type":"string","example":"2025-07-30T00:00:00+02:00","description":"Modification date (ISO 8601)"},"status_id":{"type":"integer","example":1115,"description":"Status ID"},"status_code":{"type":"string","example":"status_validated","description":"Portable status code of the asset, stable across environments (the auto-incremented id is not). NB: distinct from the API envelope return code, also named status_code but located at the root of the response."},"status_label":{"type":"string","nullable":true,"example":"Validated","description":"Status label"},"data":{"type":"object","additionalProperties":true,"example":{"2017":"AAF22DSQ22DQS2","2018":"2804-AAF22DSQ22DQS2"},"description":"Asset data with attribute values"}},"required":["id","type_id","type_code","type_label","creation_date","modification_date","status_id","status_code"]},"description":"List of nodes"},"num_page":{"type":"integer","nullable":true,"example":1,"description":"Page number"},"nb_pages":{"type":"integer","nullable":true,"example":15,"description":"Number of pages"},"results_per_page":{"type":"integer","nullable":true,"example":100,"description":"Number of results per page"}},"required":["results_total","items"],"description":"Result list"}}}]},{"$ref":"#/components/schemas/ErrorResponse"}]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"class_id":{"type":"integer","description":"Library ID. Use POST /api/v3/administration/classes/list to get 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":4350},"num_page":{"type":"integer","description":"Page number for pagination. Use with results_per_page parameter.","example":3},"results_per_page":{"type":"integer","description":"Number of results per page (between 10 and 1000). Must always be provided together with \"num_page\".","example":50},"version_id":{"type":"integer","description":"Version ID. Use POST /api/v3/administration/versions/list with class_id to get available versions.","example":1},"exclude_inherited_values":{"type":"boolean","description":"If it is true, only the direct values of the asset are exported (excludes values that have not been filled directly in the asset : values inherited from a parent, or from the repository in the case of a contextual asset, or calculated values)","example":true},"attribute_list":{"type":"array","description":"If specified, the result will contain for each asset only the list of specified attributes (10 maximum). You must use either the \"attribute_list\" parameter or the \"mapping_id\" parameter.","example":[231,"Selling price","type_sales_price"],"items":{"type":"integer"}},"mapping_id":{"type":"integer","description":"Mapping ID. If specified, the result will contain for each asset only the list of attributes used in the mapping. You must use either the \"attribute_list\" parameter or the \"mapping_id\" parameter. Use POST /api/v3/mappings/list/ with class_id to discover available mappings.","example":23},"research":{"type":"array","description":"Array of attribute filters. Each filter has attribute_id, operator, value, and optional link. (Array of objects - see example for structure)","example":[{"attribute_id":1234,"operator":"contains","value":"Prefix_"},{"link":"or","attribute_id":2465,"operator":"contains","value":"Prefix_"}],"items":{"type":"object","properties":{"attribute_id":{"type":"integer","description":"Attribute ID. Use POST /api/v3/attributes/list with class_id to get available attributes.","example":231},"operator":{"type":"string","description":"Search operator: equal/notequal (exact match), contains/notcontains (partial), startby/endby (prefix/suffix), isnull/isnotnull (empty check), greater/atleast/lesser/nomore (numeric comparison), between (range with value2), isinlist/isnotinlist (multiple values).","enum":["equal","notequal","contains","notcontains","startby","endby","notstartby","notendby","isnull","isnotnull","greater","atleast","lesser","nomore","between","isinlist","isnotinlist"],"example":"between"},"value":{"type":"string","description":"Value (only if operator is not \"isnull\" and \"isnotnull\") **⚠️ Required when:** `operator` = `equal` | `notequal` | `contains` | `notcontains` | `startby` | `endby` | `notstartby` | `notendby` | `greater` | `atleast` | `lesser` | `nomore` | `between` | `isinlist` | `isnotinlist`","example":"12345","x-conditional-required":{"operator":["equal","notequal","contains","notcontains","startby","endby","notstartby","notendby","greater","atleast","lesser","nomore","between","isinlist","isnotinlist"]}},"value2":{"type":"string","description":"Second value for range search. Required only when operator is \"between\" **⚠️ Required when:** `operator` = `between`","example":"12346","x-conditional-required":{"operator":["between"]}},"link":{"type":"string","description":"Logical link between filters: \"and\" (all conditions must match) or \"or\" (any condition matches). Default: \"and\".","enum":["and","or"],"example":"and"}},"required":["attribute_id","operator"],"title":"Item"}},"filters":{"type":"object","description":"Filter object with types_id, status_id, creausers, users, workflow_step_id, date filters.","example":{"types_id":[257,258],"time":"2024-12-17T10:30:00Z","workflow_step_id":10},"properties":{"types_id":{"type":"array","description":"List of asset type IDs. Use POST /api/v3/types/list with class_id to get available types.","example":[257,258],"items":{"type":"integer"}},"status_id":{"type":"array","description":"List of asset status IDs. Use POST /api/v3/permissions/statuses/list with class_id to get available statuses.","example":[1287,1288],"items":{"type":"integer"}},"creausers":{"type":"array","description":"List of user IDs who created assets. Use POST /api/v3/permissions/groups/list to get user groups.","example":[1485,1535],"items":{"type":"integer"}},"users":{"type":"array","description":"List of user IDs who last modified assets. Use POST /api/v3/permissions/groups/list to get user groups.","example":[1485,1535],"items":{"type":"integer"}},"workflow_step_id":{"type":"integer","description":"Workflow step ID. Use POST /api/v3/workflows/list/node/ with project_node_id and class_id to get workflows and their steps.","example":10},"creatime":{"type":"string","description":"Minimum creation date of the asset (ISO 8601 format). Used to filter assets created from this date.","example":"2024-12-17T10:30:00Z"},"creatimeend":{"type":"string","description":"Maximum creation date of the asset (ISO 8601 format). Used to filter assets created up to this date.","example":"2024-12-17T23:59:59Z"},"time":{"type":"string","description":"Minimum update date of the asset (ISO 8601 format). Used to filter assets updated from this date.","example":"2024-12-17T10:30:00Z"},"timeend":{"type":"string","description":"Maximum update date of the asset (ISO 8601 format). Used to filter assets updated up to this date.","example":"2024-12-17T23:59:59Z"},"search_find":{"type":"string","description":"Quick search text. Searches across indexed attributes for matching content.","example":"My product label"},"split_find":{"type":"string","description":"Fast search mode: \"all_words\" (all words must be present), \"each_word\" (any word matches), \"exact_expression\" (exact phrase match).","enum":["all_words","each_word","exact_expression"],"example":"each_word"},"alias":{"type":"string","description":"Alias filter: \"only_aliases\" (return only alias nodes), \"except_aliases\" (exclude alias nodes). Default: include all.","enum":["only_aliases","except_aliases"],"example":"except_aliases"}}},"format":{"type":"string","description":"Specifies the format of the returned asset data. Use \"simple\" for standard attribute list format, or \"composed\" for JSON Composed format with recursive data structure and enhanced formatting.","enum":["simple","composed"],"example":"simple"}},"required":["class_id","parent_id","num_page","results_per_page"]}}}}}},"/api/v3/get-asset/by-search/repository/":{"post":{"tags":["get-asset"],"summary":"by-search/repository — Search repository assets by filters","description":"## Purpose\n\nReturns repository assets matching filters with pagination and custom attribute selection.\n\n## Attribute Selection\n\nUse either `attribute_list` (max 10 IDs) OR `mapping_id` for attribute output configuration.\n\n## Format Options\n\n- `simple`: Standard attribute list\n- `composed`: JSON with recursive structure\n\n## Errors\n\n- `2` : `Class ID \"…\" is invalid`\n- `2` : `Parent asset (…) does not exist or has been deleted`\n- `2` : `The parameter \"attribute_list\" must be a list of 10 or less elements.`\n- `2` : `The parameter \"parent_id\" must be filled`\n- `2` : `The parameter \\\"parent_id\\\" must be greater than 0`\n- `2` : and 6 other validation message(s) of the same family\n- `3` : `No results found`\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":"Asset list by search","content":{"application/json":{"schema":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/SuccessEnvelope"},{"type":"object","properties":{"result":{"type":"object","properties":{"results_total":{"type":"integer","example":15,"description":"Number of items"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","example":141560,"description":"Asset ID"},"parent_id":{"type":"integer","nullable":true,"example":466175,"description":"Parent asset ID"},"version_id":{"type":"integer","example":1,"description":"Version ID"},"path":{"type":"string","example":"0/1978/141560","description":"Asset path"},"supertype_id":{"type":"integer","example":7,"description":"Supertype ID"},"supertype_label":{"type":"string","nullable":true,"example":"Products","description":"Supertype label"},"type_id":{"type":"integer","example":291,"description":"Type ID"},"type_code":{"type":"string","example":"housses","description":"Portable type code, stable across environments (the auto-incremented id is not). Empty string if the type has no code."},"type_label":{"type":"string","example":"HOUSSES","description":"Type label"},"workflow_item_id":{"type":"integer","nullable":true,"example":null,"description":"Workflow item ID"},"workflow_item_code":{"type":"string","example":"code_1204","description":"Portable workflow step code (wf_items), unique within its workflow. Empty string if the asset has no workflow step."},"workflow_item_label":{"type":"string","nullable":true,"example":null,"description":"Workflow item label (step/action)"},"creation_date":{"type":"string","example":"2018-09-12T00:00:00+02:00","description":"Creation date (ISO 8601)"},"modification_date":{"type":"string","example":"2025-07-30T00:00:00+02:00","description":"Modification date (ISO 8601)"},"status_id":{"type":"integer","example":1115,"description":"Status ID"},"status_code":{"type":"string","example":"status_validated","description":"Portable status code of the asset, stable across environments (the auto-incremented id is not). NB: distinct from the API envelope return code, also named status_code but located at the root of the response."},"status_label":{"type":"string","nullable":true,"example":"Validated","description":"Status label"},"data":{"type":"object","additionalProperties":true,"example":{"2017":"AAF22DSQ22DQS2","2018":"2804-AAF22DSQ22DQS2"},"description":"Asset data with attribute values"}},"required":["id","type_id","type_code","type_label","creation_date","modification_date","status_id","status_code"]},"description":"List of assets"},"num_page":{"type":"integer","nullable":true,"example":1,"description":"Page number"},"nb_pages":{"type":"integer","nullable":true,"example":15,"description":"Number of pages"},"results_per_page":{"type":"integer","nullable":true,"example":100,"description":"Number of results per page"}},"required":["results_total","items"],"description":"Result list"}}}]},{"$ref":"#/components/schemas/ErrorResponse"}]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"class_id":{"type":"integer","description":"Library ID. Use POST /api/v3/administration/classes/list to get available libraries.","example":4},"parent_id":{"type":"integer","description":"Parent ID of the reference tree in which to search. Set to \"0\" if you want to search in all the repository","example":4350},"num_page":{"type":"integer","description":"Page number for pagination. Use with results_per_page parameter.","example":3},"results_per_page":{"type":"integer","description":"Number of results per page (between 10 and 1000). Must always be provided together with \"num_page\".","example":50},"version_id":{"type":"integer","description":"Version ID. Use POST /api/v3/administration/versions/list with class_id to get available versions.","example":1},"exclude_inherited_values":{"type":"boolean","description":"If it is true, only the direct values of the asset are exported (excludes values that have not been filled directly in the asset : values inherited from a parent, or from the repository in the case of a contextual asset, or calculated values)","example":true},"attribute_list":{"type":"array","description":"If specified, the result will contain for each asset only the list of specified attributes (10 maximum). You must use either the \"attribute_list\" parameter or the \"mapping_id\" parameter.","example":[231,"Selling price","type_sales_price"],"items":{"type":"integer"}},"mapping_id":{"type":"integer","description":"Mapping ID. If specified, the result will contain for each asset only the list of attributes used in the mapping. You must use either the \"attribute_list\" parameter or the \"mapping_id\" parameter. Use POST /api/v3/mappings/list/ with class_id to discover available mappings.","example":23},"research":{"type":"array","description":"Array of attribute filters. Each filter has attribute_id, operator, value, and optional link. (Array of objects - see example for structure)","example":[{"attribute_id":1234,"operator":"contains","value":"Prefix_"},{"link":"or","attribute_id":2465,"operator":"contains","value":"Prefix_"}],"items":{"type":"object","properties":{"attribute_id":{"type":"integer","description":"Attribute ID. Use POST /api/v3/attributes/list with class_id to get available attributes.","example":231},"operator":{"type":"string","description":"Search operator: equal/notequal (exact match), contains/notcontains (partial), startby/endby (prefix/suffix), isnull/isnotnull (empty check), greater/atleast/lesser/nomore (numeric comparison), between (range with value2), isinlist/isnotinlist (multiple values).","enum":["equal","notequal","contains","notcontains","startby","endby","notstartby","notendby","isnull","isnotnull","greater","atleast","lesser","nomore","between","isinlist","isnotinlist"],"example":"between"},"value":{"type":"string","description":"Value (only if operator is not \"isnull\" and \"isnotnull\") **⚠️ Required when:** `operator` = `equal` | `notequal` | `contains` | `notcontains` | `startby` | `endby` | `notstartby` | `notendby` | `greater` | `atleast` | `lesser` | `nomore` | `between` | `isinlist` | `isnotinlist`","example":"12345","x-conditional-required":{"operator":["equal","notequal","contains","notcontains","startby","endby","notstartby","notendby","greater","atleast","lesser","nomore","between","isinlist","isnotinlist"]}},"value2":{"type":"string","description":"Second value for range search. Required only when operator is \"between\" **⚠️ Required when:** `operator` = `between`","example":"12346","x-conditional-required":{"operator":["between"]}},"link":{"type":"string","description":"Logical link between filters: \"and\" (all conditions must match) or \"or\" (any condition matches). Default: \"and\".","enum":["and","or"],"example":"and"}},"required":["attribute_id","operator"],"title":"Item"}},"filters":{"type":"object","description":"Filter object with types_id, status_id, creausers, users, workflow_step_id, date filters.","example":{"types_id":[257,258],"time":"2024-12-17T10:30:00Z","workflow_step_id":10},"properties":{"types_id":{"type":"array","description":"List of asset type IDs. Use POST /api/v3/types/list with class_id to get available types.","example":[257,258],"items":{"type":"integer"}},"status_id":{"type":"array","description":"List of asset status IDs. Use POST /api/v3/permissions/statuses/list with class_id to get available statuses.","example":[1287,1288],"items":{"type":"integer"}},"creausers":{"type":"array","description":"List of user IDs who created assets. Use POST /api/v3/permissions/groups/list to get user groups.","example":[1485,1535],"items":{"type":"integer"}},"users":{"type":"array","description":"List of user IDs who last modified assets. Use POST /api/v3/permissions/groups/list to get user groups.","example":[1485,1535],"items":{"type":"integer"}},"workflow_step_id":{"type":"integer","description":"Workflow step ID. Use POST /api/v3/workflows/list/repository/ with class_id to get workflows and their steps.","example":10},"creatime":{"type":"string","description":"Minimum creation date of the asset (ISO 8601 format). Used to filter assets created from this date.","example":"2024-12-17T10:30:00Z"},"creatimeend":{"type":"string","description":"Maximum creation date of the asset (ISO 8601 format). Used to filter assets created up to this date.","example":"2024-12-17T23:59:59Z"},"time":{"type":"string","description":"Minimum update date of the asset (ISO 8601 format). Used to filter assets updated from this date.","example":"2024-12-17T10:30:00Z"},"timeend":{"type":"string","description":"Maximum update date of the asset (ISO 8601 format). Used to filter assets updated up to this date.","example":"2024-12-17T23:59:59Z"},"search_find":{"type":"string","description":"Quick search text. Searches across indexed attributes for matching content.","example":"My product label"},"split_find":{"type":"string","description":"Fast search mode: \"all_words\" (all words must be present), \"each_word\" (any word matches), \"exact_expression\" (exact phrase match).","enum":["all_words","each_word","exact_expression"],"example":"each_word"}}},"format":{"type":"string","description":"Specifies the format of the returned asset data. Use \"simple\" for standard attribute list format, or \"composed\" for JSON Composed format with recursive data structure and enhanced formatting.","enum":["simple","composed"],"example":"simple"}},"required":["class_id","parent_id","num_page","results_per_page"]}}}}}}},"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"]}}}}