{"openapi":"3.0.0","info":{"title":"Afineo Webservices API — record-asset","description":"Module `record-asset` of the Afineo API v3 (19 endpoints).\n\nFull asset lifecycle management: create, update, delete, move and copy assets in both repository and project contexts. Also handles file uploads, status changes, type reassignment, and tree operations (move, copy, detach).\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":"record-asset","description":"Full asset lifecycle management: create, update, delete, move and copy assets in both repository and project contexts. Also handles file uploads, status changes, type reassignment, and tree operations (move, copy, detach)."}],"paths":{"/api/v3/record-asset/add-asset-to-project/":{"post":{"tags":["record-asset"],"summary":"add-asset-to-project — Add repository asset to project","description":"## Purpose\n\nCreates a contextualized node from a repository asset in a project. Returns created node_id.\n\n## Errors\n\n- `3` : aborted because this asset already exists in this node\n- `2` : the asset, the node or the parent node does not exist or has been deleted, or the value of `status_id` is invalid\n- `997` : you are not allowed to write on this asset, or the project is not accessible to you\n","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Add asset to project response","content":{"application/json":{"schema":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/SuccessEnvelope"},{"type":"object","properties":{"result":{"type":"object","properties":{"node_id":{"type":"integer","example":4576,"description":"Node ID"}},"required":["node_id"],"description":"Created node ID"}}}]},{"$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},"asset_id":{"type":"integer","description":"Asset ID. Use POST /api/v3/get-asset/by-search/repository to find assets.","example":5684},"parent_node_id":{"type":"integer","description":"Parent node ID. Use POST /api/v3/get-asset/by-search/node to find project nodes.","example":69852},"status_id":{"type":"integer","description":"Status ID. Use POST /api/v3/permissions/statuses/list to get available statuses.","example":102}},"required":["class_id","asset_id","parent_node_id"]}}}}}},"/api/v3/record-asset/available-attributes-creation/":{"post":{"tags":["record-asset"],"summary":"available-attributes-creation — Get available attributes for creation","description":"## Purpose\n\nReturns list of available attributes for a specific type to help build dynamic creation forms.\n\n## Errors\n\n- `3` : no result - no attribute is available for creation on this type\n- `2` : the value of `type_id` is invalid\n","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Attribute list response","content":{"application/json":{"schema":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/SuccessEnvelope"},{"type":"object","properties":{"result":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","example":231,"description":"Attribute ID"},"code":{"type":"string","example":"tradename","description":"Portable attribute code (ROLE_XML), stable across environments (the auto-incremented id is not)"},"label":{"type":"string","example":"Trade Name","description":"Attribute label"},"data_format":{"type":"string","example":"text","description":"Input format of the attribute"}},"required":["id","code","label","data_format"]},"description":"Attributes available when creating an asset of this type"}}}]},{"$ref":"#/components/schemas/ErrorResponse"}]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type_id":{"type":"integer","description":"Asset type ID. Use POST /api/v3/types/list with class_id to get available types.","example":89}},"required":["type_id"]}}}}}},"/api/v3/record-asset/copy-node-in-project/":{"post":{"tags":["record-asset"],"summary":"copy-node-in-project — Copy node in project","description":"## Purpose\n\nDuplicates a node (and children) to a new location within the project. Returns new node_id.\n\n## Errors\n\n- `3` : aborted because this asset already exists in this node\n- `2` : the node, the asset or the parent node does not exist or has been deleted, or the value of `status_id` is invalid\n- `997` : you are not allowed to write on this asset, or the project is not accessible to you\n","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Copy node in project response","content":{"application/json":{"schema":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/SuccessEnvelope"},{"type":"object","properties":{"result":{"type":"object","properties":{"node_id":{"type":"integer","example":4578,"description":"Node ID"}},"required":["node_id"],"description":"Created node ID"}}}]},{"$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},"node_id":{"type":"integer","description":"Node ID. Use POST /api/v3/get-asset/by-search/node to find project nodes.","example":56845},"parent_node_id":{"type":"integer","description":"Parent node ID. Use POST /api/v3/get-asset/by-search/node to find project nodes.","example":69852}},"required":["class_id","node_id","parent_node_id"]}}}}}},"/api/v3/record-asset/create/node/":{"post":{"tags":["record-asset"],"summary":"create/node — Create node in project","description":"## Purpose\n\nCreates a new contextualized node directly in project (not linked to repository).\n\n## Additional Information\n\n### Parameter \"attribute_list_simple\"\n\n#### Updating a simple dropdown list attribute\n\nTo update a **simple** dropdown list attribute, you need to send the element.\nIt is possible to insert either the identifier, the code, or the label — all three options are valid.\n\n```json\n{\"attribute_id\":1113,\"value\":\"1234\"}\n{\"attribute_id\":1113,\"value\":\"OPTION_CODE_4\"}\n{\"attribute_id\":1113,\"value\":\"Option label 2\"}\n```\n\n#### For other attribute types\n\nFor attributes with specific formatting (example: a price), it is possible to send a decimal number separated by either a comma or a dot — both will work.\nFor date attributes, the possible formats are as follows :\n- timestamp\n- ISO 8601 format : 2023-09-14T15:04:00.000Z\n- English format separated by \"-\" (with or without time) : 2017-12-13 or 2017-12-13 15:05:13\n- French format separated by \"-\" or \"/\" (with or without time) : 13-12-2017 or 13/12/2017 or 13-12-2017 15:05:13 or 13/12/2017 15:05:13\n- Timezone format with or without Greenwich time : 2017:12:13 10:15:59+02:00 or 2017:12:13 10:15:59\n\n### Parameter \"attribute_list_multiple\"\n\n**No `synchronization` property on creation.** On `update-datas/*`, `synchronization` chooses between\nappending to the existing values (`false`) and replacing them (`true`). A new asset has no existing\nvalues, so there is nothing to append to or replace : the values you send are simply the values that\nget set. Sending `synchronization` here is rejected as an unknown property.\n\n#### Filling an associated data attribute\n\nTo fill a related data attribute, you need to send an array containing one or more assets id :\n\n```json\n{\"attribute_id\":1113,\"value\":[1111]}\n{\"attribute_id\":1113,\"value\":[2222, 3333, 4444]}\n```\n\nIf you want to add one or more associated assets using the value of an attribute instead of the asset id (as in an import), this is possible using the \"key\" option :\n\n```json\n{\"attribute_id\":1113,\"key\":1284,\"value\":[\"asset\"]}\n{\"attribute_id\":1113,\"key\":1284,\"value\":[\"asset 1\", \"asset 2\"]}\n```\n\n#### Filling a multiple dropdown list attribute\nTo fill a multiple dropdown list attribute, you also need to send an array containing one or more elements.\nIt is possible to insert either the identifier, the code, or the label — all three options are valid.\n\n```json\n{\"attribute_id\":1113,\"value\":[\"Option\"]}\n{\"attribute_id\":1113,\"value\":[1234, \"OPTION_CODE_4\", \"Option label 2\"]}\n```\n\n**Note :** If the code or the label of the desired option (for both simple and multiple dropdown lists) is an integer and corresponds to the identifier of another option in the same list, that option will be taken into account.\n\n## Errors\n\n- `2` : `type_id` or `version_id` is invalid, the parent node does not exist or has been deleted, the version is not allowed in this context, or an attribute value is rejected (format, uniqueness, minimum or maximum length, required on creation, unknown list option, unsupported suffix)\n","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Asset creation node response","content":{"application/json":{"schema":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/SuccessEnvelope"},{"type":"object","properties":{"result":{"type":"object","properties":{"asset_id":{"type":"integer","example":0,"description":"Asset ID"},"node_id":{"type":"integer","example":49324,"description":"Node ID"},"asset_id_duplicate":{"type":"integer","nullable":true,"example":45177,"description":"Asset ID for duplication"}},"required":["asset_id","node_id"],"description":"Return information about the created asset"}}}]},{"$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},"type_id":{"type":"integer","description":"Asset type ID. Use POST /api/v3/types/list with class_id to get available types.","example":89},"parent_id":{"type":"integer","description":"Parent node ID in the project tree. Set to 0 to create the asset at the root of the project. Use POST /api/v3/get-asset/by-search/node with class_id and project_node_id to browse the project tree and find existing parent nodes.","example":4350},"version_id":{"type":"integer","description":"Version ID. Use POST /api/v3/administration/versions/list with class_id to get available versions.","example":1},"attribute_list_simple":{"type":"array","description":"List of attributes to be filled in, only simple attributes. List of properties to apply : \"attribute_id\", \"value\", \"suffix_value\" (optional) (Array of objects - see example for structure)","example":[{"attribute_id":231,"value":"3-seater leather sofa"},{"attribute_id":658,"value":"1234"},{"attribute_id":659,"value":"100","suffix_value":"EUR"}],"items":{"type":"object","properties":{"attribute_id":{"type":"integer","description":"Attribute ID. Use POST /api/v3/attributes/list with class_id to get available attributes."},"value":{"type":"string","description":"Value to set. Format depends on attribute type (text, date, list option ID/code/label)."},"suffix_value":{"type":"string","description":"Suffix value for attributes with dropdown suffix (input, select-items, price). Accepts ID, code, or label."}},"required":["attribute_id","value"],"title":"Item"}},"attribute_list_multiple":{"type":"array","description":"List of attributes to be filled in, only multiple attributes (associated data, dynamic attribute, multiple drop-down list). List of properties to apply : \"attribute_id\", \"value\", \"key\" (optional). There is no \"synchronization\" property on creation : that property only exists on update-datas/* to choose between appending to and replacing existing values, and a new asset has none. The values sent here are the values that get set. (Array of objects - see example for structure)","example":[{"attribute_id":724,"value":["Accessory A"]},{"attribute_id":660,"value":["Label 1"],"key":2749},{"attribute_id":659,"value":[1234,2345,4567]},{"attribute_id":660,"value":["Label 1","Label 2","Label 3"],"key":2749}],"items":{"type":"object","properties":{"attribute_id":{"type":"integer","description":"Attribute ID. Use POST /api/v3/attributes/list with class_id to get available attributes."},"value":{"type":"array","description":"Value to set. Format depends on attribute type (text, date, list option ID/code/label).","items":{"type":"string"}},"key":{"type":"integer","description":"With this property, you can add one or more associated assets using the value of an attribute and not with the asset ID (as with import) - only for associated data attribute"}},"required":["attribute_id","value"],"title":"Item"}}},"required":["class_id","type_id","parent_id"]}}}}}},"/api/v3/record-asset/create/repository/":{"post":{"tags":["record-asset"],"summary":"create/repository — Create asset in repository","description":"## Purpose\n\nCreates a new master data record in repository with initial attribute values.\n\n## Attribute Lists\n\n- `attribute_list_simple`: Simple attributes (text, number, date, single dropdown)\n- `attribute_list_multiple`: Multiple attributes (associated data, dynamic, multiple dropdown)\n\n## Additional Information\n\n### Parameter \"attribute_list_simple\"\n\n#### Updating a simple dropdown list attribute\n\nTo update a **simple** dropdown list attribute, you need to send the element.\nIt is possible to insert either the identifier, the code, or the label — all three options are valid.\n\n```json\n{\"attribute_id\":1113,\"value\":\"1234\"}\n{\"attribute_id\":1113,\"value\":\"OPTION_CODE_4\"}\n{\"attribute_id\":1113,\"value\":\"Option label 2\"}\n```\n\n#### For other attribute types\n\nFor attributes with specific formatting (example: a price), it is possible to send a decimal number separated by either a comma or a dot — both will work.\nFor date attributes, the possible formats are as follows :\n- timestamp\n- ISO 8601 format : 2023-09-14T15:04:00.000Z\n- English format separated by \"-\" (with or without time) : 2017-12-13 or 2017-12-13 15:05:13\n- French format separated by \"-\" or \"/\" (with or without time) : 13-12-2017 or 13/12/2017 or 13-12-2017 15:05:13 or 13/12/2017 15:05:13\n- Timezone format with or without Greenwich time : 2017:12:13 10:15:59+02:00 or 2017:12:13 10:15:59\n\n### Parameter \"attribute_list_multiple\"\n\n**No `synchronization` property on creation.** On `update-datas/*`, `synchronization` chooses between\nappending to the existing values (`false`) and replacing them (`true`). A new asset has no existing\nvalues, so there is nothing to append to or replace : the values you send are simply the values that\nget set. Sending `synchronization` here is rejected as an unknown property.\n\n#### Filling an associated data attribute\n\nTo fill a related data attribute, you need to send an array containing one or more assets id :\n\n```json\n{\"attribute_id\":1113,\"value\":[1111]}\n{\"attribute_id\":1113,\"value\":[2222, 3333, 4444]}\n```\n\nIf you want to add one or more associated assets using the value of an attribute instead of the asset id (as in an import), this is possible using the \"key\" option :\n\n```json\n{\"attribute_id\":1113,\"key\":1284,\"value\":[\"asset\"]}\n{\"attribute_id\":1113,\"key\":1284,\"value\":[\"asset 1\", \"asset 2\"]}\n```\n\n#### Filling a multiple dropdown list attribute\nTo fill a multiple dropdown list attribute, you also need to send an array containing one or more elements.\nIt is possible to insert either the identifier, the code, or the label — all three options are valid.\n\n```json\n{\"attribute_id\":1113,\"value\":[\"Option\"]}\n{\"attribute_id\":1113,\"value\":[1234, \"OPTION_CODE_4\", \"Option label 2\"]}\n```\n\n**Note :** If the code or the label of the desired option (for both simple and multiple dropdown lists) is an integer and corresponds to the identifier of another option in the same list, that option will be taken into account.\n\n## Errors\n\n- `2` : `type_id` or `version_id` is invalid, the parent asset does not exist, the version is not allowed in this context, or an attribute value is rejected (format, uniqueness, minimum or maximum length, required on creation, unknown list option, unsupported suffix)\n","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Asset creation repository response","content":{"application/json":{"schema":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/SuccessEnvelope"},{"type":"object","properties":{"result":{"type":"object","properties":{"asset_id":{"type":"integer","example":43178,"description":"Asset ID"},"node_id":{"type":"integer","example":0,"description":"Node ID"},"asset_id_duplicate":{"type":"integer","nullable":true,"example":45177,"description":"Asset ID for duplication"}},"required":["asset_id","node_id"],"description":"Return information about the created asset"}}}]},{"$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},"type_id":{"type":"integer","description":"Asset type ID. Use POST /api/v3/types/list with class_id to get available types.","example":89},"parent_id":{"type":"integer","description":"Parent node ID in the repository tree. Set to 0 to create the asset at the root of the repository. Use POST /api/v3/get-asset/by-search/repository with class_id and parent_id=0 to browse the repository tree and find existing parent nodes.","example":4350},"version_id":{"type":"integer","description":"Version ID. Use POST /api/v3/administration/versions/list with class_id to get available versions.","example":1},"attribute_list_simple":{"type":"array","description":"List of attributes to be filled in, only simple attributes. List of properties to apply : \"attribute_id\", \"value\", \"suffix_value\" (optional) (Array of objects - see example for structure)","example":[{"attribute_id":231,"value":"3-seater leather sofa"},{"attribute_id":658,"value":"1234"},{"attribute_id":659,"value":"100","suffix_value":"EUR"}],"items":{"type":"object","properties":{"attribute_id":{"type":"integer","description":"Attribute ID. Use POST /api/v3/attributes/list with class_id to get available attributes."},"value":{"type":"string","description":"Value to set. Format depends on attribute type (text, date, list option ID/code/label)."},"suffix_value":{"type":"string","description":"Suffix value for attributes with dropdown suffix (input, select-items, price). Accepts ID, code, or label."}},"required":["attribute_id","value"],"title":"Item"}},"attribute_list_multiple":{"type":"array","description":"List of attributes to be filled in, only multiple attributes (associated data, dynamic attribute, multiple drop-down list). List of properties to apply : \"attribute_id\", \"value\", \"key\" (optional). There is no \"synchronization\" property on creation : that property only exists on update-datas/* to choose between appending to and replacing existing values, and a new asset has none. The values sent here are the values that get set. (Array of objects - see example for structure)","example":[{"attribute_id":724,"value":["Accessory A"]},{"attribute_id":660,"value":["Label 1"],"key":2749},{"attribute_id":659,"value":[1234,2345,4567]},{"attribute_id":660,"value":["Label 1","Label 2","Label 3"],"key":2749}],"items":{"type":"object","properties":{"attribute_id":{"type":"integer","description":"Attribute ID. Use POST /api/v3/attributes/list with class_id to get available attributes."},"value":{"type":"array","description":"Value to set. Format depends on attribute type (text, date, list option ID/code/label).","items":{"type":"string"}},"key":{"type":"integer","description":"With this property, you can add one or more associated assets using the value of an attribute and not with the asset ID (as with import) - only for associated data attribute"}},"required":["attribute_id","value"],"title":"Item"}}},"required":["class_id","type_id","parent_id"]}}}}}},"/api/v3/record-asset/destroy/node/":{"post":{"tags":["record-asset"],"summary":"destroy/node — Delete node and repository asset","description":"## Purpose\n\nIRREVERSIBLY removes both project node AND repository master data with all children. Cascading deletion affects all projects.\n\n⚠️ Extremely destructive - prefer `detach` for targeted removal.\n\n## Errors\n\n- `2` : the node does not exist or has been deleted, or it cannot be destroyed because it is classified elsewhere\n- `997` : you are not allowed to delete this node, or the project is not accessible to you\n","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Destroy node response","content":{"application/json":{"schema":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/SuccessEnvelope"},{"type":"object","properties":{"result":{"type":"array","items":{"type":"object"},"example":[],"description":"Empty array"},"status_message":{"type":"string","example":"Node and all child nodes have been deleted","description":"Status message"}}}]},{"$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":58450},"class_id":{"type":"integer","description":"Library ID. Use POST /api/v3/administration/classes/list to get available libraries.","example":4}},"required":["id","class_id"]}}}}}},"/api/v3/record-asset/destroy/repository/":{"post":{"tags":["record-asset"],"summary":"destroy/repository — Delete repository asset permanently","description":"## Purpose\n\nIRREVERSIBLY removes asset and children from repository. Prefer `detach` for reversible removal.\n\n## Errors\n\n- `2` : the asset does not exist or has been deleted, or it cannot be destroyed because it is classified\n- `997` : you are not allowed to delete this asset\n","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Destroy repository response","content":{"application/json":{"schema":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/SuccessEnvelope"},{"type":"object","properties":{"result":{"type":"array","items":{"type":"object"},"example":[],"description":"Empty array"},"status_message":{"type":"string","example":"Asset and all child assets have been deleted","description":"Status message"}}}]},{"$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":5845},"class_id":{"type":"integer","description":"Library ID. Use POST /api/v3/administration/classes/list to get available libraries.","example":4}},"required":["id","class_id"]}}}}}},"/api/v3/record-asset/detach/node/":{"post":{"tags":["record-asset"],"summary":"detach/node — Detach node from project","description":"## Purpose\n\nRemoves node from project tree without affecting repository. Removing a parent removes automaticaly the children. Repository asset remains intact.\n\n## Errors\n\n- `2` : the node does not exist or has been deleted\n- `997` : you are not allowed to detach this node, or the project is not accessible to you\n","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Detach node response","content":{"application/json":{"schema":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/SuccessEnvelope"},{"type":"object","properties":{"result":{"type":"array","items":{"type":"object"},"example":[],"description":"Empty array"},"status_message":{"type":"string","example":"Node and all child nodes have been detached","description":"Status message"}}}]},{"$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":58450},"class_id":{"type":"integer","description":"Library ID. Use POST /api/v3/administration/classes/list to get available libraries.","example":4}},"required":["id","class_id"]}}}}}},"/api/v3/record-asset/detach/repository/":{"post":{"tags":["record-asset"],"summary":"detach/repository — Detach asset from repository tree","description":"## Purpose\n\nMoves asset and children to Unclassified folder (reversible). Asset remains accessible for reclassification.\n\n## Errors\n\n- `2` : the asset does not exist or has been deleted\n- `997` : you are not allowed to detach this asset\n","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Detach repository response","content":{"application/json":{"schema":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/SuccessEnvelope"},{"type":"object","properties":{"result":{"type":"array","items":{"type":"object"},"example":[],"description":"Empty array"},"status_message":{"type":"string","example":"Asset and all child assets have been detached","description":"Status message"}}}]},{"$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":5845},"class_id":{"type":"integer","description":"Library ID. Use POST /api/v3/administration/classes/list to get available libraries.","example":4}},"required":["id","class_id"]}}}}}},"/api/v3/record-asset/move-asset-in-repository/":{"post":{"tags":["record-asset"],"summary":"move-asset-in-repository — Move an asset to a different parent in the repository hierarchy","description":"## Purpose\n\nMoves an asset (and its children) to a new parent location within the repository hierarchy.\n\nUse `parent_id = 0` to move the asset to the root of the repository.\n\n## Requirements\n\n- **Permission**: The user must have the `cut/move` permission (LCA) on the source asset.\n- **Same library**: The `parent_id` must belong to the same `class_id` as the `asset_id`.\n\n## Common Errors\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| `Asset does not exist or has been deleted` | `asset_id` is invalid or deleted | Verify with POST /api/v3/get-asset/by-search/repository/ |\n| `Parent asset does not exist or has been deleted` | `parent_id` is invalid or deleted (when > 0) | Verify with POST /api/v3/get-asset/by-search/repository/ |\n| `Cannot move an asset into itself` | `asset_id` == `parent_id` | Use a different `parent_id` |\n| `Cannot move an asset into one of its own children` | `parent_id` is a descendant of `asset_id` | Choose a parent that is not a child of the moved asset |\n| `Operation not allowed` | Insufficient LCA permissions | Check user permissions on the source asset |\n\n## Errors\n\n- `2` : the asset does not exist or has been deleted, the asset cannot be moved into itself, or it cannot be moved into one of its own children\n","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Move asset in repository response","content":{"application/json":{"schema":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/SuccessEnvelope"},{"type":"object","properties":{"result":{"type":"object","properties":{"asset_id":{"type":"integer","example":1234,"description":"Asset ID"}},"required":["asset_id"],"description":"The ID of the asset that was successfully moved"}}}]},{"$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},"asset_id":{"type":"integer","description":"Asset ID to move. Use POST /api/v3/get-asset/by-search/repository to find repository assets.","example":1234},"parent_id":{"type":"integer","description":"Destination parent asset ID within the same library. Must belong to the same class_id as asset_id. Use 0 to move to the root of the repository. Use POST /api/v3/get-asset/by-search/repository/ to find valid parent assets.","example":5678}},"required":["class_id","asset_id","parent_id"]}}}}}},"/api/v3/record-asset/move-node-in-project/":{"post":{"tags":["record-asset"],"summary":"move-node-in-project — Move node in project","description":"## Purpose\n\nMoves a node (and children) to a new parent location within the project.\n\n## Errors\n\n- `2` : the node, the asset or the parent node does not exist or has been deleted, or the value of `status_id` is invalid\n- `997` : you are not allowed to write on this asset, or the project is not accessible to you\n","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Move node in project response","content":{"application/json":{"schema":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/SuccessEnvelope"},{"type":"object","properties":{"result":{"type":"object","properties":{"node_id":{"type":"integer","example":4577,"description":"Node ID"}},"required":["node_id"],"description":"Created node ID"}}}]},{"$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},"node_id":{"type":"integer","description":"Node ID. Use POST /api/v3/get-asset/by-search/node to find project nodes.","example":56845},"parent_node_id":{"type":"integer","description":"Parent node ID. Use POST /api/v3/get-asset/by-search/node to find project nodes.","example":69852}},"required":["class_id","node_id","parent_node_id"]}}}}}},"/api/v3/record-asset/repoint/node/":{"post":{"tags":["record-asset"],"summary":"repoint/node — Repoint a node to a different asset","description":"## Purpose\n\nRepoints a node (project position) to a different asset (master record). Useful to correct import mistakes.\n\n## Preserved Data\n\n- Node identity (publications, history, statuses, workflows)\n- All contextual data associated with the node\n- Alias positions (automatically updated)\n\n## Links Processing\n\n- **Non-workspace attributes**: Links updated to point to new asset\n- **Workspace attributes** (scope=5): Links deleted (workspace data not transferred)\n\n## Constraints\n\n- **Duplicate prevention**: Blocked if sibling node already references target asset\n- **Cascade to aliases**: All alias positions automatically updated\n- **Workspace data**: Cleanup processed if no other nodes reference old asset\n- **Indexation**: Automatic reindexation triggered\n\n## Errors\n\n- `2` : the node or the target asset does not exist or has been deleted, the asset ID could not be read from the node, or the asset already exists in this node (duplicate prevented)\n","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Node repoint response","content":{"application/json":{"schema":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/SuccessEnvelope"},{"type":"object","properties":{"result":{"type":"object","properties":{"node_id":{"type":"integer","example":12345,"description":"Node ID that was repointed"},"old_asset_id":{"type":"integer","example":54321,"description":"Previous asset ID"},"new_asset_id":{"type":"integer","example":67890,"description":"New asset ID"},"aliases_updated":{"type":"integer","example":2,"description":"Number of alias positions updated"},"links_updated":{"type":"integer","example":15,"description":"Number of non-workspace links updated"},"workspace_links_deleted":{"type":"integer","example":3,"description":"Number of workspace links deleted"},"workspace_id":{"type":"integer","example":789,"description":"Workspace ID"}},"required":["node_id","old_asset_id","new_asset_id","aliases_updated","links_updated","workspace_links_deleted","workspace_id"],"description":"Details of the repoint operation"}}}]},{"$ref":"#/components/schemas/ErrorResponse"}]}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"node_id":{"type":"integer","description":"Node ID (position in project) to repoint. Use POST /api/v3/get-asset/by-search/node to find nodes.","example":12345},"asset_id":{"type":"integer","description":"Target asset ID (referential). Use POST /api/v3/get-asset/by-search/repository to find assets.","example":67890},"class_id":{"type":"integer","description":"Library ID. Use POST /api/v3/administration/classes/list to get available libraries.","example":4}},"required":["node_id","asset_id","class_id"]}}}}}},"/api/v3/record-asset/update-datas/node/":{"post":{"tags":["record-asset"],"summary":"update-datas/node — Update project node attributes","description":"## Purpose\n\nUpdates project-specific attribute values (simple and multiple types) for an existing node. Creates contextualized overrides without affecting repository master data. Use for catalog or publication-specific adaptations.\n\n## When to Use\n\n- Use `/node/` to update project-specific overrides (does not affect master data). Use `/repository/` variant to update master data that propagates to all projects.\n- Use POST /api/v3/attributes/list with class_id to discover available attributes and their types (simple vs multiple)\n- Use POST /api/v3/get-asset/by-search/node with class_id and parent_id to find node IDs to update\n\n## Requirements\n\n- **Node existence**: Node ID must exist and not be deleted\n- **Library context**: Valid class_id must be provided\n\n⚠️ Project node updates do not affect repository master data.\n\n⚠️ In the users library (class_id 99), the attribute \"Type\" (attribute_id 344), which holds the user profile (administrator, project manager, guest), cannot be updated, except by a superadministrator. It remains editable from the interface.\n\n---\n\n## Simple Attributes (`attribute_list_simple`)\n\nFor: Text, number, date, simple dropdown list, and other single-value attributes.\n\n| Property | Required | Description |\n|----------|----------|-------------|\n| `attribute_id` | ✅ | Attribute identifier |\n| `value` | ✅ | Value to set (empty string to clear) |\n| `version_id` | ❌ | Target language version (default if not specified) |\n\n### Simple Dropdown Lists\n\nPass element identifier, code, or label. All three formats are accepted.\n\n```json\n{\"attribute_id\":1113,\"value\":\"1234\"}\n{\"attribute_id\":1113,\"value\":\"OPTION_CODE_4\"}\n{\"attribute_id\":1113,\"value\":\"Red color\"}\n```\n\n### Date Formats\n\nSupported formats:\n- Timestamp: `1694704440`\n- ISO 8601: `2023-09-14T15:04:00.000Z`\n- English (YYYY-MM-DD): `2017-12-13` or `2017-12-13 15:05:13`\n- European (DD-MM-YYYY or DD/MM/YYYY): `13-12-2017` or `13/12/2017 15:05:13`\n- Timezone format: `2017:12:13 10:15:59+02:00`\n\n### Numeric Attributes\n\nDecimal separator: comma or dot accepted (e.g., `12.99` or `12,99`).\n\n### Clearing Values\n\nSet `value` to empty string to clear attribute value:\n\n```json\n{\"attribute_id\":1113,\"value\":\"\"}\n```\n\n---\n\n## Multiple Attributes (`attribute_list_multiple`)\n\nFor: Associated data, dynamic attributes, and multiple dropdown lists.\n\n| Property | Required | Description |\n|----------|----------|-------------|\n| `attribute_id` | ✅ | Attribute identifier |\n| `value` | ✅ | Array of values. Empty array clears the attribute in sync mode, does nothing in add mode |\n| `synchronization` | ✅ | `false` = add mode, `true` = sync mode |\n| `key` | ❌ | Attribute ID to use as lookup key (associated data only) |\n| `version_id` | ❌ | Target language version (default if not specified) |\n\n### Associated Data\n\nPass array of asset IDs:\n\n```json\n{\"attribute_id\":724,\"value\":[1111],\"synchronization\":false}\n{\"attribute_id\":724,\"value\":[2222, 3333, 4444],\"synchronization\":true}\n```\n\n**Synchronization modes**:\n- `false` (Add mode): Appends values without removing existing ones\n- `true` (Sync mode): Removes values not in array, adds missing ones, preserves matching ones\n\n**Using attribute values as keys** (import-style lookup):\n\n```json\n{\"attribute_id\":724,\"key\":1284,\"value\":[\"SKU-12345\"],\"synchronization\":true}\n{\"attribute_id\":724,\"key\":1284,\"value\":[\"Product A\", \"Product B\"],\"synchronization\":false}\n```\n\n### Multiple Dropdown Lists\n\nPass array of identifiers, codes, or labels:\n\n```json\n{\"attribute_id\":1113,\"value\":[\"Red\"],\"synchronization\":true}\n{\"attribute_id\":1113,\"value\":[1234, \"OPTION_CODE_4\", \"Blue color\"],\"synchronization\":false}\n```\n\n⚠️ If a code or label is numeric and matches another option ID, the ID match takes precedence.\n\n---\n\n## Example\n\n```json\n{\n  \"id\": 58450,\n  \"class_id\": 4,\n  \"attribute_list_simple\": [\n    {\"attribute_id\": 231, \"value\": \"3-seater sofa\"},\n    {\"attribute_id\": 1234, \"value\": \"\"},\n    {\"attribute_id\": 658, \"value\": \"Red leather\", \"version_id\": 2},\n    {\"attribute_id\": 658, \"value\": \"Cuir rouge\", \"version_id\": 1}\n  ],\n  \"attribute_list_multiple\": [\n    {\"attribute_id\": 724, \"value\": [\"Red\", \"Black\"], \"synchronization\": true},\n    {\"attribute_id\": 660, \"value\": [\"Chair legs\"], \"synchronization\": false, \"key\": 2749},\n    {\"attribute_id\": 659, \"value\": [1234, 2345], \"synchronization\": false, \"version_id\": 2}\n  ]\n}\n```\n\n## Errors\n\n- `2` : the node does not exist or has been deleted, neither `attribute_list_simple` nor `attribute_list_multiple` is filled, or an attribute value is rejected (format, uniqueness, minimum or maximum length, unknown list option, invalid version), or the attribute cannot be updated by webservice\n","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Update datas asset node response","content":{"application/json":{"schema":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/SuccessEnvelope"},{"type":"object","properties":{"result":{"type":"array","items":{"type":"object"},"example":[],"description":"Empty array"}}}]},{"$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":58450},"class_id":{"type":"integer","description":"Library ID. Use POST /api/v3/administration/classes/list to get available libraries.","example":4},"attribute_list_simple":{"type":"array","description":"Simple attributes (text, number, date, single dropdown). Pass same attribute_id multiple times with different version_id to update multiple languages. (Array of objects - see example for structure)","example":[{"attribute_id":231,"value":"3-seater sofa"},{"attribute_id":1234,"value":""},{"attribute_id":658,"value":"Red leather","version_id":2},{"attribute_id":658,"value":"Cuir rouge","version_id":1},{"attribute_id":658,"value":"Cuero rojo","version_id":3},{"attribute_id":659,"value":"100","suffix_value":"EUR"}],"items":{"type":"object","properties":{"attribute_id":{"type":"integer","description":"Attribute ID. Use POST /api/v3/attributes/list with class_id to get available attributes."},"value":{"type":"string","description":"Value to set. Format depends on attribute type. Empty string clears the value."},"version_id":{"type":"integer","description":"Version ID for multilingual data. Use POST /api/v3/administration/versions/list."},"suffix_value":{"type":"string","description":"Suffix value for attributes with dropdown suffix (input, select-items, price). Accepts ID, code, or label."}},"required":["attribute_id","value"],"title":"Item"}},"attribute_list_multiple":{"type":"array","description":"Multiple attributes (associated data, multiple dropdown). Pass same attribute_id multiple times with different version_id to update multiple languages. (Array of objects - see example for structure)","example":[{"attribute_id":724,"value":["Red","Black"],"synchronization":true},{"attribute_id":660,"value":["Chair legs"],"synchronization":false,"key":2749},{"attribute_id":659,"value":[1234,2345,4567],"synchronization":false,"version_id":2}],"items":{"type":"object","properties":{"attribute_id":{"type":"integer","description":"Attribute ID. Use POST /api/v3/attributes/list with class_id to get available attributes."},"value":{"type":"array","description":"Array of values. Empty array clears the attribute in sync mode, does nothing in add mode","items":{"type":"string"}},"synchronization":{"type":"boolean","description":"false = add mode, true = sync mode (remove unlisted, add missing)"},"key":{"type":"integer","description":"Attribute ID to use as lookup key (associated data only)"},"version_id":{"type":"integer","description":"Version ID. Use POST /api/v3/administration/versions/list with class_id. Default if omitted"}},"required":["attribute_id","value","synchronization"],"title":"Item"}}},"required":["id","class_id"]}}}}}},"/api/v3/record-asset/update-datas/repository/":{"post":{"tags":["record-asset"],"summary":"update-datas/repository — Update repository asset attributes","description":"## Purpose\n\nUpdates attribute values (simple and multiple types) of an existing asset in the **repository** (master data). Changes propagate to all projects where the asset is used, unless a local override exists.\n\n## When to Use\n\n- Use `/repository/` to update master data (affects all projects). Use `/node/` variant to update project-specific overrides without affecting master data.\n- Use POST /api/v3/attributes/list with class_id to discover available attributes and their types (simple vs multiple)\n- Use POST /api/v3/get-asset/by-search/repository to find asset IDs to update\n\n## Requirements\n\n- **Asset existence**: Asset ID must exist and not be deleted\n- **Library context**: Valid class_id must be provided\n\n⚠️ Repository updates propagate to all projects unless local overrides exist.\n\n⚠️ In the users library (class_id 99), the attribute \"Type\" (attribute_id 344), which holds the user profile (administrator, project manager, guest), cannot be updated, except by a superadministrator. It remains editable from the interface.\n\n---\n\n## Simple Attributes (`attribute_list_simple`)\n\nFor: Text, number, date, simple dropdown list, and other single-value attributes.\n\n| Property | Required | Description |\n|----------|----------|-------------|\n| `attribute_id` | ✅ | Attribute identifier |\n| `value` | ✅ | Value to set (empty string to clear) |\n| `version_id` | ❌ | Target language version (default if not specified) |\n\n### Simple Dropdown Lists\n\nPass element identifier, code, or label. All three formats are accepted.\n\n```json\n{\"attribute_id\":1113,\"value\":\"1234\"}\n{\"attribute_id\":1113,\"value\":\"OPTION_CODE_4\"}\n{\"attribute_id\":1113,\"value\":\"Red color\"}\n```\n\n### Date Formats\n\nSupported formats:\n- Timestamp: `1694704440`\n- ISO 8601: `2023-09-14T15:04:00.000Z`\n- English (YYYY-MM-DD): `2017-12-13` or `2017-12-13 15:05:13`\n- European (DD-MM-YYYY or DD/MM/YYYY): `13-12-2017` or `13/12/2017 15:05:13`\n- Timezone format: `2017:12:13 10:15:59+02:00`\n\n### Numeric Attributes\n\nDecimal separator: comma or dot accepted (e.g., `12.99` or `12,99`).\n\n### Clearing Values\n\nSet `value` to empty string to clear attribute value:\n\n```json\n{\"attribute_id\":1113,\"value\":\"\"}\n```\n\n---\n\n## Multiple Attributes (`attribute_list_multiple`)\n\nFor: Associated data, dynamic attributes, and multiple dropdown lists.\n\n| Property | Required | Description |\n|----------|----------|-------------|\n| `attribute_id` | ✅ | Attribute identifier |\n| `value` | ✅ | Array of values. Empty array clears the attribute in sync mode, does nothing in add mode |\n| `synchronization` | ✅ | `false` = add mode, `true` = sync mode |\n| `key` | ❌ | Attribute ID to use as lookup key (associated data only) |\n| `version_id` | ❌ | Target language version (default if not specified) |\n\n### Associated Data\n\nPass array of asset IDs:\n\n```json\n{\"attribute_id\":724,\"value\":[1111],\"synchronization\":false}\n{\"attribute_id\":724,\"value\":[2222, 3333, 4444],\"synchronization\":true}\n```\n\n**Synchronization modes**:\n- `false` (Add mode): Appends values without removing existing ones\n- `true` (Sync mode): Removes values not in array, adds missing ones, preserves matching ones\n\n**Using attribute values as keys** (import-style lookup):\n\n```json\n{\"attribute_id\":724,\"key\":1284,\"value\":[\"SKU-12345\"],\"synchronization\":true}\n{\"attribute_id\":724,\"key\":1284,\"value\":[\"Product A\", \"Product B\"],\"synchronization\":false}\n```\n\n### Multiple Dropdown Lists\n\nPass array of identifiers, codes, or labels:\n\n```json\n{\"attribute_id\":1113,\"value\":[\"Red\"],\"synchronization\":true}\n{\"attribute_id\":1113,\"value\":[1234, \"OPTION_CODE_4\", \"Blue color\"],\"synchronization\":false}\n```\n\n⚠️ If a code or label is numeric and matches another option ID, the ID match takes precedence.\n\n---\n\n## Example\n\n```json\n{\n  \"id\": 5845,\n  \"class_id\": 4,\n  \"attribute_list_simple\": [\n    {\"attribute_id\": 231, \"value\": \"3-seater sofa\"},\n    {\"attribute_id\": 1234, \"value\": \"\"},\n    {\"attribute_id\": 658, \"value\": \"Red leather\", \"version_id\": 2},\n    {\"attribute_id\": 658, \"value\": \"Cuir rouge\", \"version_id\": 1}\n  ],\n  \"attribute_list_multiple\": [\n    {\"attribute_id\": 724, \"value\": [\"Red\", \"Black\"], \"synchronization\": true},\n    {\"attribute_id\": 660, \"value\": [\"Chair legs\"], \"synchronization\": false, \"key\": 2749},\n    {\"attribute_id\": 659, \"value\": [1234, 2345], \"synchronization\": false, \"version_id\": 2}\n  ]\n}\n```\n\n## Errors\n\n- `2` : the asset does not exist or has been deleted, neither `attribute_list_simple` nor `attribute_list_multiple` is filled, or an attribute value is rejected (format, uniqueness, minimum or maximum length, unknown list option, invalid version), or the attribute cannot be updated by webservice\n","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Asset data update response","content":{"application/json":{"schema":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/SuccessEnvelope"},{"type":"object","properties":{"result":{"type":"array","items":{"type":"object"},"example":[],"description":"Empty array"}}}]},{"$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":5845},"class_id":{"type":"integer","description":"Library ID. Use POST /api/v3/administration/classes/list to get available libraries.","example":4},"attribute_list_simple":{"type":"array","description":"Simple attributes (text, number, date, single dropdown). Pass same attribute_id multiple times with different version_id to update multiple languages. (Array of objects - see example for structure)","example":[{"attribute_id":231,"value":"3-seater sofa"},{"attribute_id":1234,"value":""},{"attribute_id":658,"value":"Red leather","version_id":2},{"attribute_id":658,"value":"Cuir rouge","version_id":1},{"attribute_id":658,"value":"Cuero rojo","version_id":3},{"attribute_id":659,"value":"100","suffix_value":"EUR"}],"items":{"type":"object","properties":{"attribute_id":{"type":"integer","description":"Attribute ID. Use POST /api/v3/attributes/list with class_id to get available attributes."},"value":{"type":"string","description":"Value to set. Format depends on attribute type. Empty string clears the value."},"version_id":{"type":"integer","description":"Version ID for multilingual data. Use POST /api/v3/administration/versions/list."},"suffix_value":{"type":"string","description":"Suffix value for attributes with dropdown suffix (input, select-items, price). Accepts ID, code, or label."}},"required":["attribute_id","value"],"title":"Item"}},"attribute_list_multiple":{"type":"array","description":"Multiple attributes (associated data, multiple dropdown). Pass same attribute_id multiple times with different version_id to update multiple languages. (Array of objects - see example for structure)","example":[{"attribute_id":724,"value":["Red","Black"],"synchronization":true},{"attribute_id":660,"value":["Chair legs"],"synchronization":false,"key":2749},{"attribute_id":659,"value":[1234,2345,4567],"synchronization":false,"version_id":2}],"items":{"type":"object","properties":{"attribute_id":{"type":"integer","description":"Attribute ID. Use POST /api/v3/attributes/list with class_id to get available attributes."},"value":{"type":"array","description":"Array of values. Empty array clears the attribute in sync mode, does nothing in add mode","items":{"type":"string"}},"synchronization":{"type":"boolean","description":"false = add mode, true = sync mode (remove unlisted, add missing)"},"key":{"type":"integer","description":"Attribute ID to use as lookup key (associated data only)"},"version_id":{"type":"integer","description":"Version ID. Use POST /api/v3/administration/versions/list with class_id. Default if omitted"}},"required":["attribute_id","value","synchronization"],"title":"Item"}}},"required":["id","class_id"]}}}}}},"/api/v3/record-asset/update-status/node/":{"post":{"tags":["record-asset"],"summary":"update-status/node — Update project node status","description":"## Purpose\n\nUpdates workflow status (LCA) of a project node. Optionally propagate to repository asset.\n\n## Errors\n\n- `2` : the node does not exist or has been deleted, the value of `status_id` is invalid, or the asset already has this status\n","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Update status node response","content":{"application/json":{"schema":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/SuccessEnvelope"},{"type":"object","properties":{"result":{"type":"array","items":{"type":"object"},"example":[],"description":"Empty array"}}}]},{"$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":5684},"class_id":{"type":"integer","description":"Library ID. Use POST /api/v3/administration/classes/list to get available libraries.","example":4},"status_id":{"type":"integer","description":"Status ID. Use POST /api/v3/permissions/statuses/list to get available statuses.","example":102},"force_propagation_asset":{"type":"boolean","description":"If set to true, the status will be propagated to the repository asset","example":true}},"required":["id","class_id","status_id"]}}}}}},"/api/v3/record-asset/update-status/repository/":{"post":{"tags":["record-asset"],"summary":"update-status/repository — Update repository asset status","description":"## Purpose\n\nUpdates workflow status (LCA) of a repository asset. Changes propagate to all projects unless overridden.\n\n## Errors\n\n- `2` : the asset does not exist or has been deleted, the value of `status_id` is invalid, or the asset already has this status\n","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Update status repository response","content":{"application/json":{"schema":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/SuccessEnvelope"},{"type":"object","properties":{"result":{"type":"array","items":{"type":"object"},"example":[],"description":"Empty array"}}}]},{"$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":5684},"class_id":{"type":"integer","description":"Library ID. Use POST /api/v3/administration/classes/list to get available libraries.","example":4},"status_id":{"type":"integer","description":"Status ID. Use POST /api/v3/permissions/statuses/list to get available statuses.","example":102}},"required":["id","class_id","status_id"]}}}}}},"/api/v3/record-asset/update-type/":{"post":{"tags":["record-asset"],"summary":"update-type — Change asset type","description":"## Purpose\n\nReclassifies asset to a different type within the same class.\n\n## Errors\n\n- `2` : the asset does not exist or has been deleted, the value of `type_id` is invalid, or the asset already has this type\n","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Update type response","content":{"application/json":{"schema":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/SuccessEnvelope"},{"type":"object","properties":{"result":{"type":"array","items":{"type":"object"},"example":[],"description":"Empty array"}}}]},{"$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":5684},"class_id":{"type":"integer","description":"Library ID. Use POST /api/v3/administration/classes/list to get available libraries.","example":4},"type_id":{"type":"integer","description":"Asset type ID. Use POST /api/v3/types/list with class_id to get available types.","example":89}},"required":["id","class_id","type_id"]}}}}}},"/api/v3/record-asset/upload-file/node/":{"post":{"tags":["record-asset"],"summary":"upload-file/node — Upload file to project node","description":"## Purpose\n\nAttaches a physical file to a project-specific node. File exists only in this project context.\n\n## Content-Type\n\n**Important**: The request must be sent as `multipart/form-data`. The `file` field must include a `filename` with a valid extension (e.g. `filename=\"image.jpg\"`). The file extension is used to validate the file type against the allowed extensions configured for your application. Sending the file as raw binary without a filename will result in a \"This type of file is not allowed\" error.\n\n## Example with curl\n\n```bash\ncurl -X POST \"https://{instance}.afineo.io/api/v3/record-asset/upload-file/node/\" \\\n  -H \"Authorization: Bearer YOUR_TOKEN\" \\\n  --form 'id=\"5684\"' \\\n  --form 'class_id=\"4\"' \\\n  --form 'file=@\"/path/to/image.jpg\"'\n```\n\n## Errors\n\n- `3` : no action done\n- `2` : no file uploaded (use `multipart/form-data` with a `file` field), the node does not exist or has been deleted, the upload failed, or the file is rejected because its type is not allowed\n","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Upload file node response","content":{"application/json":{"schema":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/SuccessEnvelope"},{"type":"object","properties":{"result":{"type":"array","items":{"type":"object"},"example":[],"description":"Empty array"},"status_message":{"type":"string","example":"Update done","description":"Status message"}}}]},{"$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":5684},"class_id":{"type":"integer","description":"Library ID. Use POST /api/v3/administration/classes/list to get available libraries.","example":4},"file":{"type":"string","format":"binary","description":"The file to upload. Must be sent as multipart/form-data with a filename including a valid extension (e.g. image.jpg). The extension is checked against the allowed file types configured for your application.","example":"image.jpg"}},"required":["id","class_id"]}}}}}},"/api/v3/record-asset/upload-file/repository/":{"post":{"tags":["record-asset"],"summary":"upload-file/repository — Upload file to repository asset","description":"## Purpose\n\nAttaches a physical file to a repository asset. File becomes available for all projects.\n\n## Content-Type\n\n**Important**: The request must be sent as `multipart/form-data`. The `file` field must include a `filename` with a valid extension (e.g. `filename=\"image.jpg\"`). The file extension is used to validate the file type against the allowed extensions configured for your application. Sending the file as raw binary without a filename will result in a \"This type of file is not allowed\" error.\n\n## Example with curl\n\n```bash\ncurl -X POST \"https://{instance}.afineo.io/api/v3/record-asset/upload-file/repository/\" \\\n  -H \"Authorization: Bearer YOUR_TOKEN\" \\\n  --form 'id=\"5684\"' \\\n  --form 'class_id=\"4\"' \\\n  --form 'file=@\"/path/to/image.jpg\"'\n```\n\n## Errors\n\n- `3` : no action done\n- `2` : no file uploaded (use `multipart/form-data` with a `file` field), the asset does not exist or has been deleted, the upload failed, or the file is rejected because its type is not allowed\n","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Upload file repository response","content":{"application/json":{"schema":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/SuccessEnvelope"},{"type":"object","properties":{"result":{"type":"array","items":{"type":"object"},"example":[],"description":"Empty array"},"status_message":{"type":"string","example":"Creation done","description":"Status message"}}}]},{"$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":5684},"class_id":{"type":"integer","description":"Library ID. Use POST /api/v3/administration/classes/list to get available libraries.","example":4},"file":{"type":"string","format":"binary","description":"The file to upload. Must be sent as multipart/form-data with a filename including a valid extension (e.g. image.jpg). The extension is checked against the allowed file types configured for your application.","example":"image.jpg"}},"required":["id","class_id"]}}}}}}},"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"]}}}}