Unlock a lead for the given customerId
POST/customers/ {customerId}/ unlocked-leads/ {leadId}/
v2
POST
leadfyndr-unlock-lead
Request
Responses
Usage examples
- cURL
- JavaScript SDK
- PHP SDK
$ curl \
--fail \
--location \
-X POST \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
https://api.mittwald.de/v2/customers/string/unlocked-leads/string
import { MittwaldAPIV2Client } from "@mittwald/api-client";
import { assertStatus } from "@mittwald/api-client-commons";
const client = MittwaldAPIClient.newWithToken(process.env.MITTWALD_API_TOKEN);
const response = await client.leadFyndr.unlockLead({
"leadId": "string",
"customerId": "string"
});
assertStatus(response, 200);
use \Mittwald\ApiClient\Generated\V2\Clients\LeadFyndr\UnlockLead\UnlockLeadRequest;
$client = MittwaldAPIClient::newWithToken(getenv('MITTWALD_API_TOKEN'));
$request = (new UnlockLeadRequest(
leadId: "string",
customerId: "string"
));
$response = $client->leadFyndr()->unlockLead($request);
var_dump($response->getBody();