# Get a Activity By No

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v2/activities/{no}:
    get:
      summary: Get a Activity By No
      deprecated: false
      description: ''
      tags:
        - Venio/Activity
      parameters:
        - name: 'no'
          in: path
          description: หมายเลขกิจกรรม
          required: true
          schema:
            type: string
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
        - name: Ocp-Apim-Subscription-Key
          in: header
          description: รหัส subscriptionของลูกค้า
          required: true
          example: <Your-Subscription-Key>
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: integer
                    description: "<p>สถานะของ Business Code ถ้า<br>Success = 1000<br>Error 1 ตัว = 4001<br>Error มากกว่า 1 ตัว = 4002\_ \_ <br>หรือเป็น Subcode ที่ต้องการจะแสดงเพื่อสื่อความหมายของ Error โดย subcode จะเป็นตัวเดียวกับ business error code หรือไม่ก็ได้ เพื่อความสะดวกในการแสดงผล<p>"
                    examples:
                      - 1000
                  httpStatusCode:
                    type: integer
                    description: |-
                      สถานะ  code ของ httpเช่น
                      200 Ok
                      201 Created
                      400 BadRequest
                      401 Unauthorized
                      404 Record not found
                      500 Internal Server Error
                    examples:
                      - 200
                  data:
                    type: object
                    properties:
                      value:
                        $ref: '#/components/schemas/Activity'
                      statusCode:
                        type: integer
                        description: |-
                          สถานะ  code ของ httpเช่น
                          200 Ok
                          201 Created
                          400 BadRequest
                          401 Unauthorized
                          404 Record not found
                          500 Internal Server Error
                    x-apidog-orders:
                      - value
                      - statusCode
                    required:
                      - value
                      - statusCode
                    description: |-
                      ข้อมูลที่จะแสดง ไม่จำกัดรูปแบบว่าจะเป็นเช่นไร 
                      ตอนเรียกออกมาสามารเป็น Array และ Object ได้
                    x-apidog-ignore-properties: []
                x-apidog-orders:
                  - statusCode
                  - httpStatusCode
                  - data
                required:
                  - statusCode
                  - httpStatusCode
                  - data
                x-apidog-ignore-properties: []
              example:
                data:
                  value:
                    activityId: 1
                    teamId: 1
                    activityNo: string
                    subject: string
                    groupId: 1
                    activityTypeId: 1
                    customerId: 1
                    customerState: 1
                    latitude: 0
                    longitude: 0
                    location: string
                    locationName: string
                    dateCheckin: 2020-11-17T18:30:09+0700
                    dateCheckout: 2020-11-17T18:31:07+0700
                    isActive: true
                    statusId: 1
                    isAdHoc: false
                    assignToUserId: string
                    dateAppointmentStart: 2020-11-17T18:00:46+0700
                    dateAppointmentEnd: 2020-11-17T20:00:46+0700
                    startLatitude: 0
                    startLongitude: 0
                    startLocation: string
                    startLocationName: string
                    startPlaceId: string
                    visitLatitude: 0
                    visitLongitude: 0
                    visitLocation: string
                    visitLocationName: string
                    visitPlaceId: string
                    totalDistance: 0
                    dateAppointmented: 2020-11-17T17:56:59+0700
                    appointmentedByUserId: string
                    dateApproved: 2020-11-17T17:56:59+0700
                    approvedByUserId: string
                    userRoleId: string
                    userOrgString: string
                    userOrgLevel: 1
                    checkoutLatitude: 0
                    checkoutLongitude: 0
                    checkoutLocation: string
                    checkoutLocationName: string
                    activityReport: string
                    addressId: 1
                    refActivityId: 1
                    dateCreated: 2020-11-17T17:56:59+0700
                    createdByUserId: string
                    dateModified: 2022-11-21T18:48:18+0700
                    modifiedByUserId: string
                    customer:
                      customerId: 1
                      companyId: 1
                      customerCode: string
                      customerName: string
                      type: 1
                      customerType: 1
                      branch: string
                      addressPart1: string
                      phone: string
                      mobile: string
                      fax: string
                      notes: string
                      isActive: true
                      dateChangeToCustomer: 2022-07-06T16:26:21+0700
                      createdByUserId: string
                      dateCreated: 2020-07-18T12:30:57+0700
                      modifiedByUserId: string
                      dateModified: 2022-09-08T17:38:21+0700
                      customerGroupId: 1
                      leadStatus: 1
                      email: string
                      customerStateId: 1
                      hasOwner: true
                      dateAcquired: 2022-07-06T16:26:21+0700
                      uniqueName: string
                      isRequireSoundex: true
                      status: 1
                      dateFollowUp: 2022-05-17T09:00:00+0700
                      dateLatestUpdated: 2022-12-10T21:00:00+0700
                      pictureUrl: string
                    activityStates:
                      - activityStateId: 1
                        activityId: 1
                        statusId: 1
                        createdByUserId: string
                        dateCreated: 2020-11-17T18:30:09+0700
                        approveLevel: 1
                        seq: 0
                      - activityStateId: 1
                        activityId: 1
                        statusId: 1
                        createdByUserId: string
                        dateCreated: 2020-11-17T17:56:59+0700
                        approveLevel: 1
                        seq: 0
                    activitySubtypes:
                      - activityTypeId: 1
                        typeName: string
                    createType: 3
                    isVisibleCustomerDetail: true
                    staffName: string
                    detailActivities:
                      - 0
                    detailActivity: string
                    detailActivityModels:
                      - activityTypeId: 1
                        activityTypeName: string
                    assignToUser:
                      userId: string
                      username: string
                      companyId: 1
                      companyName: string
                      teamId: 1
                      teamName: string
                      staffCode: string
                      title: ''
                      firstname: string
                      lastname: string
                      fullname: string
                      position: string
                      email: string
                      phoneNumber: string
                      orgString: string
                      orgLevel: 1
                      latitude: 0
                      longitude: 0
                      location: string
                      locationName: string
                      isActive: true
                      createdByUserId: string
                      dateCreated: 2018-11-05T10:13:59+0700
                      modifiedByUserId: string
                      dateModified: 2023-01-13T10:26:26+0700
                      hasPicture: true
                      role: string
                      roleId: string
                      siteId: 1
                      isAgreementPdpa: true
                      dateAgreementPdpa: 2020-08-26T07:13:22+0700
                      emailSubscription: 1
                      identityUserId: string
                      uniqueName: string
                      inAppSubscription: 1
                      userType: 1
                      platformId: 0
                      isActiveEmpeo: true
                      refCompanyId: 1
                      refClientId: 1
                      signatureUrl: string
                      emailSupscriptionFlag: 1
                      inAppSupscriptionFlag: 1
                      pictureUrl: string
                    assignToUsers:
                      - userId: string
                        fullname: string
                        dateModified: 2021-11-17T18:05:16+0700
                        pictureUrl: string
                        statusUser: 601
                    contact: ''
                    contacts:
                      - contactId: 1
                        contactName: string
                        position: string
                    keyActivity: string
                    assignTo: string
                    statusName: string
                    assignedBy: string
                    attachments:
                      - attachmentId: 1
                        refId: 1
                        type: 1
                        dateCreated: 2023-01-25T15:26:54+0700
                        url: string
                        urlResponseUpload: string
                        thumbnail: string
                    customerName: string
                    pictureUrl: string
                    canAddMember: true
                  statusCode: 200
                statusCode: 1000
                httpStatusCode: 200
          headers: {}
          x-apidog-name: OK
        '400':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      value:
                        type: string
                        description: "รายละเอียดข้อมูลที่ติด\_error"
                      statusCode:
                        type: integer
                        description: "\_ \_<p> สถานะ code ของ httpเช่น:<br>200 Ok <br>201 Created <br>400 BadRequest <br>"
                    x-apidog-orders:
                      - value
                      - statusCode
                    required:
                      - value
                      - statusCode
                    x-apidog-ignore-properties: []
                  hasError:
                    type: boolean
                    description: "\_ \_<p> สถานะ code ของ httpเช่น:<br>200 Ok <br>201 Created <br>400 BadRequest <br>"
                  errorMessage:
                    type: string
                    description: รายละเอียดerror
                  statusCode:
                    type: integer
                    description: "<p>สถานะของ Business Code ถ้า<br>Success = 1000<br>Error 1 ตัว = 4001<br>Error มากกว่า 1 ตัว = 4002\_ \_ <br>หรือเป็น Subcode ที่ต้องการจะแสดงเพื่อสื่อความหมายของ Error โดย subcode จะเป็นตัวเดียวกับ business error code หรือไม่ก็ได้ เพื่อความสะดวกในการแสดงผล<p>"
                  httpStatusCode:
                    type: integer
                    description: "\_ \_<p> สถานะ code ของ httpเช่น:<br>200 Ok <br>201 Created <br>400 BadRequest <br>"
                x-apidog-orders:
                  - data
                  - hasError
                  - errorMessage
                  - statusCode
                  - httpStatusCode
                required:
                  - data
                  - hasError
                  - errorMessage
                  - statusCode
                  - httpStatusCode
                x-apidog-ignore-properties: []
              example:
                data:
                  value: Activity Id "1" doesn't exist.
                  statusCode: 400
                hasError: true
                errorMessage: Invalid parameters entered
                statusCode: 1102
                httpStatusCode: 400
          headers: {}
          x-apidog-name: Bad Request
        '401':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: integer
                    description: >-
                      <p>สถานะ code ของ httpเช่น<br>200 Ok<br>201 Created<br>400
                      BadRequest<br>401 Unauthorized<br>404 Record not
                      found<br>500 Internal Server Error</p>
                  message:
                    type: string
                    description: คำบรรยาย error
                x-apidog-orders:
                  - statusCode
                  - message
                required:
                  - statusCode
                  - message
                x-apidog-ignore-properties: []
              example:
                statusCode: 401
                message: >-
                  Access denied due to invalid subscription key. Make sure to
                  provide a valid key for an active subscription.
          headers: {}
          x-apidog-name: Unauthorized
        '403':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: integer
                    description: "<p>สถานะของ Business Code ถ้า<br>Success = 1000<br>Error 1 ตัว = 4001<br>Error มากกว่า 1 ตัว = 4002\_ \_ <br>หรือเป็น Subcode ที่ต้องการจะแสดงเพื่อสื่อความหมายของ Error โดย subcode จะเป็นตัวเดียวกับ business error code หรือไม่ก็ได้ เพื่อความสะดวกในการแสดงผล<p>"
                  httpStatusCode:
                    type: integer
                    description: |-
                      สถานะ  code ของ httpเช่น
                      200 Ok
                      201 Created
                      400 BadRequest
                      401 Unauthorized
                      404 Record not found
                      500 Internal Server Error
                  errorMessage:
                    type: string
                    description: คำอธิบายเกี่ยวกับ error
                  hasError:
                    type: boolean
                    description: |-
                      มี error ไหม
                      true = มี
                      false = ไม่มี
                  data:
                    type: object
                    properties:
                      authenticationSchemes:
                        type: array
                        items:
                          type: string
                        description: ค่า Enum ของ authenticationSchemes
                    x-apidog-orders:
                      - authenticationSchemes
                    required:
                      - authenticationSchemes
                    description: |-
                      ข้อมูลที่จะแสดง ไม่จำกัดรูปแบบว่าจะเป็นเช่นไร 
                      ตอนเรียกออกมาสามารเป็น Array และ Object ได้
                    x-apidog-ignore-properties: []
                x-apidog-orders:
                  - statusCode
                  - httpStatusCode
                  - errorMessage
                  - hasError
                  - data
                description: ' กรณีที่คนที่ดูไม่มี permission view data เช่นลูกน้องดู activity หัวหน้า'
                required:
                  - statusCode
                  - httpStatusCode
                  - errorMessage
                  - hasError
                  - data
                x-apidog-ignore-properties: []
              example:
                data:
                  authenticationSchemes: []
                hasError: true
                errorMessage: Invalid access rights
                statusCode: 9503
                httpStatusCode: 403
          headers: {}
          x-apidog-name: Forbidden
        '404':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: integer
                    description: "<p>สถานะ\_code\_ของ\_httpเช่น<br>200\_Ok<br>201\_Created<br>400\_BadRequest<br>401\_Unauthorized<br>404\_Record\_not\_found<br>500\_Internal\_Server\_Error</p>"
                  message:
                    type: string
                    description: คำบรรยาย error
                x-apidog-orders:
                  - statusCode
                  - message
                required:
                  - statusCode
                  - message
                x-apidog-ignore-properties: []
              example:
                statusCode: 404
                message: Resource not found
          headers: {}
          x-apidog-name: Record Not Found
      security:
        - bearer: []
      x-apidog-folder: Venio/Activity
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/351895/apis/api-18108931-run
components:
  schemas:
    Activity:
      type: object
      properties:
        activityId:
          type: integer
        teamId:
          type: integer
        activityNo:
          type: string
        subject:
          type: string
        groupId:
          type: integer
        activityTypeId:
          type: integer
        customerId:
          type: integer
        customerState:
          type: integer
        latitude:
          type: integer
        longitude:
          type: integer
        location:
          type: string
        locationName:
          type: string
        dateCheckin:
          type: string
        dateCheckout:
          type: string
        isActive:
          type: boolean
        statusId:
          type: integer
        isAdHoc:
          type: boolean
        assignToUserId:
          type: string
        dateAppointmentStart:
          type: string
        dateAppointmentEnd:
          type: string
        startLatitude:
          type: integer
        startLongitude:
          type: integer
        startLocation:
          type: string
        startLocationName:
          type: string
        startPlaceId:
          type: string
        visitLatitude:
          type: integer
        visitLongitude:
          type: integer
        visitLocation:
          type: string
        visitLocationName:
          type: string
        visitPlaceId:
          type: string
        totalDistance:
          type: integer
        dateAppointmented:
          type: string
        appointmentedByUserId:
          type: string
        dateApproved:
          type: string
        approvedByUserId:
          type: string
        userRoleId:
          type: string
        userOrgString:
          type: string
        userOrgLevel:
          type: integer
        checkoutLatitude:
          type: integer
        checkoutLongitude:
          type: integer
        checkoutLocation:
          type: string
        checkoutLocationName:
          type: string
        activityReport:
          type: string
        addressId:
          type: integer
        refActivityId:
          type: integer
        dateCreated:
          type: string
        createdByUserId:
          type: string
        dateModified:
          type: string
        modifiedByUserId:
          type: string
        customer:
          type: object
          properties:
            customerId:
              type: integer
            companyId:
              type: integer
            customerCode:
              type: string
            customerName:
              type: string
            type:
              type: integer
            customerType:
              type: integer
            branch:
              type: string
            addressPart1:
              type: string
            phone:
              type: string
            mobile:
              type: string
            fax:
              type: string
            notes:
              type: string
            isActive:
              type: boolean
            dateChangeToCustomer:
              type: string
            createdByUserId:
              type: string
            dateCreated:
              type: string
            modifiedByUserId:
              type: string
            dateModified:
              type: string
            customerGroupId:
              type: integer
            leadStatus:
              type: integer
            email:
              type: string
            customerStateId:
              type: integer
            hasOwner:
              type: boolean
            dateAcquired:
              type: string
            uniqueName:
              type: string
            isRequireSoundex:
              type: boolean
            status:
              type: integer
            dateFollowUp:
              type: string
            dateLatestUpdated:
              type: string
            pictureUrl:
              type: string
          required:
            - customerId
            - companyId
            - customerCode
            - customerName
            - type
            - customerType
            - branch
            - addressPart1
            - phone
            - mobile
            - fax
            - notes
            - isActive
            - dateChangeToCustomer
            - createdByUserId
            - dateCreated
            - modifiedByUserId
            - dateModified
            - customerGroupId
            - leadStatus
            - email
            - customerStateId
            - hasOwner
            - dateAcquired
            - uniqueName
            - isRequireSoundex
            - status
            - dateFollowUp
            - dateLatestUpdated
            - pictureUrl
          x-apidog-orders:
            - customerId
            - companyId
            - customerCode
            - customerName
            - type
            - customerType
            - branch
            - addressPart1
            - phone
            - mobile
            - fax
            - notes
            - isActive
            - dateChangeToCustomer
            - createdByUserId
            - dateCreated
            - modifiedByUserId
            - dateModified
            - customerGroupId
            - leadStatus
            - email
            - customerStateId
            - hasOwner
            - dateAcquired
            - uniqueName
            - isRequireSoundex
            - status
            - dateFollowUp
            - dateLatestUpdated
            - pictureUrl
          x-apidog-ignore-properties: []
        activityStates:
          type: array
          items:
            type: object
            properties:
              activityStateId:
                type: integer
              activityId:
                type: integer
              statusId:
                type: integer
              createdByUserId:
                type: string
              dateCreated:
                type: string
              approveLevel:
                type: integer
              seq:
                type: integer
            required:
              - activityStateId
              - activityId
              - statusId
              - createdByUserId
              - dateCreated
              - approveLevel
              - seq
            x-apidog-orders:
              - activityStateId
              - activityId
              - statusId
              - createdByUserId
              - dateCreated
              - approveLevel
              - seq
            x-apidog-ignore-properties: []
        activitySubtypes:
          type: array
          items:
            type: object
            properties:
              activityTypeId:
                type: integer
              typeName:
                type: string
            x-apidog-orders:
              - activityTypeId
              - typeName
            x-apidog-ignore-properties: []
        createType:
          type: integer
        isVisibleCustomerDetail:
          type: boolean
        staffName:
          type: string
        detailActivities:
          type: array
          items:
            type: integer
        detailActivity:
          type: string
        detailActivityModels:
          type: array
          items:
            type: object
            properties:
              activityTypeId:
                type: integer
              activityTypeName:
                type: string
            x-apidog-orders:
              - activityTypeId
              - activityTypeName
            x-apidog-ignore-properties: []
        assignToUser:
          type: object
          properties:
            userId:
              type: string
            username:
              type: string
            companyId:
              type: integer
            companyName:
              type: string
            teamId:
              type: integer
            teamName:
              type: string
            staffCode:
              type: string
            title:
              type: string
            firstname:
              type: string
            lastname:
              type: string
            fullname:
              type: string
            position:
              type: string
            email:
              type: string
            phoneNumber:
              type: string
            orgString:
              type: string
            orgLevel:
              type: integer
            latitude:
              type: integer
            longitude:
              type: integer
            location:
              type: string
            locationName:
              type: string
            isActive:
              type: boolean
            createdByUserId:
              type: string
            dateCreated:
              type: string
            modifiedByUserId:
              type: string
            dateModified:
              type: string
            hasPicture:
              type: boolean
            role:
              type: string
            roleId:
              type: string
            siteId:
              type: integer
            isAgreementPdpa:
              type: boolean
            dateAgreementPdpa:
              type: string
            emailSubscription:
              type: integer
            identityUserId:
              type: string
            uniqueName:
              type: string
            inAppSubscription:
              type: integer
            userType:
              type: integer
            platformId:
              type: integer
            isActiveEmpeo:
              type: boolean
            refCompanyId:
              type: integer
            refClientId:
              type: integer
            signatureUrl:
              type: string
            emailSupscriptionFlag:
              type: integer
            inAppSupscriptionFlag:
              type: integer
            pictureUrl:
              type: string
          required:
            - userId
            - username
            - companyId
            - companyName
            - teamId
            - teamName
            - staffCode
            - title
            - firstname
            - lastname
            - fullname
            - position
            - email
            - phoneNumber
            - orgString
            - orgLevel
            - latitude
            - longitude
            - location
            - locationName
            - isActive
            - createdByUserId
            - dateCreated
            - modifiedByUserId
            - dateModified
            - hasPicture
            - role
            - roleId
            - siteId
            - isAgreementPdpa
            - dateAgreementPdpa
            - emailSubscription
            - identityUserId
            - uniqueName
            - inAppSubscription
            - userType
            - platformId
            - isActiveEmpeo
            - refCompanyId
            - refClientId
            - signatureUrl
            - emailSupscriptionFlag
            - inAppSupscriptionFlag
            - pictureUrl
          x-apidog-orders:
            - userId
            - username
            - companyId
            - companyName
            - teamId
            - teamName
            - staffCode
            - title
            - firstname
            - lastname
            - fullname
            - position
            - email
            - phoneNumber
            - orgString
            - orgLevel
            - latitude
            - longitude
            - location
            - locationName
            - isActive
            - createdByUserId
            - dateCreated
            - modifiedByUserId
            - dateModified
            - hasPicture
            - role
            - roleId
            - siteId
            - isAgreementPdpa
            - dateAgreementPdpa
            - emailSubscription
            - identityUserId
            - uniqueName
            - inAppSubscription
            - userType
            - platformId
            - isActiveEmpeo
            - refCompanyId
            - refClientId
            - signatureUrl
            - emailSupscriptionFlag
            - inAppSupscriptionFlag
            - pictureUrl
          x-apidog-ignore-properties: []
        assignToUsers:
          type: array
          items:
            type: object
            properties:
              userId:
                type: string
              fullname:
                type: string
              dateModified:
                type: string
              pictureUrl:
                type: string
              statusUser:
                type: integer
            x-apidog-orders:
              - userId
              - fullname
              - dateModified
              - pictureUrl
              - statusUser
            x-apidog-ignore-properties: []
        contact:
          type: string
        contacts:
          type: array
          items:
            type: object
            properties:
              contactId:
                type: integer
              contactName:
                type: string
              position:
                type: string
            x-apidog-orders:
              - contactId
              - contactName
              - position
            x-apidog-ignore-properties: []
        keyActivity:
          type: string
        assignTo:
          type: string
        statusName:
          type: string
        assignedBy:
          type: string
        attachments:
          type: array
          items:
            type: object
            x-apidog-refs:
              01JYH0M5GZZA3TXTP582Y0FVZ3:
                $ref: '#/components/schemas/AttachmentDto'
                x-apidog-overrides:
                  filename: null
                  extension: null
                  fileSize: null
                  createdByUserId: null
                  companyId: null
                  isProcessed: null
                  data: null
                  timeStamp: null
                  'no': null
                  url: null
                  urlUpload: null
                  localFileURL: null
                  uuid: null
                  publicUrl: null
                  seq: null
                  isCover: null
            x-apidog-orders:
              - 01JYH0M5GZZA3TXTP582Y0FVZ3
            properties:
              attachmentId: &ref_0
                type: integer
                format: int64
              refId: &ref_1
                type: integer
                format: int64
              type: &ref_2
                type: integer
                format: int32
              isActive: &ref_3
                type: boolean
              dateCreated: &ref_4
                type: string
                format: date-time
              resourceUrl: &ref_5
                type: string
                nullable: true
              urlResponseUpload: &ref_6
                type: string
                readOnly: true
                nullable: true
              thumbnail: &ref_7
                type: string
                readOnly: true
                nullable: true
            x-apidog-ignore-properties:
              - attachmentId
              - refId
              - type
              - isActive
              - dateCreated
              - resourceUrl
              - urlResponseUpload
              - thumbnail
        customerName:
          type: string
        pictureUrl:
          type: string
        canAddMember:
          type: boolean
      required:
        - activityId
        - teamId
        - activityNo
        - subject
        - groupId
        - activityTypeId
        - customerId
        - customerState
        - latitude
        - longitude
        - location
        - locationName
        - dateCheckin
        - dateCheckout
        - isActive
        - statusId
        - isAdHoc
        - assignToUserId
        - dateAppointmentStart
        - dateAppointmentEnd
        - startLatitude
        - startLongitude
        - startLocation
        - startLocationName
        - startPlaceId
        - visitLatitude
        - visitLongitude
        - visitLocation
        - visitLocationName
        - visitPlaceId
        - totalDistance
        - dateAppointmented
        - appointmentedByUserId
        - dateApproved
        - approvedByUserId
        - userRoleId
        - userOrgString
        - userOrgLevel
        - checkoutLatitude
        - checkoutLongitude
        - checkoutLocation
        - checkoutLocationName
        - activityReport
        - addressId
        - refActivityId
        - dateCreated
        - createdByUserId
        - dateModified
        - modifiedByUserId
        - customer
        - activityStates
        - activitySubtypes
        - createType
        - isVisibleCustomerDetail
        - staffName
        - detailActivities
        - detailActivity
        - detailActivityModels
        - assignToUser
        - assignToUsers
        - contact
        - contacts
        - keyActivity
        - assignTo
        - statusName
        - assignedBy
        - attachments
        - customerName
        - pictureUrl
        - canAddMember
      x-apidog-orders:
        - activityId
        - teamId
        - activityNo
        - subject
        - groupId
        - activityTypeId
        - customerId
        - customerState
        - latitude
        - longitude
        - location
        - locationName
        - dateCheckin
        - dateCheckout
        - isActive
        - statusId
        - isAdHoc
        - assignToUserId
        - dateAppointmentStart
        - dateAppointmentEnd
        - startLatitude
        - startLongitude
        - startLocation
        - startLocationName
        - startPlaceId
        - visitLatitude
        - visitLongitude
        - visitLocation
        - visitLocationName
        - visitPlaceId
        - totalDistance
        - dateAppointmented
        - appointmentedByUserId
        - dateApproved
        - approvedByUserId
        - userRoleId
        - userOrgString
        - userOrgLevel
        - checkoutLatitude
        - checkoutLongitude
        - checkoutLocation
        - checkoutLocationName
        - activityReport
        - addressId
        - refActivityId
        - dateCreated
        - createdByUserId
        - dateModified
        - modifiedByUserId
        - customer
        - activityStates
        - activitySubtypes
        - createType
        - isVisibleCustomerDetail
        - staffName
        - detailActivities
        - detailActivity
        - detailActivityModels
        - assignToUser
        - assignToUsers
        - contact
        - contacts
        - keyActivity
        - assignTo
        - statusName
        - assignedBy
        - attachments
        - customerName
        - pictureUrl
        - canAddMember
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    AttachmentDto:
      type: object
      properties:
        attachmentId: *ref_0
        refId: *ref_1
        type: *ref_2
        filename:
          type: string
          nullable: true
        extension:
          type: string
          nullable: true
        fileSize:
          type: integer
          format: int32
        isActive: *ref_3
        createdByUserId:
          type: string
          nullable: true
        dateCreated: *ref_4
        resourceUrl: *ref_5
        companyId:
          type: integer
          format: int32
          nullable: true
        isProcessed:
          type: boolean
        data:
          type: string
          format: byte
          nullable: true
        timeStamp:
          type: integer
          format: int64
        'no':
          type: string
          nullable: true
        url:
          type: string
          nullable: true
        urlUpload:
          type: string
          nullable: true
        urlResponseUpload: *ref_6
        localFileURL:
          type: string
          nullable: true
        thumbnail: *ref_7
        uuid:
          type: string
          format: uuid
        publicUrl:
          type: string
          nullable: true
        seq:
          type: integer
          format: int32
        isCover:
          type: boolean
      additionalProperties: false
      x-apidog-orders:
        - attachmentId
        - refId
        - type
        - filename
        - extension
        - fileSize
        - isActive
        - createdByUserId
        - dateCreated
        - resourceUrl
        - companyId
        - isProcessed
        - data
        - timeStamp
        - 'no'
        - url
        - urlUpload
        - urlResponseUpload
        - localFileURL
        - thumbnail
        - uuid
        - publicUrl
        - seq
        - isCover
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes:
    bearerAuth:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
      description: ใส่ JWT Token ในรูปแบบ Bearer {token}
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://api.gofive.co.th
    description: Production
security:
  - bearerAuth: []
    x-apidog:
      schemeGroups:
        - id: uyL_cJmK7q60QJZRTi5ot
          schemeIds:
            - bearerAuth
      required: true
      use:
        id: uyL_cJmK7q60QJZRTi5ot
      scopes:
        uyL_cJmK7q60QJZRTi5ot:
          bearerAuth: []

```
