Skip to main content
PUT
/
bundles
/
{bundle_id}
Update bundle
curl --request PUT \
  --url https://api.truust.io/2.0/bundles/{bundle_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "New product name",
  "value": 10
}
'
{
  "id": 123,
  "self": "<string>",
  "name": "<string>",
  "description": "<string>",
  "value": 123,
  "value_shipping": 123,
  "currency": "EUR",
  "amount": "<string>",
  "amount_shipping": "<string>",
  "buyer_link": "<string>",
  "images": [
    "<string>"
  ],
  "expiration": "2023-11-07T05:31:56Z",
  "expiration_unit": 123,
  "expiration_amount": 123,
  "is_expired": true,
  "is_active": true,
  "is_shippable": true,
  "tag": "<string>",
  "visits": 123,
  "metadata": {},
  "created_by": 123,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "qr_link": "<string>",
  "connections": {}
}

Authorizations

Authorization
string
header
required

Use your account's Secret Key as the Bearer token.

Path Parameters

bundle_id
string
required

Bundle ID.

Body

application/json
name
string
Maximum string length: 120
Example:

"New product name"

description
string
Maximum string length: 255
value
number<float>
Required range: x >= 0
Example:

10

is_active
boolean
is_shippable
boolean
value_shipping
number<float>

Required if is_shippable is true.

Required range: x >= 0
tag
string
Maximum string length: 50
metadata
object
images
string[]
expiration
string<date-time>
expiration_unit
number
expiration_amount
number

Response

Updated bundle

id
integer
self
string
name
string
description
string | null
value
number
value_shipping
number | null
currency
string
Example:

"EUR"

amount
string | null

Formatted price with currency symbol.

amount_shipping
string | null
images
string[] | null
expiration
string<date-time> | null
expiration_unit
number | null
expiration_amount
number | null
is_expired
boolean
is_active
boolean
is_shippable
boolean
tag
string | null
visits
integer | null
metadata
object
created_by
integer | null
created_at
string<date-time> | null
updated_at
string<date-time> | null
connections
object

Hypermedia links to related resources.