POST
/
admin
/
settings
curl --request POST \
  --url https://api.helpyousponsor.com/v1/admin/settings \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "client_id": 1,
  "name": "Setting Name",
  "program_type": "contribution",
  "currency_symbol": "$",
  "duration": 365,
  "sponsorship_amount": "10,20,50,60",
  "sp_num": 100,
  "processing_percentage": 2.9,
  "info": "<p>sample</p>",
  "text_front": "<p>sample</p>",
  "text_profile": "<p>sd</p>",
  "text_checkout": "<p>fs</p>",
  "text_account": "<p>fs</p>",
  "allow_email": true,
  "show_payment": false,
  "designations": true,
  "login_box": true,
  "stripe": false,
  "checks": false,
  "cash": false,
  "display_percent": false,
  "display_info": false,
  "wire_transfer": false,
  "hide_payment_method": false,
  "hide_frequency": false,
  "processing_fee": true,
  "sorting": false,
  "display_all": false,
  "disable_program_link": false
}'
{
  "message": "Settings Saved."
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
client_id
integer
required
Example:

1

name
string
required
Example:

"Setting Name"

program_type
string
required
Example:

"contribution"

currency_symbol
string
Example:

"$"

duration
integer
Example:

365

sponsorship_amount
string
Example:

"10,20,50,60"

sp_num
integer
Example:

100

processing_percentage
number
Example:

2.9

info
string
Example:

"<p>sample</p>"

text_front
string
Example:

"<p>sample</p>"

text_profile
string
Example:

"<p>sd</p>"

text_checkout
string
Example:

"<p>fs</p>"

text_account
string
Example:

"<p>fs</p>"

allow_email
boolean
Example:

true

show_payment
boolean
Example:

false

designations
boolean
Example:

true

login_box
boolean
Example:

true

stripe
boolean
Example:

false

checks
boolean
Example:

false

cash
boolean
Example:

false

display_percent
boolean
Example:

false

display_info
boolean
Example:

false

wire_transfer
boolean
Example:

false

hide_payment_method
boolean
Example:

false

hide_frequency
boolean
Example:

false

processing_fee
boolean
Example:

true

sorting
boolean
Example:

false

display_all
boolean
Example:

false

Example:

false

Response

200
application/json
Settings Saved
message
string
Example:

"Settings Saved."