Before you update a target, you must unlock it.
Definition
curl \
-H "Content-Type: application/json" \
-H "Authorization: Bearer TOKEN" \
-X PUT -d '{"production": false}' \
-i \https://CLUSTER.DOMAIN/listener/appservices/targets/{targetID}/production
Example Response
{ "target_id":"bc60ddcc-a40a-4a7e-abe5-b1432a3a7a6e", "source_id":"61c2fd43-a37f-4e87-8a4f-ac7653fba54f", "system_id":"719c6d98-32b4-452c-be6b-c976911d6b04", "owner":[ "listener" ], "collaborators":null, "created_at":"2018-08-03T18:42:37Z", "created_by":"listener", "updated_at":"2018-08-03T20:15:49Z", "updated_by":"listener", "name":"Test Target", "description":"", "target_type":"teradata", "data_path":{ "schema":"listener", "table":"sd_test_varchar" }, "sample_size":0, "system_info":{ "password":"encrypted:rzqhZuHyvbE60OsKkqy5C0PLdzbsvu1tldyCVNLMLKE=", "table":"sd_test_varchar", "target_id":"bc60ddcc-a40a-4a7e-abe5-b1432a3a7a6e", "username":"dbc" }, "state":"1", "production":false, "bundle":false, "bundle_type":"records", "bundle_interval":0, "data_map":{ "mapping":[ { "column":"data", "field":"data", "type":"VARCHAR" }, { "column":"source_id", "field":"source_id", "type":"VARCHAR" }, { "column":"time_stamp", "field":"time", "type":"TIMESTAMP WITH TIME ZONE" }, { "column":"uuid", "field":"uuid", "type":"VARCHAR" } ], "mapping_type":"manual" }, "properties":null, "use_dead_letter_queue":false, "dead_letter_queue":"" }
Response Codes
Code | Description |
---|---|
200 | Target successfully unlocked. |
400 | Required property missing from request. |
401 | Authorization header not found. |