PUT
/
data-assets
/
{id}
curl --request PUT \
  --url https://api.gateway.tech/data-assets/{id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "acl": "<string>",
  "expiration_date": "<string>"
}'
{
  "acl": [
    {
      "address": "<string>",
      "created_at": "<string>",
      "data_asset_id": 123,
      "is_authority": true,
      "roles": [
        "<string>"
      ],
      "solana_address": "<string>",
      "updated_at": "<string>"
    }
  ],
  "created_at": "<string>",
  "created_by": "<string>",
  "data_model_id": 123,
  "expiration_date": "<string>",
  "fid": "<string>",
  "id": 123,
  "name": "<string>",
  "size": 123,
  "tags": [
    "<string>"
  ],
  "transaction_id": "<string>",
  "type": "<string>",
  "updated_at": "<string>"
}

Authorizations

Authorization
string
header
required

Type "Bearer" followed by a space and the JWT token.

Path Parameters

id
integer
required

Data Asset ID

Body

data
file

File to be uploaded when using multipart/form-data

acl
string

Access control list (ACL) for the data asset (e.g., 'public-read')

expiration_date
string

Expiration date for the data asset (in RFC 3339 format)

Response

200 - application/json
OK
acl
object[]
required
created_by
string
required
fid
string
required
id
integer
required
name
string
required
size
integer
required
tags
string[]
required
transaction_id
string
required
type
string
required
created_at
string
data_model_id
integer
expiration_date
string
updated_at
string