---
updatedAt: 2025-10-01T13:24:58.000Z
agentTools:
  projectIndex: https://docs.quable.com/v5-EN/llms.txt
---

# /classifications/{code}/links/{link_type_code}

Replace or add Links for a Classification and a specific LinkType

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "2d049f10adc518320a4a4ebeb07b64db5b919923",
    "title": "Quable PIM/DAM API v4"
  },
  "paths": {
    "/classifications/{code}/links/{link_type_code}": {
      "post": {
        "description": "Replace or add Links for a Classification and a specific LinkType",
        "tags": [
          "Classifications",
          "Links"
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "code",
                    "location",
                    "success"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "code": {
                      "type": "string"
                    },
                    "location": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "- Classification not found\n- LinkType not found\n",
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "success"
                  ],
                  "properties": {
                    "success": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/code"
          },
          {
            "name": "link_type_code",
            "in": "path",
            "description": "Code of the LinkType",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/DocumentLinksPost"
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://instance_name.quable.com/api_1.php"
    }
  ],
  "components": {
    "parameters": {
      "code": {
        "name": "code",
        "in": "path",
        "description": "Code of the element to retrieve",
        "required": true,
        "schema": {
          "type": "string"
        }
      }
    },
    "requestBodies": {
      "DocumentLinksPost": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/DocumentLinksPost"
            }
          }
        },
        "required": true
      }
    },
    "schemas": {
      "DocumentLinksPost": {
        "type": "object",
        "required": [
          "mode",
          "items"
        ],
        "properties": {
          "mode": {
            "type": "string",
            "description": "You must choose one of the following two behaviors:\nupdate - Add the supplied elements to the parent document's existing links on the given link type.\nreplace - Replace all of the parent document's existing links on the given link type.\n"
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        },
        "example": {
          "mode": "replace",
          "items": [
            {
              "sequence": 1,
              "target_code": "blue_suede_shoe"
            },
            {
              "sequence": 2,
              "target_code": "red_suede_shoe"
            }
          ]
        }
      }
    }
  }
}
```