---
title: "Update App Custom Data"
method: PUT
path: "/v1/apps/custom-data/{app_id}/files/{file_id}"
tags: ["apps"]
---

# Update App Custom Data

`PUT /v1/apps/custom-data/{app_id}/files/{file_id}`

## Path parameters

- `app_id` string, uuid, required
- `file_id` string, uuid, required

## Request body

- AppCustomDataUpdateRequest
  - `file_name` string, nullable
  - `active` boolean, nullable
  - `labels` string[], nullable

## Response `200`

Successful Response

- AppCustomData
  - `id` string, uuid, nullable — The ID
  - `app_id` string, uuid, nullable — The ID of the app to store this data in
  - `tenant_id` string, uuid, required — The ID of the tenant to store this data in
  - `carbon_object_id` union — The ID of the object in Carbon
    - string
    - integer
  - `carbon_data_source_type` string, nullable — The type of the data source in Carbon
  - `carbon_last_synced_on` string, date-time, nullable — The timestamp the file was last synced from Carbon
  - `file_name` union, required — The name of the file
    - string, uri
    - string
  - `file_mime` string, nullable — The mimetype of the file
  - `file_size` integer, nullable — The size of the file in Bytes
  - `external_url` union — The external URL to the file
    - string, uri
    - string
  - `data_type` 'file' | 'url', required — The type of custom data (file, url, ...)
  - `active` boolean — Indicates if the data source will be included in queries
  - `state` 'CREATED' | 'PENDING' | 'QUEUED' | 'QUEUED_FOR_RECONCILIATION' | 'SYNC_FAILED' | 'FAILED' | 'INDEXED' | 'DELETING'
  - `labels` AppLabel[] — The labels associated with the file
    - `name` string, required
    - `description` string, nullable
    - `color` string, nullable
    - `id` string, uuid, required
  - `added_on` string, date-time — The timestamp the file was added
  - `modified_on` string, date-time, nullable — The timestamp the file was last modified
  - `deleted_on` string, date-time, nullable — The timestamp the file was added

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/pulze/apis/pulze-ai-api.md) · [All operations](https://skmtc.net/pulze/apis/pulze-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pulze/pulze-ai-api/versions/a5e0b539abc5/schema)
