> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bindbee.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Activity

> Creates a Activity object with the given values.



## OpenAPI

````yaml post /api/ats/v1/activities
openapi: 3.1.0
info:
  title: Bindbee APIs
  version: 0.1.0
servers:
  - url: https://api.bindbee.dev
  - url: https://api-eu.bindbee.dev
security: []
paths:
  /api/ats/v1/activities:
    post:
      tags:
        - Activity
      summary: Create Activity
      description: Creates a Activity object with the given values.
      operationId: create_activity_api_ats_v1_activities_post
      parameters:
        - name: x-connector-token
          in: header
          required: true
          schema:
            type: string
            title: X-Connector-Token
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAtsActivity'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    CreateAtsActivity:
      properties:
        user:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: User
          description: The user who owns the activity.
          examples:
            - 018b4bfb-5ece-70b1-ad5e-862a9433aa65
        activity_type:
          anyOf:
            - type: string
            - type: 'null'
          enum:
            - NOTE
            - EMAIL
            - OTHER
          title: Activity Type
          description: >-
            The type of activity. If the value is not one of the defined enum
            values, the original value passed through will be returned.
          examples:
            - NOTE
        subject:
          anyOf:
            - type: string
            - type: 'null'
          title: Subject
          description: The subject of the activity.
          examples:
            - Interview with John Doe
        body:
          anyOf:
            - type: string
            - type: 'null'
          title: Body
          description: >-
            The body of the activity. This can include notes, comments, or other
            relevant information.
          examples:
            - John Doe was interviewed for the position of Software Engineer.
        visibility:
          anyOf:
            - type: string
            - type: 'null'
          enum:
            - ADMIN_ONLY
            - PUBLIC
            - PRIVATE
          title: Visibility
          description: >-
            Visibility of the activity. If the value is not one of the defined
            enum values, the original value passed through will be returned.
          examples:
            - PUBLIC
        candidate:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Candidate
          description: Candidate who applied for the activity.
          examples:
            - 018b4bfb-5ece-70b1-ad5e-862a9433aa65
      type: object
      required:
        - user
        - activity_type
        - body
        - visibility
        - candidate
      title: CreateAtsActivity
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````