示例

PUT /api/settings/426558050
{
  "setting": {
    "value": "qCJmqVjLrQREEEoPvSUUzFazJTsaYkeOWchkdtmFySaxNwtxWzVktEeNonvhwwLFqhBTDklqytKuerqGTnUTtmNIEsrPgufcVcOOBKxMWiOjvATCAgNiRcDlUIsgKypqgeladUcMfBaWPmJbOvqqHJHCJtEibcNRHcSKqJVXiVuVYrYltIATwsHUNerRJwpQfbbFHdXzmADzwUsBQpHrYuXsGWzhnmpVwEFegEVxKYXXNuprKrnISFYxxxhrtTvHEAVxWAyCCLvAeCQgQygjaSYVglzQYFTeTQAGwLVpuyWqEmPboTYWdMOHsPWAMtLoyhxlAnRhHgdIkTkgAlrTIrBSbycnwENlcCBEXKAEJPKoBEByPIhJwuDCeUYfvDsjrNYhaGPEcuvgeOmhGhwzKFnCUpIWFzKWzbmwebBKJUKkYjQaDUBWYFvPqdbcmJzseWWDHNbQjLgImpNjCEYCuwGoEGuImjbyCcGIPyNRYeGkwTwWdywkoHzFqnIBsLdEtbSdzHJawCUcKSkIUDkQBcoaElkQiAECCYevhcyQbeEWgagDUkpWpQXHfgsxzPvnsHrJwMUjvAEwQDAmdXUQekhaQNJMIpamABGKhWVmXCYtNtLlWwcBblWQTFNnYUiCLfPWCqUaFLFkRBmfXfpDfhenwBcFpDyHVvdfSEogGElerehhJGBAloMevVoAlOrCpSynimPRjBYrvdPvFONpxTXpdkCepxaEtyfthysazRnNcCcHhgKIYHdyRTHWJXdwymKgjiTTMxxNhTDxcjPGXEHEszowySTbbkIdtnfxPopODTsdvwaLAEobBPJdkMobaVnygeTuGKQIAGaEOviAeflsBtNCczSaDAawwQdVBBPfbBSIEkyGfgLKMnedaSRboFRdzDGfNuHnPwetMxzNiurlRQpKfgWtnoKmkSmWgAthKQnOvBDaPvDkEJHUgulfwIvinTtfDPAkFBFIkwdcqvaFAHgymrPpFoGBwqvd"
  }
}
200
{
  "value": "qCJmqVjLrQREEEoPvSUUzFazJTsaYkeOWchkdtmFySaxNwtxWzVktEeNonvhwwLFqhBTDklqytKuerqGTnUTtmNIEsrPgufcVcOOBKxMWiOjvATCAgNiRcDlUIsgKypqgeladUcMfBaWPmJbOvqqHJHCJtEibcNRHcSKqJVXiVuVYrYltIATwsHUNerRJwpQfbbFHdXzmADzwUsBQpHrYuXsGWzhnmpVwEFegEVxKYXXNuprKrnISFYxxxhrtTvHEAVxWAyCCLvAeCQgQygjaSYVglzQYFTeTQAGwLVpuyWqEmPboTYWdMOHsPWAMtLoyhxlAnRhHgdIkTkgAlrTIrBSbycnwENlcCBEXKAEJPKoBEByPIhJwuDCeUYfvDsjrNYhaGPEcuvgeOmhGhwzKFnCUpIWFzKWzbmwebBKJUKkYjQaDUBWYFvPqdbcmJzseWWDHNbQjLgImpNjCEYCuwGoEGuImjbyCcGIPyNRYeGkwTwWdywkoHzFqnIBsLdEtbSdzHJawCUcKSkIUDkQBcoaElkQiAECCYevhcyQbeEWgagDUkpWpQXHfgsxzPvnsHrJwMUjvAEwQDAmdXUQekhaQNJMIpamABGKhWVmXCYtNtLlWwcBblWQTFNnYUiCLfPWCqUaFLFkRBmfXfpDfhenwBcFpDyHVvdfSEogGElerehhJGBAloMevVoAlOrCpSynimPRjBYrvdPvFONpxTXpdkCepxaEtyfthysazRnNcCcHhgKIYHdyRTHWJXdwymKgjiTTMxxNhTDxcjPGXEHEszowySTbbkIdtnfxPopODTsdvwaLAEobBPJdkMobaVnygeTuGKQIAGaEOviAeflsBtNCczSaDAawwQdVBBPfbBSIEkyGfgLKMnedaSRboFRdzDGfNuHnPwetMxzNiurlRQpKfgWtnoKmkSmWgAthKQnOvBDaPvDkEJHUgulfwIvinTtfDPAkFBFIkwdcqvaFAHgymrPpFoGBwqvd",
  "description": "Text to be shown in the login-page footer",
  "category": "Setting::General",
  "settings_type": null,
  "default": null,
  "created_at": "2019-09-11 14:55:17 UTC",
  "updated_at": "2019-09-11 14:55:19 UTC",
  "id": 426558050,
  "name": "login_text",
  "full_name": null,
  "category_name": "General"
}

参数

参数名字 描述
location_id
选填

根据位置界定的范围

Validations:

  • Must be a Integer

organization_id
选填

根据机构界定的范围

Validations:

  • Must be a Integer

id
必填

Validations:

  • Must be a String

setting
必填

Validations:

  • Must be a Hash

setting[value]
选填

Validations:

  • Must be a String