Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  1. Fotoware Alto
    • 11.14 Schreckhorn
    • Terminology
    • Solutions
    • User Guide - Deutsch
    • User Guide - English
    • API Changelog
  2. Fotoware Veloz
    • Managing users and groups
    • Configuring archives
    • Configuring workflows
    • Configuring site behavior
    • Navigating and searching to find your assets
    • Working with your assets
    • Editing asset metadata
    • Uploading files
    • Version Control in Fotoware
    • Albums - Creating and sharing collections
    • Placing assets in a CMS
    • Working with the Fotoware Pro interface
    • Using the Fotoware plugins
    • Consent management
    • User guide to FotoWeb for iPad (Legacy)
    • Picture conferencing with FotoWeb Screens (Legacy)
    • What's what in Fotoware
    • GDPR
    • Fotoware Veloz releases
    • Activity Exports
    • Fotoware Example Workflows
  3. Fotostation
    • Getting started with Fotostation
    • Viewing, selecting and sorting files
    • Managing your assets with archives
    • Adding metadata to assets
    • Searching for assets
    • Working with your assets
    • Version Control in Fotostation
    • Automating tasks with Actions
    • Configuring metadata fields and editors
    • Configuring Fotostation
    • Configuring Fotostation for multi-user environments
    • Troubleshooting Fotostation
  4. Fotoware Flow
    • What is Flow?
    • Getting started
    • Flow dictionary
  5. Fotoware On-Premises
    • Getting started
    • Index Manager
    • FotoWeb
    • Color Factory
    • Connect
    • Operations Center Guide
  6. Integrations and APIs
    • The Fotoware API
    • Creating integrations using embeddable widgets
    • Authorizing applications using OAuth
    • Auto-tagging
    • FotoWeb Drag and Drop export
    • Integration using webhooks
    • Optimizely and Episerver plugin documentation
    • User Interface Integrations
  7. Fotoware Mobile
    • User guide for Fotoware Mobile for iPhone and Android
    • User guide to FotoWeb for iPad (Legacy)
    • User guide to FotoWeb for iPhone and Android (Legacy)

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Support

Table of Contents

Syntax Requirements Request body Request example using Curl Response data Remarks
  • Home
  • Integrations and APIs
  • The Fotoware API
  • Fotoware API Overview

Updating metadata on an asset

This article describes how to update metadata on an asset using the API.

11. April 2025

Elaine Foley

Table of Contents

Syntax Requirements Request body Request example using Curl Response data Remarks

Syntax

PATCH asset URL
Content-Type: application/vnd.fotoware.assetupdate+json
Accept: application/vnd.fotoware.asset+json

The asset URL is the URL of the asset. It can be obtained by browsing an archive, through a search result, etc.

Requirements

Requires authentication: Yes

Required permissions: Edit Metadata on the archive containing the asset

Request body

The request must contain a body which describes which metadata fields shall be updated and what their values shall be. Example:

1

2

3

4

5

{

"metadata": {

"5": { "value": "The Beatles" }

}

}

This request replaces the value of the metadata field 5 with the value "The Beatles". Other metadata fields are not modified and retain their previous values. See here for a reference of metadata field numbers.

It is possible to update multiple metadata fields in the same request:

1

2

3

4

5

6

{

"metadata": {

"5": { "value": "The Beatles" },

"90": { "value": "London" }

}

}

This request replaces the values of the metadata fields 5 and 90 with different values.

Some metadata fields (bag fields) may contain multiple values. For such fields, multiple values can be given as a JSON array:

1

2

3

4

5

6

{

"metadata": {

"5": { "value": "The Beatles" },

"25": { "value": [ "Paul", "John", "Ringo", "George" ] }

}

}

If only one value shall be added to a bag field, then the array brackets ([]) can be omitted:

1

2

3

4

5

6

{

"metadata": {

"5": { "value": "The Beatles" },

"25": { "value": "Paul" }

}

}

It is also possible to delete a metadata field by specifying empty array brackets:

1

2

3

4

5

6

{

"metadata": {

"5": { "value": "The Ramones" },

"25": { "value": [] }

}

}

Request example using Curl

The following example is a CURL command line which sends a metadata update request to the API.

Before sending the request, create a text file called request.txt, which contains the request body. You may use one of the examples above.

In the following CURL command, replace the URL (shown in bold) with the fully qualified URL of the asset. This URL can be obtained, for example, by visiting the details page of an asset in the browser and copying the address line (without the fragment part after #). If you obtained the URL using the API, remember adding http:// and the host name when using it in the following command line:

curl \
 --header "Content-Type: application/vnd.fotoware.assetupdate+json" \
 --header "Accept: application/vnd.fotoware.asset+json" \
 --request PATCH http://fotoweb.acme.com/fotoweb/archives/5005-Photos/Incoming/0000.JPG.info \
 -d @request.txt

Response data

If the request is successful, then the server sends the following response:

200 OK
Content-Type: application/vnd.fotoware.asset+json
{ ... }

The response body (omitted here) is a complete JSON representation of the asset containing the updated metadata as well as the remaining metadata fields and other information.

Remarks

The API can be used to set the metadata fields that are defined in the metadata set of the archive containing the asset.

edit details update information

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Content Relation Items Changed Condition
  • Defining metadata requirements for uploaded assets
  • Preserving metadata on upload
eco-lighthouse-miljøfyrtårn

Company

  • About us
  • Resellers
  • Careers
  • Contact us

Help & support

  • Support center
  • Consultancy
  • Tech partners
  • Fotostation
  • System status

Trust Center

  • Legal
  • Security
  • Sustainability & ESG

Locations

Fotoware AS (HQ)
Tollbugata 35
0157 OSLO
Norway
FotoWare Switzerland AG
Industriestrasse 25
5033 Buchs (AG)
Switzerland

Copyright 2025 Fotoware All rights reserved.

  • Terms of service
  • Privacy policy
  • Cookie policy

Knowledge Base Software powered by Helpjuice

Expand