Create Consentless Lead
This request enables you to create a Consentless lead. A Service Provider or Channel partner can create a Consentless lead (see Create Consentless Lead in Multitenant Portal that is sent directly to the Operator Connect portal. As a result, the customer does not need to provide consent to partner their preferred operator in their Teams admin center. In addition, the 'Size' and 'Market' parameters are not populated for the lead generation.
URI
Copy
{{baseUrl}}/api/v2/oc/lead
HTTP Method
POST
Request Body
Parameter |
Type |
Description |
---|---|---|
tenantId |
string |
Microsoft Azure tenant subscription Id of the customer lead. |
companyName |
string |
The customer tenant company name. |
Example Request
Copy
{
"tenantId": "41747617-089b-4128-a9c8-7c9c2c596c25",
"companyName": "SIPTest2"
}
HTTP Responses
■ | 200 Success |
This request does not generate a Task Id.
■ | 400 Bad Request:The following shows an example of a lead that is not valid due to an incorrect Tenant Id. |
Copy
{
"errors": {
"tenantId": [
"After parsing a value an unexpected character was encountered: \". Path 'tenantId', line 3, position 2."
]
},
"type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
"title": "One or more validation errors occurred.",
"status": 400,
"traceId": "00-f05f803cbed1e5a202773c1dc235187f-a95568b2a37844c9-00"
}
The following error is displayed if the lead already exists.
Copy
{
"errors": {
"TenantId": [
"This MsTenant already exists as an UMP lead!"
],
"CompanyName": [
"Company name is already used for an UMP lead."
]
},
"type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
"title": "One or more validation errors occurred.",
"status": 400,
"traceId": "00-54ea6541df8ae6471f687fbcda12cabb-5fbf4d4c35799b30-00"
}
■ | 404 Not Found: The following message is displayed for an Invalid lead (no additional information provided). |
Copy
"Invalild lead"