Error creating record TRIM service api using postman - 403 - Forbidden: Access is denied.

Hi 

I am trying to create a record in TRIM content manger using service api via postman and I am seeing 403 - Access denied error. 

My json is like below.

I used my network credentials for basic authentication. 

When I create a record using .NET code with HTTP client and network credentials it works. 

But with postman I am getting error. 

When I use the Create Record api from the trim service api page I see error like "Container cannot be blank" error. From there I cannot send container value. 

Please help, I would be ever grateful for any help on this. 


{
"RecordContainer": "245",
"RecordTitle": "Test Title",
"RecordRecordType": {
"Uri": 1
},
"Fields": {
"ClientID": 123,
"ClientDocumentType": {
"Value": "Internal"
},
"DateReceived": {
"Value": "16-09-2024"
}
}
}

Thanks

Nalina

Parents
  • 0  

    Hi Nalina,

    403 access denied normally means that it has failed the Auth step and hasn't looked at your payload yet.

    Since it works via the .NET code does populating a User Agent in the header help? Have seen in the past when going via an Application Balancer or similar that requests without particular headers get dropped due to filters - that may explain the difference in behaviour for the same exact call to the same endpoint between .Net and Postman.

    Are you calling the server direct? Going via a gateway? Going via a balancer?

    If possible, try making a call to the server direct via IP address to help rule out anything upstream.

    -Scotty

Reply
  • 0  

    Hi Nalina,

    403 access denied normally means that it has failed the Auth step and hasn't looked at your payload yet.

    Since it works via the .NET code does populating a User Agent in the header help? Have seen in the past when going via an Application Balancer or similar that requests without particular headers get dropped due to filters - that may explain the difference in behaviour for the same exact call to the same endpoint between .Net and Postman.

    Are you calling the server direct? Going via a gateway? Going via a balancer?

    If possible, try making a call to the server direct via IP address to help rule out anything upstream.

    -Scotty

Children
  • 0 in reply to   

    Hi Scotty, 

    Thanks for the response, I am calling the server url directly, it is our dev server so no balancer or any other security blockage. I can call the get record url from browser, and it works. Just now tried with IP address same Access denied error. Error seems very obvious but the login credentials are correct. I used the same request headers as in the browser, passed the user agent as well.

    Nalina