POST api/v2.0/Configuration/SetValues

Sets the value of the passed list of config params. Request body should be a JSON list ([]) of {ParameterName: "x", ParameterValue: "y"} objects

Request Information

URI Parameters

None.

Body Parameters

Collection of ConfigurationModel
NameDescriptionTypeAdditional information
ParameterName

string

None.

ParameterValue

string

None.

IsEncrypted

boolean

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "ParameterName": "sample string 1",
    "ParameterValue": "sample string 2",
    "IsEncrypted": true
  },
  {
    "ParameterName": "sample string 1",
    "ParameterValue": "sample string 2",
    "IsEncrypted": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfConfigurationModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HigherLogic.API.Models.Enterprise">
  <ConfigurationModel>
    <IsEncrypted>true</IsEncrypted>
    <ParameterName>sample string 1</ParameterName>
    <ParameterValue>sample string 2</ParameterValue>
  </ConfigurationModel>
  <ConfigurationModel>
    <IsEncrypted>true</IsEncrypted>
    <ParameterName>sample string 1</ParameterName>
    <ParameterValue>sample string 2</ParameterValue>
  </ConfigurationModel>
</ArrayOfConfigurationModel>

Response Information

Resource Description

Collection of ConfigurationModel
NameDescriptionTypeAdditional information
ParameterName

string

None.

ParameterValue

string

None.

IsEncrypted

boolean

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ParameterName": "sample string 1",
    "ParameterValue": "sample string 2",
    "IsEncrypted": true
  },
  {
    "ParameterName": "sample string 1",
    "ParameterValue": "sample string 2",
    "IsEncrypted": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfConfigurationModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HigherLogic.API.Models.Enterprise">
  <ConfigurationModel>
    <IsEncrypted>true</IsEncrypted>
    <ParameterName>sample string 1</ParameterName>
    <ParameterValue>sample string 2</ParameterValue>
  </ConfigurationModel>
  <ConfigurationModel>
    <IsEncrypted>true</IsEncrypted>
    <ParameterName>sample string 1</ParameterName>
    <ParameterValue>sample string 2</ParameterValue>
  </ConfigurationModel>
</ArrayOfConfigurationModel>