---
title: "Partial update of bag information (this only supports a few fields)"
method: PATCH
path: "/stores/{store_name}/bags/{bag_name}/meta"
tags: ["basic"]
---

# Partial update of bag information (this only supports a few fields)

`PATCH /stores/{store_name}/bags/{bag_name}/meta`

## Request

- Base URL: `/api/v0` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/v0/stores/{store_name}/bags/{bag_name}/meta`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/amz-racing/apis/rosbag-bazaar-api/docs/stores/:store_name/bags/:bag_name/meta/patch.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `store_name` string, required
- `bag_name` string, required

## Query parameters

- `trigger` string

## Request body

- object

## Response `200`

Returns the full information about the bag

- BagDetailed
  - `detail_type` string, required
  - `name` string, required
  - `store_data` object, required: Data that is specific to the bag store type.
  - `discovered` string, date-time, required: Date and time this bag was discovered.
  - `extraction_failure` boolean: True if the extraction failed
  - `in_trash` boolean: True if the bag is in the trash bin.
  - `is_extracted` boolean, required: True if data is extracted from this bag.
  - `meta_available` boolean, required: True if meta data is known for this bag.
  - `size` integer: Size of the bag in bytes.
  - `start_time` string, date-time: Start time of this bag.
  - `end_time` string, date-time: Start time of this bag.
  - `duration` number: duration of this bag in seconds.
  - `messages` integer: Number of messages in this bag.
  - `tags` Tag[]
    - `tag` string, required
    - `color` string, required
  - `topics` Topic[], required
    - `name` string, required: Name of the topic
    - `msg_type` string, required: Message type of the topic
    - `msg_type_hash` string, required: Hash identifier of the message type
    - `msg_definition` string: Definition of custom messages.
    - `msg_count` integer, required: Number of messages in this topic.
    - `avg_frequency` number, float, required: Average publishing frequency
  - `products` Product[], required
    - `uid` string, required
    - `plugin` string, required: Plugin that created this product
    - `product_type` string, required: Type of product
    - `product_data` object, required: Product data
    - `created` string, date-time, required: Date and time this product was created.
    - `title` string: Some descriptive title
    - `configuration_tag` string: Tag of the configuration file that generated this product
    - `configuration_rule` string: Name of the rule that generated this product
    - `topics` TopicMapping[], required
      - `original_topic` string, required: The name of the original topic
      - `plugin_topic` string, required: Plugin topic name
    - `files` ProductFile[], required
      - `key` string: Key that links the file to the product
      - `file` FileSummary
        - `detail_type` string, required
        - `store_name` string, required: Name of the file store
        - `uid` integer: Unique file id
        - `name` string, required: Name of the file
        - `link` string
  - `comment` string, required: Manual comment on the bag.

## Other responses

- `400`: General error

---

[API](https://skmtc.dev/amz-racing/apis/rosbag-bazaar-api.md) - [All operations](https://skmtc.dev/amz-racing/apis/rosbag-bazaar-api/llms.txt) - [OpenAPI document](https://skmtc.dev/amz-racing/apis/rosbag-bazaar-api/revisions/9167cc5a1f11?raw)
