Skip to main content

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/

@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


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