Restrictions
This document lays out the specification of interacting with the Qgiv Restrictions system, allowing for reading, writing, and updating restrictions.
Restriction Properties
- id (int)
- title (string)
- exportHeader (string)
- displayTitle (string)
- restrictionDescription (string)
- subrestrictions (collection)
- title (string)
- restrictionDescription (string)
- (int)
- (int)
- (int)
- (int)
- (int)
- (int)
- (int)
- sort (int)
GET : https://secure.qgiv.com/admin/api/restrictions/list
Returns all restrictions associated with the current form
<restrictions>
<restriction id="5249">
<title>Greatest Need</title>
<exportHeader></exportHeader>
<displayTitle>Greatest Need</displayTitle>
<restrictionDescription>All proceeds will go to our greatest need</restrictionDescription>
<displayDescription>1</displayDescription>
<subrestrictions>
<subrestriction>
<title>Missions focused</title>
<restrictionDescription>All proceeds will go to our greatest need in the missions field</restrictionDescription>
</subrestriction>
</subrestrictions>
<sort>3</sort>
<displayOnFrontend>1</displayOnFrontend>
<displayOnVT>1</displayOnVT>
<displayOnKiosk>0</displayOnKiosk>
<displayOnMobile>0</displayOnMobile>
<isCustomRestriction>1</isCustomRestriction>
<state>0</state>
</restriction>
</restrictions>{
"restrictions":[
{
"id":"5249",
"displayMobile":"0",
"title":"Greatest Need",
"exportHeader":"",
"displayTitle":"Greatest Need",
"restrictionDescription":"All proceeds will go to our greatest need",
"displayDescription":"1",
"subrestrictions":[
{
"title":"Missions focused",
"restrictionDescription":"All proceeds will go to our greatest need in the missions field"
}
],
"displayOnFrontend":"1",
"displayOnKiosk":"0",
"displayOnVT":"1",
"isCustomRestriction":"1",
"sort":"3",
"state":"0"
}
...
]
}GET : https://secure.qgiv.com/admin/api/restriction/[id]
Returns the restriction requested, individually specified by ID.
<restriction id="5249">
<title>Greatest Need</title>
<exportHeader></exportHeader>
<displayTitle>Greatest Need</displayTitle>
<restrictionDescription>All proceeds will go to our greatest need</restrictionDescription>
<displayDescription>1</displayDescription>
<subrestrictions>
<subrestriction>
<title>Missions focused</title>
<restrictionDescription>All proceeds will go to our greatest need in the missions field</restrictionDescription>
</subrestriction>
</subrestrictions>
<displayOnKiosk>0</displayOnKiosk>
<displayOnFrontend>1</displayOnFrontend>
<displayOnVT>1</displayOnVT>
<displayOnMobile>1</displayOnMobile>
<isCustomRestriction>1</isCustomRestriction>
<sort>3</sort>
<state>0</state>
</restriction>{
"restriction":{
"id":"5249",
"title":"Greatest Need",
"exportHeader":"",
"displayTitle":"",
"restrictionDescription":"",
"displayDescription":"1",
"subrestrictions":[
{
"title":"Missions focused",
"restrictionDescription":"All proceeds will go to our greatest need in the missions field"
}
],
"displayOnKiosk":"0",
"displayOnFrontend":"1",
"displayOnVT":"1",
"displayOnMobile":"1",
"isCustomRestriction":"1",
"sort":"3",
"state":"0"
}
}POST : https://secure.qgiv.com/admin/api/restrictions/create
Creates one or more restrictions with the values passed in, returning the complete restrictions with the new ID
Input
<restrictions>
<restriction>
<title>Greatest Need</title>
<exportHeader></exportHeader>
<displayTitle>Greatest Need</displayTitle>
<restrictionDescription>All proceeds will go to our greatest need</restrictionDescription>
<displayDescription>1</displayDescription>
<subrestrictions>
<subrestriction>
<title>Missions focused</title>
<restrictionDescription>All proceeds will go to our greatest need in the missions field</restrictionDescription>
</subrestriction>
</subrestrictions>
<displayOnKiosk>0</displayOnKiosk>
<displayOnFrontend>1</displayOnFrontend>
<displayOnVT>1</displayOnVT>
<displayOnMobile>1</displayOnMobile>
<isCustomRestriction>1</isCustomRestriction>
<sort>3</sort>
<state>0</state>
</restriction>
</restrictions>{
"restrictions":[
{
"title":"Greatest Need",
"exportHeader":"",
"displayTitle":"Greatest Need",
"restrictionDescription":"All proceeds will go to our greatest need",
"displayDescription":"1",
"subrestrictions":[
{
"title":"Missions focused",
"restrictionDescription":"All proceeds will go to our greatest need in the missions field"
}
],
"displayOnKiosk":"0",
"displayOnFrontend":"1",
"displayOnVT":"1",
"displayOnMobile":"1",
"isCustomRestriction":"1",
"sort":"3",
"state":"0"
}
...
]
}Output
<restrictions>
<restriction id="5249">
<title>Greatest Need</title>
<exportHeader></exportHeader>
<displayTitle>Greatest Need</displayTitle>
<restrictionDescription>All proceeds will go to our greatest need</restrictionDescription>
<displayDescription>1</displayDescription>
<subrestrictions>
<subrestriction>
<title>Missions focused</title>
<restrictionDescription>All proceeds will go to our greatest need in the missions field</restrictionDescription>
</subrestriction>
</subrestrictions>
<displayOnKiosk>0</displayOnKiosk>
<sort>3</sort>
<displayOnFrontend>1</displayOnFrontend>
<displayOnVT>1</displayOnVT>
<displayOnMobile>1</displayOnMobile>
<isCustomRestriction>1</isCustomRestriction>
<state>0</state>
</restriction>
</restrictions>{
"restrictions":[
{
"id":"5249",
"title":"Greatest Need",
"exportHeader":"",
"displayTitle":"Greatest Need",
"restrictionDescription":"All proceeds will go to our greatest need",
"displayDescription":"1",
"subrestrictions":[
{
"title":"Missions focused",
"restrictionDescription":"All proceeds will go to our greatest need in the missions field"
}
],
"displayOnKiosk":"0",
"sort":"3",
"displayOnFrontend":"1",
"displayOnVT":"1",
"displayOnMobile":"1",
"isCustomRestriction":"1",
"state":"0"
}
...
]
}POST : https://secure.qgiv.com/admin/api/restrictions/[id]
Updates the given restriction, specified by ID, with the values passed in, returning the complete restriction
Input
<restrictions>
<restriction id="5249">
<displayOnMobile>0</displayOnMobile>
<title>The Greatest Need</title>
</restriction>
</restrictions>{
"restrictions":[
{
"id":"5249",
"displayOnMobile":"0",
"title":"The Greatest Need"
}
...
]
}Output
<restrictions>
<restriction id="5249">
<title>The Greatest Need</title>
<exportHeader></exportHeader>
<displayTitle>Greatest Need</displayTitle>
<restrictionDescription>All proceeds will go to our greatest need</restrictionDescription>
<displayDescription>1</displayDescription>
<subrestrictions>
<subrestriction>
<title>Missions focused</title>
<restrictionDescription>All proceeds will go to our greatest need in the missions field</restrictionDescription>
</subrestriction>
</subrestrictions>
<displayOnKiosk>0</displayOnKiosk>
<sort>3</sort>
<displayOnFrontend>1</displayOnFrontend>
<displayOnVT>1</displayOnVT>
<displayOnMobile>0</displayOnMobile>
<isCustomRestriction>1</isCustomRestriction>
<state>0</state>
</restriction>
</restrictions>{
"restrictions":[
{
"id":"5249",
"title":"The Greatest Need",
"exportHeader":"",
"displayTitle":"Greatest Need",
"restrictionDescription":"All proceeds will go to our greatest need",
"displayDescription":"1",
"subrestrictions":[
{
"title":"Missions focused",
"restrictionDescription":"All proceeds will go to our greatest need in the missions field"
}
],
"displayOnKiosk":"0",
"sort":"3",
"displayOnFrontend":"1",
"displayOnVT":"1",
"displayOnMobile":"0",
"isCustomRestriction":"1",
"state":"0"
}
...
]
}* denotes a required field
** denotes a required field based on Event settings
*** denotes a field that is only required when submitting Form level API credentials