---
title: "Create/update bag information"
method: PUT
path: "/stores/{store_name}/bags/{bag_name}/meta"
tags: ["basic"]
---

# Create/update bag information

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

## Path parameters

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

## Query parameters

- `trigger` string

## Request body

- 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.

## Response `200`

Returns the full information about the bag

## Other responses

- `400` — General error

---

[API](https://skmtc.net/amz-racing/apis/rosbag-bazaar-api.md) · [All operations](https://skmtc.net/amz-racing/apis/rosbag-bazaar-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/amz-racing/rosbag-bazaar-api/revisions/9167cc5a1f11/schema)
