openapi: 3.2.0 info: title: Automile Resource Owner Lead API version: v1 tags: - name: ResourceOwnerLead paths: /v1/resourceowner/lead: post: tags: - ResourceOwnerLead summary: Creates or updates lead operationId: ResourceOwnerLeadController_CreateLead responses: '200': description: Ok '500': description: Internal server error security: - oauth2: [] requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateLeadModel' text/json: schema: $ref: '#/components/schemas/CreateLeadModel' application/*+json: schema: $ref: '#/components/schemas/CreateLeadModel' description: Lead information components: schemas: CreateLeadModel: required: - DeviceType - Email - FirstName - LastName - NumberOfDevices - PhoneNumber type: object properties: DeviceType: format: int32 enum: - 0 - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 255 type: integer NumberOfDevices: format: int32 type: integer FirstName: minLength: 1 type: string LastName: minLength: 1 type: string Email: minLength: 1 type: string CompanyName: type: string PhoneNumber: minLength: 1 type: string additionalProperties: false securitySchemes: oauth2: type: oauth2 flows: implicit: scopes: read: Read access to protected resources write: Write access to protected resources authorizationUrl: https://api.automile.com/login/ description: OAuth2 Implicit Grant x-provenance: method: harvested publisher: Automileab source: https://api.automile.com/swagger/v1/swagger.json note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json); stamped by stamp-openapi-provenance.py (roadmap#793)