Lytx Groups API

The Groups API from Lytx — 2 operation(s) for groups.

Documentation

📖
Documentation
https://developer.lytx.com/openapispec/consent.openapi
📖
APIReference
https://developer.lytx.com/openapispec/consent.openapi
📖
Documentation
https://developer.lytx.com/openapispec/device.openapi
📖
APIReference
https://developer.lytx.com/openapispec/device.openapi
📖
Documentation
https://developer.lytx.com/openapispec/deviceplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/deviceplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/devicestatusinfoplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/devicestatusinfoplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/diagnosticsplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/diagnosticsplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/distance.openapi
📖
APIReference
https://developer.lytx.com/openapispec/distance.openapi
📖
Documentation
https://developer.lytx.com/openapispec/driver.assignment.openapi
📖
APIReference
https://developer.lytx.com/openapispec/driver.assignment.openapi
📖
Documentation
https://developer.lytx.com/openapispec/driversplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/driversplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/dvir.openapi
📖
APIReference
https://developer.lytx.com/openapispec/dvir.openapi
📖
Documentation
https://developer.lytx.com/openapispec/dvirplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/dvirplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/ecm.openapi
📖
APIReference
https://developer.lytx.com/openapispec/ecm.openapi
📖
Documentation
https://developer.lytx.com/openapispec/ecm.v2.openapi
📖
APIReference
https://developer.lytx.com/openapispec/ecm.v2.openapi
📖
Documentation
https://developer.lytx.com/openapispec/exceptioneventplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/exceptioneventplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/faultdataplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/faultdataplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/fleetutilizationplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/fleetutilizationplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/geofences.openapi
📖
APIReference
https://developer.lytx.com/openapispec/geofences.openapi
📖
Documentation
https://developer.lytx.com/openapispec/gps.openapi
📖
APIReference
https://developer.lytx.com/openapispec/gps.openapi
📖
Documentation
https://developer.lytx.com/openapispec/gpsplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/gpsplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/group.openapi
📖
APIReference
https://developer.lytx.com/openapispec/group.openapi
📖
Documentation
https://developer.lytx.com/openapispec/group.v2.openapi
📖
APIReference
https://developer.lytx.com/openapispec/group.v2.openapi
📖
Documentation
https://developer.lytx.com/openapispec/groupplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/groupplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/hos.openapi
📖
APIReference
https://developer.lytx.com/openapispec/hos.openapi
📖
Documentation
https://developer.lytx.com/openapispec/hosplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/hosplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/iftareportplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/iftareportplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/legacy.driversession.services.openapi
📖
APIReference
https://developer.lytx.com/openapispec/legacy.driversession.services.openapi
📖
Documentation
https://developer.lytx.com/openapispec/legacy.groups.openapi
📖
APIReference
https://developer.lytx.com/openapispec/legacy.groups.openapi
📖
Documentation
https://developer.lytx.com/openapispec/legacy.hos.openapi
📖
APIReference
https://developer.lytx.com/openapispec/legacy.hos.openapi
📖
Documentation
https://developer.lytx.com/openapispec/legacy.vehicleinfo.aggregator.openapi
📖
APIReference
https://developer.lytx.com/openapispec/legacy.vehicleinfo.aggregator.openapi
📖
Documentation
https://developer.lytx.com/openapispec/legacy.vehicles.openapi
📖
APIReference
https://developer.lytx.com/openapispec/legacy.vehicles.openapi
📖
Documentation
https://developer.lytx.com/openapispec/legacy.videoplatform.openapi
📖
APIReference
https://developer.lytx.com/openapispec/legacy.videoplatform.openapi
📖
Documentation
https://developer.lytx.com/openapispec/maintenancerecordsplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/maintenancerecordsplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/ruleplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/ruleplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/safety.openapi
📖
APIReference
https://developer.lytx.com/openapispec/safety.openapi
📖
Documentation
https://developer.lytx.com/openapispec/statusdataplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/statusdataplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/trips.openapi
📖
APIReference
https://developer.lytx.com/openapispec/trips.openapi
📖
Documentation
https://developer.lytx.com/openapispec/tripsplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/tripsplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/user.openapi
📖
APIReference
https://developer.lytx.com/openapispec/user.openapi
📖
Documentation
https://developer.lytx.com/openapispec/userplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/userplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/vehicles.openapi
📖
APIReference
https://developer.lytx.com/openapispec/vehicles.openapi
📖
Documentation
https://developer.lytx.com/openapispec/video.openapi
📖
APIReference
https://developer.lytx.com/openapispec/video.openapi
📖
Documentation
https://developer.lytx.com/openapispec/zonesplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/zonesplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/zonesputandpostplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/zonesputandpostplus.openapi

Specifications

OpenAPI Specification

lytx-groups-api-openapi.yml Raw ↑
openapi: 3.0.1
info:
  title: Lytx..Management.Api Consent Groups API
  description: 'API for retrieving and updating user consent status, requiring authentication.

    '
  version: 1.0.0
servers:
- url: https://api.lytx.com/consent-management
security:
- bearerAuth: []
tags:
- name: Groups
paths:
  /groups/auditlogs:
    post:
      tags:
      - Groups
      summary: Retrieve a list of group audit logs in the organization.
      description: Retrieve a list of group audit logs
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuditLogRequest'
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuditLog'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Bad Request
                  message:
                    type: string
                    example: Audit data prior to 2024-09-04T00:00:00Z is not available.
              examples:
                Minimum StartDate:
                  value:
                    error: Bad Request
                    message: Audit data prior to 2024-09-04T00:00:00Z is not available.
                Invalid Username:
                  value:
                    error: Bad Request
                    message: Username is invalid.
                Invalid GroupId:
                  value:
                    error: Bad Request
                    message: The GroupId must be a valid UUID.
                Invalid UserId:
                  value:
                    error: Bad Request
                    message: The UserId must be a valid UUID.
                Invalid StartDate:
                  value:
                    error: Bad Request
                    message: The StartDate must be a valid DateTime.
                Future StartDate:
                  value:
                    error: Bad Request
                    message: The StartDate cannot be in the future.
                StartDate and EndDate Required:
                  value:
                    error: Bad Request
                    message: The StartDate is required with the EndDate. The StartDate must be within 30 days before the EndDate.
                Invalid EndDate:
                  value:
                    error: Bad Request
                    message: The EndDate must be a valid DateTime.
                StartDate and EndDate Range:
                  value:
                    error: Bad Request
                    message: The EndDate must be within 30 days after the StartDate.
                EndDate Before StartDate:
                  value:
                    error: Bad Request
                    message: The EndDate must be after the StartDate.
                Invalid Limit:
                  value:
                    error: Bad Request
                    message: The Limit must be greater than 0 and less than or equal to 10000.
                Invalid Offset:
                  value:
                    error: Bad Request
                    message: The Offset must be greater or equal to 0.
                Invalid Sort:
                  value:
                    error: Bad Request
                    message: The Sort field is not valid.
                Invalid Order:
                  value:
                    error: Bad Request
                    message: The Order must be either 'asc' or 'desc' value.
                Invalid Action:
                  value:
                    error: Bad Request
                    message: The Action field is not valid.
        '401':
          description: Unauthorized
          content:
            text/plain:
              examples:
                Unauthorized:
                  value: ''
        '403':
          description: Forbidden
          content:
            text/plain:
              examples:
                Forbidden:
                  value: ''
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Internal Server Error
                  message:
                    type: string
                    example: Requested operation cannot be performed.
              examples:
                Internal Server Error:
                  value:
                    error: Internal Server Error
                    message: The requested operation cannot be performed.
  /groups/exportAuditLogs:
    post:
      tags:
      - Groups
      summary: Export group audit logs in the organization.
      description: Export group audit logs
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuditLogRequest'
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExportAuditLogResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Bad Request
                  message:
                    type: string
                    example: Audit data prior to 2024-09-04T00:00:00Z is not available.
components:
  schemas:
    ExportAuditLogResponse:
      title: ExportAuditLogResponse
      type: string
      properties:
        csvData:
          type: string
          example: VXNlciwgR3JvdXAocyksIEFjdGlvbiwgQWN0aW9uIERldGFpbHMsIEFjdGlvbiBEYXRlDQosIHp6eiwgREVMRVRFLCB6enogZGVsZXRlZCwgMy8zLzIwMjUgNDoyNDo0MyBQTQ0KLCB6eiwgREVMRVRFLCB6eiBkZWxldGVkLCAzLzMvMjAyNSA0OjI1OjI2IFBNDQosIGpua2FiYmFiaGphYiwgREVMRVRFLCBqbmthYmJhYmhqYWIgZGVsZXRlZCwgMy80LzIwMjUgNzozMDoyNCBBTQ0KLCB6enosIERFTEVURSwgenp6IGRlbGV0ZWQsIDMvNC8yMDI1IDc6NTE6MDYgQU0NCiwgenosIERFTEVURSwgenogZGVsZXRlZCwgMy80LzIwMjUgMTA6MjY6MjQgQU0NCiwgTmV3IGdyb3VwIDEsIERFTEVURSwgTmV3IGdyb3VwIDEgZGVsZXRlZCwgMy80LzIwMjUgNzozNDoyMCBQTQ0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ld0dyb3VwQWRkaW5nNDQsIERFTEVURSwgYWFOZXdHcm91cEFkZGluZzQ0IGRlbGV0ZWQsIDMvNC8yMDI1IDc6MzY6MDEgUE0NCiwgTmV3IGdyb3VwIDExLCBERUxFVEUsIE5ldyBncm91cCAxMSBkZWxldGVkLCAzLzQvMjAyNSA3OjM2OjA3IFBNDQosIE5ldyBncm91cCAxMiwgREVMRVRFLCBOZXcgZ3JvdXAgMTIgZGVsZXRlZCwgMy80LzIwMjUgNzozNjoxMyBQTQ0KLCBaWiBOZXdHcm91cEFkZGluZzMzLCBERUxFVEUsIFpaIE5ld0dyb3VwQWRkaW5nMzMgZGVsZXRlZCwgMy80LzIwMjUgNzozNjoxOSBQTQ0KLCBBQSBOZXcgZ3JvdXAsIERFTEVURSwgQUEgTmV3IGdyb3VwIGRlbGV0ZWQsIDMvNC8yMDI1IDc6MzY6MzIgUE0NCiwgZHNhZHNhZHNhMTIzNCwgREVMRVRFLCBkc2Fkc2Fkc2ExMjM0IGRlbGV0ZWQsIDMvNC8yMDI1IDc6MzY6NDAgUE0NCiwgVEVTVDEyMzQ0NDUsIERFTEVURSwgVEVTVDEyMzQ0NDUgZGVsZXRlZCwgMy80LzIwMjUgNzozNjo0NiBQTQ0KLCBOZXdHcm91cEFkZGluZ1JlZnJlc2gsIERFTEVURSwgTmV3R3JvdXBBZGRpbmdSZWZyZXNoIGRlbGV0ZWQsIDMvNC8yMDI1IDc6Mzc6MjAgUE0NCiwgVGVzdCBOZXcgMTIzIEdyb3VwLCBERUxFVEUsIFRlc3QgTmV3IDEyMyBHcm91cCBkZWxldGVkLCAzLzQvMjAyNSA3OjM3OjI2IFBNDQosIGJramJrYmZkLCBERUxFVEUsIGJramJrYmZkIGRlbGV0ZWQsIDMvNC8yMDI1IDc6Mzc6MzUgUE0NCiwgenosIERFTEVURSwgenogZGVsZXRlZCwgMy
          description: Base64 encoded string of the file contents.
    AuditLog:
      title: AuditLog
      type: object
      required:
      - id
      - action
      - createdDate
      - fullPath
      - fullPathId
      - isDeleted
      - name
      - parentId
      - revision
      - rootGroupId
      - updatedDate
      properties:
        id:
          type: string
          example: 0c3c9820-3ee4-e98d-0987-c7333e722f72
        action:
          type: string
          example: UPDATE
        createdDate:
          type: string
          example: '2023-01-01T00:00:00Z'
        deletedDate:
          type: boolean
          example: '9999-01-01T00:00:00'
        description:
          type: string
          example: this is a description
        email:
          type: string
          example: serena@gmail.com
        employeeId:
          type: string
          example: '12345678'
        firstName:
          type: string
          example: Serena
        fullPath:
          type: string
          example: '***Root\\Food%20Transportation%20INC'
        fullPathId:
          type: string
          example: 750c5226-0f0a-402d-dcec-f83ccbb5373e\\0c3c9820-3ee4-e98d-0987-c7333e722f72
        isDeleted:
          type: boolean
          example: false
        lastName:
          type: string
          example: Smith
        name:
          type: string
          example: Food Transportation INC
        parentId:
          type: string
          example: 750c5226-0f0a-402d-dcec-f83ccbb5373e
        revision:
          type: number
          example: 3
        rootGroupId:
          type: string
          example: 750c5226-0f0a-402d-dcec-f83ccbb5373e
        userId:
          type: string
          example: 110e60d8-fbed-217c-1720-6511d9f16361
        username:
          type: string
          example: serenasmith
        updatedDate:
          type: string
          example: '2023-02-01T00:00:00Z'
        actionDescription:
          type: string
          example: Group was updated
    AuditLogRequest:
      title: AuditLogRequest
      type: object
      required:
      - companyId
      properties:
        companyId:
          type: string
          example: '1129'
          description: ID of the company to filter the results.
        groupIdentifier:
          type: string
          example: 880e60d8-fbed-217a-1720-6511d9f16361
          description: ID of the group to retrieve audit logs for.
        includeSubgroups:
          type: boolean
          example: true
          description: If true, all subgroups under the specified group are included.
        action:
          type: string
          example: CREATE
          description: The description of the action type (CREATE, UPDATE, DELETE, IMPORT, MOVE).
        userIdentifier:
          type: string
          example: 880e60d8-fbed-217a-1720-6511d9f16361
          description: ID or username of the user for which to return audit data.
        sort:
          type: string
          example: UpdatedDate
          description: Name of the property to sort on.
        order:
          type: string
          example: desc
          description: Sort direction.
        startDate:
          type: string
          example: '2024-09-07T00:00:00Z'
          description: The start date and end date must be within 30 days of each other. If no date specified, returns data from the last 30 days.
        endDate:
          type: string
          example: '2024-09-10T00:00:00Z'
          description: The start date and end date must be within 30 days of each other. If no date specified, returns data from the last 30 days.
        limit:
          type: number
          example: 10000
          description: Number of records to return.
        offset:
          type: number
          example: 0
          description: Record to start with.
        searchtext:
          type: string
          example: testGroupName
          description: Search text to filter the results.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer