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

# Create Assignment



## OpenAPI

````yaml /api-reference/openapi.json post /api/runtime-security/dlp/assignments
openapi: 3.1.0
info:
  title: Blindsight API
  version: 0.1.0
  description: >-
    The full Blindsight REST surface, generated from the running application.
    Replace the server host with your own deployment.


    For the Runtime Security integration surface (scan, proxy, tool calls) see
    the Runtime Security spec, which is hand written and carries worked
    examples.
servers:
  - url: https://api.your-blindsight.com
    description: Your Blindsight deployment
security: []
paths:
  /api/runtime-security/dlp/assignments:
    post:
      tags:
        - dlp-admin
      summary: Create Assignment
      operationId: create_assignment_api_runtime_security_dlp_assignments_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DlpAssignmentCreate'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    DlpAssignmentCreate:
      properties:
        policy_uuid:
          type: string
          title: Policy Uuid
        subject_type:
          type: string
          pattern: ^(user|device|group)$
          title: Subject Type
        subject_user_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Subject User Id
        subject_device_uuid:
          anyOf:
            - type: string
            - type: 'null'
          title: Subject Device Uuid
        subject_group_uuid:
          anyOf:
            - type: string
            - type: 'null'
          title: Subject Group Uuid
        priority:
          type: integer
          maximum: 10000
          minimum: 0
          title: Priority
          default: 100
      type: object
      required:
        - policy_uuid
        - subject_type
      title: DlpAssignmentCreate
    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
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````