Discussions
REST API: Is there an endpoint to pay a pledge?
Hi,
I've could not find any endpoint in Fundraising namespace to pay a pledge.
Should I have to look in another namespace?
Thanks,
Roberto.
Posted by Roberto almost 6 years ago
Getting 405 Error on Party endpoint using Postman/PUT
Hello,
I have a valid Bearer token under the MANAGER account, and I can do GETs all day, but when I try to do the simplest of PUT operations, I'm getting a "The requested resource does not support http method 'PUT'." message.
I'm using GitHub examples from a previous Innovations.
Here are my Raw headers:
{"$type": " Asi.Soa.Membership.DataContracts.PersonData, Asi.Soa.Membership.Contracts",
"PersonName": {
"$type": "Asi.Soa.Membership.DataContracts.PersonNameData, Asi.Contracts",
"FirstName": "Douglas",
"InformalName": "Dougie",
}
I'm using the iMIS demo DB. I've messed around a bunch with the web config, thinking maybe the PUT command was not being preflighted or CORS approved, but everything looks good there.
Also, can anyone help with the derivation of the $type parameter, is it needed/required for PUT requests, where is the value derived from and how do I know if I'm using the proper $type values? I've messed around a bunch with those as well, but no luck.
One other question, is there a reason I can't do a Get from the Organization endpoint? Just 500 errors on that.
I'm using Axios/Vue to create an app, and Axios is also giving me the same error as Postman when trying a Put operation with similar parameters.
Appreciate everyone's help, I'm hoping it's something simple I'm overlooking.
Thanks.
Posted by Bill almost 6 years ago
Creating a cart via REST
Hello,
I am looking for a way to create a cart via the rest api so that a customer can go from a product page on another site and have it link them to the cart in RiSE and generate that cart with the products passed.
I'm looking to see if this is possible as the documentation for the cart only hows get and delete options.
Posted by Austin Harmon almost 6 years ago
POST to Order_Badge - how can I get around Bad Request
No need for response, details were sent to me offline.
~~Hi - I'm trying to write new badges into the Order_Badge table. I've tried a variety of things and end up with either a 500 or a 400, I can get around the 500 but can't get around the 400. It's a simple table, and I thought I could write out the basics (Name, TItle, etc.) without much trouble but looks like I am need of support.~~
~~If there's an ASI resource online could someone please send me the payload necessary for inserting a new line into Order_Badge? Would be much appreciated. Thanks.~~
~~(Edit, I had a 403 error in my initial post, it's a 400).~~
Posted by Jake Bound almost 6 years ago
REST API: Create a cart with quantity order as read-only.
Hi,
Is there an option to show quantity order (for each cart´s item) as read-only?
I´d like to disable user to change quantity of a product in a cart.
Any help would be appreciate.
Thanks,
Roberto.
Posted by Roberto almost 6 years ago
How to perform a Get/put on contract with composite key
I'm able to do a get on the trans using query parameters
https://{{URL}}/api/Trans?BT_ID=1399950&product_code=LASTAR2013/STAR&ST_ID=1399950&Date_Entered=2013-01-28
But the identity element of the response is a composite key
"IdentityElements": [
"1",
"1",
"1170269"
]
I've tried several different notations to do a Get by this key
https://{{URL}}/api/Trans/1/1/1170269
https://{{URL}}/api/Trans/1&1&1170269
https://{{URL}}/api/Trans/1:1:1170269
https://{{URL}}/api/Trans/1¶1¶1170269
without luck. All the examples of put use the id of the record in the URL. Is there any way around this issue to do put's on records with composite keys?
Posted by Troy Dahnert almost 6 years ago
Setting program option to 'Register by default' through REST
How do you update program options (event function) to 'Register by default' after already posting via REST? I would assume some type of PUT action, but what object/property do we need to look at.
For example, if you were adding an event through staff site, you can edit you registration option and add whatever program options you need. One of the options listed there that you can check next to the option is to 'Register by Default'.
We have something like this going in C# which we believe corresponds to Register By default.
EventRelatedFunctionData evFuncData = new EventRelatedFunctionData
{
IsAutoEnroll = true
};
Thanks,
Julie
Posted by Julie almost 6 years ago
Hashing a password and comparing it to current pw
Is there a way to create a new password and store the hashed value in a table so that it can be compared to the current password? A client originally initialized passwords to be the same as the username years ago. With the upcoming iMIS enhancement to enforce username <> password, we are looking to see how many people might still have the original password.
Posted by David Cook almost 6 years ago
Updating a multi-instance user defined table (GET and PUT request REST API) created through Panel Editor not iMIS Desktop
I have a client who's REST API calls where working in iMIS Version 20.2.46. Now they have upgraded to iMIS 2017 SP M and the previous API calls are just not working anymore.
i.e. GET request from multi-instance user defined table
https://{url}/Asi.Scheduler_iMIS/api/StudentGrades/20303,2 used to work
Now only https://{url}/Asi.Scheduler_iMIS/api/StudentGrades?ContactKey=2015287&Ordinal=2 returns this one unique record.
The PUT request used to work now it simple states 405
{
"$type": "System.Web.Http.HttpError, System.Web.Http",
"Message": "The requested resource does not support http method 'PUT'."
}
What am I missing here?
Any pointer is much appreciated.
Thanks much,
Alex
Posted by Alexander Kopetzky almost 6 years ago
Forcing Rest to use GenericEntityObject when SQL table name matches object name
If I request /api/Name I will receive a paged result that is a list of type "GenericEntityData". If I request /api/Party I will receive a list of type "PartyData". I can view the same data two different ways because the business object name does not match the SQL table name. In the case of a table like "CertificationProgram" though the object name matches the SQL name. If I request /api/CertificationProgram I will get back a "CertificationProgramData" object. How can I make the request in a way that it forces it to return a "GenericEntityData" object for the CertificationProgram table?
My question then extends out to the Put and Post verbs. How do I perform these actions against the GenericEntityObject instead of the SOA object that shares the same name?
Posted by Troy Dahnert almost 6 years ago