Reltio Connect

 View Only
Expand all | Collapse all

Job Definition - how to view and updated the saved job definitions?

  • 1.  Job Definition - how to view and updated the saved job definitions?

    Posted 10-04-2024 09:24

    How to view and update the saved Job definitions? I have scheduled a job using the definition and would like to modify now. I dont see an option to update. Thank you.



    ------------------------------
    Rushyendar Akula
    Datasys Inc
    Concord NC
    ------------------------------


  • 2.  RE: Job Definition - how to view and updated the saved job definitions?

    Reltio Employee
    Posted 10-04-2024 10:02

    Hi Rushyendar, 

    If you have the job definition ID, you can use the API - https://developer.reltio.com/private/swagger.htm?module=Data%20Ingestion#/Data%20Load%20Job/updateProjectDetails to update the existing job definitions. 

    Here is how you can loqate the project id (i.e. the Job definition id) from the console UI. 

    Let me know if this helps.



    ------------------------------
    Diparnab Dey
    Technical Consultant
    Reltio
    Kolkata, West Bengal
    ------------------------------



  • 3.  RE: Job Definition - how to view and updated the saved job definitions?

    Posted 10-04-2024 10:13

    Thank you, Diparnab. Can this be done using UI or it has to be an API call?



    ------------------------------
    Rushyendar Akula
    Datasys Inc
    Concord NC
    ------------------------------



  • 4.  RE: Job Definition - how to view and updated the saved job definitions?

    Reltio Employee
    Posted 10-04-2024 10:20

    Rushyendar, 

    Some changes can be done via UI. Basically where ever you are getting this edit option 

    Otherwise, You can use the API that I had shared. You can use the Get API to retrieve the job definition details, and then use the update API to update the job definition. 

    Here is a sample CURL for the Get Job definition API

    curl --location 'https://361-dataloader.reltio.com/dataloader/api/{{mdmTenant}}/project/{{projectId}}' \
    --header 'Authorization: Bearer XXXXXXXX' \
    --header 'Content-Type: application/json'





    ------------------------------
    Diparnab Dey
    Technical Consultant
    Reltio
    Kolkata, West Bengal
    ------------------------------



  • 5.  RE: Job Definition - how to view and updated the saved job definitions?

    Posted 10-04-2024 12:51

    Got it, Thank you so much..



    ------------------------------
    Rushyendar Akula
    Datasys Inc
    Concord NC
    ------------------------------



  • 6.  RE: Job Definition - how to view and updated the saved job definitions?

    Posted 10-14-2024 10:04

    @Diparnab Dey

    I am able to setup API, but getting the below error when retrieving the data load job definition details from one of the DEV jobs. I am sure I am using the right key, but getting access denied exception. what may be the reason?



    ------------------------------
    Rushyendar Akula
    Datasys Inc
    Concord NC
    ------------------------------



  • 7.  RE: Job Definition - how to view and updated the saved job definitions?

    Reltio Employee
    Posted 10-14-2024 10:38

    Hi Rushyendar, 

    Please verify the credential that you are using to get the access token for executing the API have the necessary permission to retrieve the data loader job. Easiest way to test this API will be to assign ROLE_ADMIN_TENANT. But if that's not an option, ensure that the role has necessary permission to retrieve the data loader jobs. 



    ------------------------------
    Diparnab Dey
    Technical Consultant
    Reltio
    Kolkata, West Bengal
    ------------------------------



  • 8.  RE: Job Definition - how to view and updated the saved job definitions?

    Posted 10-14-2024 10:47

    Thank you, Diparnab Dey.

    I have the role ROLE_ADMIN_TENANT assigned. Also, the auth key I am using is working when I try to get the tenant configuration. Is the URL looking good? 

    https://361-dataloader.reltio.com/dataloader/api/<<TenantId>>/project/b3eb8883-07f0-4b69-9873-5989e12e8b1b



    ------------------------------
    Rushyendar Akula
    Datasys Inc
    Concord NC
    ------------------------------



  • 9.  RE: Job Definition - how to view and updated the saved job definitions?

    Reltio Employee
    Posted 10-14-2024 11:03

    Hi Rushyendar, 

    The API looks correct to me. Here is a CURL command for the working API. If it's exactly same as the one that you are using, then I will recommend raising a Reltio support ticket, so that they can investigate what is going wrong with the access. 

    curl --location 'https://361-dataloader.reltio.com/dataloader/api/{{mdmTenant}}/project/57ff40c6-da81-4e2f-966f-1b4309ffbef7' \
    --header 'Authorization: {{accessToken}}' \
    --header 'Content-Type: application/json'



    ------------------------------
    Diparnab Dey
    Technical Consultant
    Reltio
    Kolkata, West Bengal
    ------------------------------



  • 10.  RE: Job Definition - how to view and updated the saved job definitions?

    Posted 10-14-2024 12:16

    Thank you, Diparnab Dey. I appreciate the quick response on this. With the URL that you shared, I am still getting an "Access Denied" exception. I have referred to the documentation here, and figured out that the URL you shared is missing 'services' before 'dataloader.'

    Using the URL: https://361-dataloader.reltio.com/services/dataloader/api/<TenantId>/project/b3eb8883-07f0-4b69-9873-5989e12e8b1b I no longer get the "Access Denied" error, but instead, I receive:

    {
        "timestamp": 1728922246156,
        "status": 404,
        "error": "Not Found",
        "path": "/services/dataloader/api/w8jSAy7RvnvHcaP/project/b3eb8883-07f0-4b69-9873-5989e12e8b1b"
    }



    ------------------------------
    Rushyendar Akula
    Datasys Inc
    Concord NC
    ------------------------------



  • 11.  RE: Job Definition - how to view and updated the saved job definitions?

    Reltio Employee
    Posted 10-14-2024 12:25

    Adding services is not required in the URL, if you are executing the API from POSTMAN or from code, Rushyendar. It's only there in the developer portal. 

    I have executed the API in one of my tenants, and I am getting the response correctly. 


    Seems like something is going wrong with your access, I will still recommend raising a support ticket. 



    ------------------------------
    Diparnab Dey
    Technical Consultant
    Reltio
    Kolkata, West Bengal
    ------------------------------