Skip to main content
Solved

Gainsight PX REST API Error


I am using the Gainsight PX REST Api’s for the first time, and I am getting back an unsuccessful response code.  Any guidance on what would be the cause of this?  Is it a matter of an invalid api key or what?

 

Response Code: 405 (Method Not Allowed)

HttpMethod: Put

Api: https://api.aptrinsic.com/v1/users/

Best answer by efinch

So, either the documentation is incomplete or I am reading it wrong.  Here is what I learned.

 

Put can only handle updating existing records.

Url: users/identifyId

 

Post can only handle adding new users

Url: users/

So, first I try to Put an updated record.  If that returns 404, then I try to Post the same record as an insert.  I dislike that I have to make up to two http requests, but it does seem to work.

 

https://aptrinsic.docs.apiary.io/#reference/users/v1usersdenylistidentifyid/update-user

View original
Did you find this topic helpful?

2 replies

dileepnalla
Forum|alt.badge.img+1
  • Gainsight Employee ⭐️⭐️
  • 82 replies
  • June 15, 2023

@efinch 

Thank you for contacting us through the community; I'll forward your inquiry to our support staff.

One of our support agents will contact you via the email/support inquiry shortly.

 

Thanks

Dileep Nalla


  • Author
  • Helper ⭐️
  • 2 replies
  • Answer
  • June 15, 2023

So, either the documentation is incomplete or I am reading it wrong.  Here is what I learned.

 

Put can only handle updating existing records.

Url: users/identifyId

 

Post can only handle adding new users

Url: users/

So, first I try to Put an updated record.  If that returns 404, then I try to Post the same record as an insert.  I dislike that I have to make up to two http requests, but it does seem to work.

 

https://aptrinsic.docs.apiary.io/#reference/users/v1usersdenylistidentifyid/update-user


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings