TheSpiritProject REST API

With the use of this API, you can fetch the Global Data Management.

Method: POST

URI: /globalData

Authentication: Require a valid access token to use this API

*Required HEADER
Parameters Type Description
token* String This token required to use this API. You can get the token using authenticate API.
*Required POST fields(All post data is in json format entered in raw payload.)
Parameters Type Description
domain* Integer Enter the domain under which you find the Global Data List.


With the use of this API, you can fetch the global listing data.

Method: POST

URI: /fetchGlobalListData

Authentication: Require a valid access token to use this API

*Required HEADER
Parameters Type Description
token* String This token required to use this API. You can get the token using authenticate API.
*Required POST fields(All post data is in json format entered in raw payload.)
Parameters Type Description
page* Integer Enter the number of page you want to fetch.
rp* Integer Enter the number of records fetch you want to fetch.
sortname* String Enter the column name by which you want to sort.
sortorder* String Enter the order you want to sort.
base_url* String Enter the base url.
domain* Integer Enter the domain the under which you want to fetch.
type* String Enter the type** which listing you want to fetch.


With the use of this API, you can fetch the global data by particular id.

Method: POST

URI: /fetchIdGlobalListData

Authentication: Require a valid access token to use this API

*Required HEADER
Parameters Type Description
token* String This token required to use this API. You can get the token using authenticate API.
*Required POST fields(All post data is in json format entered in raw payload.)
Parameters Type Description
id* Integer Enter the id which detail you want to fetch.
type* String Enter the type** which listing you want to fetch.


With the use of this API, you can save and update the global data.

Method: POST

URI: /saveGlobalData

Authentication: Require a valid access token to use this API

*Required HEADER
Parameters Type Description
token* String This token required to use this API. You can get the token using authenticate API.
*Required POST fields(All post data is in json format entered in raw payload.)
Parameters Type Description
type* String Enter the type** of which listing you want to fetch.
domain* Integer Enter the domain id under which listing you want to fetch.
id String Enter the id if you want to update not save the data by that id.
name* String Enter the name field if your selected management has.
code Integer Enter the code field if your selected management has.
archive Integer Enter the archive(0/no,1/yes) field if your selected management has.
tcacode Integer Enter the tcacode field if your selected management has.
ISTCA Integer Enter the ISTCA(0,1) field if your selected management has.
disposition_code Integer Enter the disposition_code field if your management is disposition.
charge_code Integer Enter the charge_code field if your management is charge.


With the use of this API, you can delete the case type.

Method: POST

URI: /casetype_delete

Authentication: Require a valid access token to use this API

*Required HEADER
Parameters Type Description
token* String This token required to use this API. You can get the token using authenticate API.
*Required POST fields(All post data is in json format entered in raw payload.)
Parameters Type Description
id* String Enter the id if you want to delete.


**Note : Choose your managament type for the above API's
Type Management Name
needs Needs
familyspecifics Family Specifics
placement Placement Types
housing Housing Types
jobrequirements Job Requirements
jobtype Job Types
judge Judge
actionexecuted Placement Action Executed By
securedetention Placement After Secure Detention
referralsource Referral Source
formalinformal Formal/Informal Actions
detention Type of Detention
intakeactions Intake Actions
lastgrades Last Grade Completed
casetypes Case Types
disposition Disposition
datastate Data State
charge Charge list
issue_action Issue actions
group Issue Groups
orgtype Organization Types
interest Interests