Update Source Settings
put
https://api.flxpoint.com/source/{sourceId}/settingsUse this when you want to replace source data through the API.
๐ X-API-TOKENโฑ 2 req/sToken: Account ยท Source ยท Channel
This page explains the endpoint. To send a live test request, use the interactive tester in Stoplight or your own Postman / HTTP client.
This endpoint configures Source Settings.
You must specify either a `handle` or `settingId` to associate settings.
If a passed setting has not been configured yet, this will associate a `value` (i.e. configure that setting).
If a passed setting has already been configured, this will overwrite the previous `value`.
Request
Body
application/jsonarray[PutSourceSetting]
valuestringrequiredThe `value` of a `Setting`
handlestringThe handle of a `Setting`
settingIdintegerThe `Setting` ID
Example request
put
/source/{sourceId}/settingscurl -X PUT "https://api.flxpoint.com/source/{sourceId}/settings" \
-H "Accept: application/json" \
-H "X-API-TOKEN: YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '[
{
"value": "string",
"handle": "string",
"settingId": 0
}
]'Example body ยท application/json
[
{
"value": "string",
"handle": "string",
"settingId": 0
}
]Responses
200OK
No schema documented for this status.
401Unauthorized
No schema documented for this status.
OpenAPI fragment
{
"put": {
"summary": "Update Source Settings",
"description": "This endpoint configures Source Settings. \n\nYou must specify either a `handle` or `settingId` to associate settings. \n\nIf a passed setting has not been configured yet, this will associate a `value` (i.e. configure that setting). \n\nIf a passed setting has already been configured, this will overwrite the previous `value`. ",
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PutSourceSetting"
}
}
}
}
},
"responses": {
"200": {
"description": "OK"
},
"401": {
"description": "Unauthorized"
}
}
}
}Ready to run it? Send the curl from your terminal or Postman, or use the interactive tester in Stoplight.Open in Stoplight