SigSentrySigSentry
Log Sources

PUT /v1/config/log-sources/{id}

Update name, credentials, sources, or active state on an existing log source

Updates an existing log source. All fields are optional — submit only what you want to change. The type cannot be changed; create a new source if you need a different platform.

Authentication

API key with config:write permission.

Endpoint

PUT /v1/config/log-sources/{id}

Path parameters

ParamTypeNotes
idUUIDThe log source id

Request body

FieldTypeRequiredNotes
namestring (1–255 chars)Rename the source
credentialsobject<string,string>Replace credentials wholesale (see credential keys per type)
sourcesstring[] (≥ 1)Replace the array of log groups, indexes, or selectors
isActivebooleanToggle active state. Inactive sources are skipped during analyses

Submitting credentials replaces the entire credential set. To rotate just one key, you must include all required keys for the type.

{
  "name": "prod-cloudwatch-renamed",
  "sources": [
    "/aws/lambda/checkout-api",
    "/aws/lambda/billing-worker",
    "/aws/ecs/api-gateway"
  ],
  "isActive": true
}

Response

200 OK

{
  "success": true,
  "data": {
    "updated": true
  }
}

The full updated record is not returned. Call GET /v1/config/log-sources afterward if you need to confirm the new state.

Error responses

Statuserror.codeWhen
400VALIDATION_ERRORid is not a UUID, or one of the body fields failed validation
401UNAUTHORIZEDMissing or invalid API key
403FORBIDDENKey lacks config:write
404NOT_FOUNDNo log source with that id in your tenant

Example

curl -X PUT https://api.sigsentry.com/v1/config/log-sources/ls_a1b2c3 \
  -H "Authorization: Bearer ss_secret_..." \
  -H "Content-Type: application/json" \
  -d '{ "isActive": false }'

Common patterns

GoalWhat to send
Rotate credentialscredentials with the full new key set for the type
Add a log group / indexsources containing the full updated list (additions + existing entries)
Pause a source{ "isActive": false }
Resume a source{ "isActive": true }