---
updatedAt: 2025-09-24T21:45:24.000Z
agentTools:
  projectIndex: https://docs.quable.com/llms.txt
---

# /assets/{code}

Update an existing asset

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "2d049f10adc518320a4a4ebeb07b64db5b919923",
    "title": "Quable PIM/DAM API v4"
  },
  "paths": {
    "/assets/{code}": {
      "put": {
        "description": "Update an existing asset",
        "tags": [
          "Assets"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssetRow"
                }
              }
            }
          },
          "404": {
            "description": "No asset could be found using the given code"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/code"
          },
          {
            "$ref": "#/components/parameters/target_culture"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AssetPut"
              }
            }
          },
          "required": true
        }
      }
    }
  },
  "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"
        }
      },
      "target_culture": {
        "name": "target_culture",
        "in": "query",
        "description": "**Code of the data locale** into which attribute's values must be retrieved or pushed\nIf empty, default locale from the account will be used.\n",
        "required": false,
        "schema": {
          "type": "string"
        }
      }
    },
    "schemas": {
      "AssetRow": {
        "type": "object",
        "required": [
          "id",
          "code",
          "type",
          "active",
          "fields",
          "documents",
          "variants",
          "links",
          "created_at",
          "updated_at",
          "created_by",
          "updated_by",
          "included"
        ],
        "properties": {
          "id": {
            "type": "integer"
          },
          "code": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "active": {
            "type": "boolean"
          },
          "fields": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "type": "object"
              }
            }
          },
          "documents": {
            "type": "array",
            "items": {
              "properties": {
                "id": {
                  "type": "integer"
                },
                "code": {
                  "type": "string"
                },
                "links": {
                  "type": "array",
                  "items": {
                    "properties": {
                      "rel": {
                        "type": "string"
                      },
                      "href": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "variants": {
            "type": "array",
            "items": {
              "properties": {
                "id": {
                  "type": "integer"
                },
                "code": {
                  "type": "string"
                },
                "links": {
                  "type": "array",
                  "items": {
                    "properties": {
                      "rel": {
                        "type": "string"
                      },
                      "href": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "links": {
            "type": "array",
            "items": {
              "properties": {
                "rel": {
                  "type": "string"
                },
                "href": {
                  "type": "string"
                }
              }
            }
          },
          "created_at": {
            "type": "string",
            "format": "datetime"
          },
          "updated_at": {
            "type": "string",
            "format": "datetime"
          },
          "created_by": {
            "type": "array",
            "items": {
              "properties": {
                "id": {
                  "type": "integer"
                },
                "username": {
                  "type": "string"
                }
              }
            }
          },
          "updated_by": {
            "type": "array",
            "items": {
              "properties": {
                "id": {
                  "type": "integer"
                },
                "username": {
                  "type": "string"
                }
              }
            }
          },
          "included": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DocumentIncludedItem"
            }
          }
        }
      },
      "AssetPut": {
        "type": "object",
        "required": [
          "code"
        ],
        "properties": {
          "active": {
            "type": "boolean"
          },
          "classification_code": {
            "type": "string"
          },
          "code": {
            "type": "string"
          }
        },
        "example": {
          "active": 1,
          "code": "document_blue-jpg",
          "classification_code": "quable_cloth_woman_pictures",
          "name": "Blue pant - Front",
          "media_url": "https://mon-domaine.com/quable_cloth_woman_pictures.jpg"
        }
      },
      "DocumentIncludedItem": {
        "properties": {
          "code": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "values": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EavValueLabel"
            }
          }
        }
      },
      "EavValueLabel": {
        "properties": {
          "code": {
            "type": "integer"
          },
          "label": {
            "type": "string",
            "example": "Quable"
          }
        }
      }
    }
  }
}
```