APILog streams
Reassign a log stream
Move a log stream to a different connectionless log source in the same project. Preserves the stream's ID, intake key credential, and ingested data; rebinds the key's intake adapter to the target log source's provider so future data is processed as that provider's format.
Path Parameters
streamId*string
Log stream ID to reassign.
Format
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/log-streams/497f6eca-6276-4993-bfeb-53cbbbba6f08/reassign" \ -H "Content-Type: application/json" \ -d '{ "targetLogSourceId": "e5373f9b-ddbc-4964-8c3b-9dbeb5ed7a3a" }'{ "stream": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "logSourceId": "7efc89d3-d050-4aa1-9ef7-0c937654d327", "displayName": "string", "config": { "property1": null, "property2": null }, "status": "pending", "errorMessage": "string", "enabled": true, "createdAt": "2019-08-24T14:15:22Z", "endpointCards": [ { "kind": "url", "label": "string", "url": "string", "host": "string", "port": -9007199254740991, "description": "string", "extraCredential": { "label": "string", "value": "string", "description": "string" } } ] }}