---
title: "PUT /ver2/PackageService.svc/packages/{packageIdOrName}/data/{key}"
method: PUT
path: "/ver2/PackageService.svc/packages/{packageIdOrName}/data/{key}"
tags: ["Package"]
---

# PUT /ver2/PackageService.svc/packages/{packageIdOrName}/data/{key}

`PUT /ver2/PackageService.svc/packages/{packageIdOrName}/data/{key}`

## Request

- Base URL: `https://api.enviance.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.enviance.com/ver2/PackageService.svc/packages/{packageIdOrName}/data/{key}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/enviance/apis/restapi/docs/ver2/PackageService.svc/packages/:packageIdOrName/data/:key/put.ts> (a function with typed inputs; its response is checked against the schema)

envianceSdk.packages.savePackageAppData
```
[
  "Tracker 001",
  "key1",
  "value-101010",
  "onsuccess",
  "onerror"
]
```
envianceSdk.packages.savePackageAppDataJson
```
[
  "ApplicationID",
  "someKey",
  {
    "field1": 1,
    "field2": "someText"
  },
  "onsuccess",
  "onerror"
]
```

## Path parameters

- `packageIdOrName` string, required
- `key` string, required

## Headers

- `EnvApi-Systemid` string
- `EnvApi-Packageid` string
- `EnvApi-Udf-DateTime-Iso-In-CustomFields` string
- `EnvApi-Udf-DateTime-ReadInUserTz` string
- `EnvApi-Udf-Value-Invariant` string
- `EnvApi-Localization-All` string
- `x-client-request-id` string

## Request body

- SavePackageAppData
  - `value` SystemObject
  - `dtype` string

## Response `default`

not available

---

[API](https://skmtc.dev/enviance/apis/restapi.md) - [All operations](https://skmtc.dev/enviance/apis/restapi/llms.txt) - [OpenAPI document](https://skmtc.dev/enviance/apis/restapi/revisions/45b2200a8cf2?raw)
