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

# Assign Record User

> Assign an organization member to a Record. Idempotent: re-assigning an existing member returns the existing assignment.



## OpenAPI

````yaml post /records/{recordId}/assignees
openapi: 3.1.0
info:
  title: Scorecard API
  description: REST API for Scorecard
  version: 1.0.0
servers:
  - url: https://api2.scorecard.io/api/v2
security:
  - ApiKeyAuth: []
paths:
  /records/{recordId}/assignees:
    post:
      summary: Assign Record User
      description: >-
        Assign an organization member to a Record. Idempotent: re-assigning an
        existing member returns the existing assignment.
      operationId: assignRecordUser
      parameters:
        - in: path
          name: recordId
          description: The ID of the Record to assign.
          schema:
            type: string
            example: '777'
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                assigneeUserId:
                  type: string
                  description: >-
                    The ID of the organization member to assign. Idempotent:
                    re-assigning an existing member returns the existing
                    assignment.
              required:
                - assigneeUserId
            examples:
              Assign a member:
                value:
                  assigneeUserId: user_2abc123
                summary: Assign a member
                description: Assign the given member to the Record.
      responses:
        '201':
          description: The created (or existing) assignment.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecordAssignment'
              examples:
                Created assignment:
                  value:
                    id: '1'
                    recordId: '777'
                    assigneeUserId: user_2abc123
                    assignedByUserId: user_2def456
                    createdAt: '2026-03-01T12:00:00.000Z'
                  summary: Created assignment
                  description: Response after successfully assigning a member to a Record.
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '500':
          $ref: '#/components/responses/ServiceError'
components:
  schemas:
    RecordAssignment:
      type: object
      properties:
        id:
          type: string
          description: The ID of the record assignment.
        recordId:
          type: string
          description: The ID of the Record this assignment belongs to.
        assigneeUserId:
          type: string
          description: The ID of the organization member assigned to the Record.
        assignedByUserId:
          type: string
          description: The ID of the user who created the assignment.
        createdAt:
          type: string
          description: The ISO 8601 timestamp when the assignment was created.
      required:
        - id
        - recordId
        - assigneeUserId
        - assignedByUserId
        - createdAt
      description: An assignment of an organization member to a Record.
    ApiError:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        details:
          type: object
          additionalProperties: true
          x-stainless-any: true
      required:
        - code
        - message
        - details
      description: An API error.
  responses:
    UnauthenticatedError:
      description: Error indicating that the request is not authenticated.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          examples:
            Authentication failure:
              value:
                code: UNAUTHORIZED
                message: Invalid or missing authentication token
                details: {}
              summary: Authentication failure
              description: >-
                Error returned when authentication credentials are invalid or
                missing.
    ServiceError:
      description: >-
        An internal service error indicating an issue with the Scorecard
        service.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          examples:
            Internal error:
              value:
                code: INTERNAL_ERROR
                message: An unexpected error occurred while processing your request.
                details: {}
              summary: Internal error
              description: Generic error when an unexpected internal issue occurs.
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: starts with ak_

````