Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Esploro
    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Esploro
    3. Knowledge Articles
    4. Update Asset by API - Link the Asset to a Grant

    Update Asset by API - Link the Asset to a Grant

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share

     

    1. Description
    2. Resolution
    3. URL parameters
    4. Body parameters
      1. XML
      2. JSON
    5. Additional Information
    6.  
    • Product: Esploro

     

    Description

    I want to link my existing Asset to an existing Grant. Is there a way to do this by API?

    Resolution

    There is a Post Asset API that can be used to add or replace individual fields in an asset record. One of the fields that can be added or updated is the link to grant (fundingreference).

    This field can occur multiple times. Use the add action to add or append a link and use the replace action to swap links already in the record with new links from the input.

    POST /esploro/v1/assets/{assetId}?op=patch&action=add

    URL parameters

    assetId

    op             The operation to be performed on the asset. Currently op=patch is supported, it is also the default value.

    action        Allowed values are: add, replace.

    add is for simple fields will only update the value if empty, for list fields will append value to list

    replace for simple fields will replace value, for list fields will swap all

     

    Body parameters

    XML

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <ns3:records total_record_count="1" xmlns:ns2="http://esploro_record" xmlns:ns3="http://rest_esploro">
        <record>
                <fundingreferenceList>
                <fundingreference>
                    <fundername>Universitat de València (Spain, Valencia) - UV</fundername>
                    <awardnumber>fundrefGrantForDoiTest</awardnumber>
                    <awardtitle>fundrefGrantForDoiTest</awardtitle>
                    <grantURL></grantURL>
                </fundingreference>
                <fundingreference>
                    <fundername>Technion – Israel Institute of Technology (Israel, Haifa)</fundername>
                    <awardnumber>existingGrantID31101044960</awardnumber>
                    <awardtitle>existingGrantName31101044960</awardtitle>
                    <grantURL></grantURL>
                </fundingreference>
                <fundingreference>
                    <fundername>Centre Hospitalier Régional Universitaire de Brest (France, Brest)</fundername>
                    <awardnumber>newGrant10112024</awardnumber>
                    <awardtitle>newGrant10112024</awardtitle>
                    <grantURL>testGrantURL.com</grantURL>
                </fundingreference>
            </fundingreferenceList>
        </record>
    </ns3:records>

     

    JSON

     

        "records": [

            {

               "fundingreferenceList": [

                    {

                    "fundername": "National Institutes of Health (United States, Bethesda) - NIH",

                    "awardnumber": "3U01DK057182-21S1"

                    }

                ]

            }

        ]

    }

     

     

    {
      "record": {
        "fundingreferenceList": [
          {
            "fundername": "Universitat de València (Spain, Valencia) - UV",
            "awardnumber": "fundrefGrantForDoiTest",
            "awardtitle": "fundrefGrantForDoiTest",
            "grantURL": ""
          },
          {
            "fundername": "Technion – Israel Institute of Technology (Israel, Haifa)",
            "awardnumber": "existingGrantID31101044960",
            "awardtitle": "existingGrantName31101044960",
            "grantURL": ""
          },
          {
            "fundername": "Centre Hospitalier Régional Universitaire de Brest (France, Brest)",
            "awardnumber": "newGrant10112024",
            "awardtitle": "newGrant10112024",
            "grantURL": "testGrantURL.com"
          }
         }

     

    Additional Information

    Esploro API Resource URL (Developer Network)

    Esploro API Rest Esploro Records (Developer Network)

     


    • Article last edited: 26-July-2021
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Update Asset by API
      • Product Materials
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Content Type
      Knowledge Article
      Language
      English
      Product
      Esploro
    2. Tags
      This page has no tags.
    1. © Copyright 2026 Ex Libris Knowledge Center
    2. Powered by NiCE Knowledge Management ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved