post:
  operationId: enableAccountsForIdentities
  tags:
    - Accounts
  summary: Enable IDN Accounts for Identities
  description: >-
    This API submits tasks to enable IDN account for each identity provided in the request body.
  externalDocs:
    description: 'Learn more about enabling identities here'
    url: 'https://documentation.sailpoint.com/saas/help/common/users/user_access.html#enabling-user-identities'
  security:
    - oauth2: [idn:accounts-state:manage]
  requestBody:
    required: true
    content:
      application/json:
        schema:
          $ref: "../schemas/IdentitiesAccountsBulkRequest.yaml"
  responses:
    '207':
      description: Bulk response details.
      content:
        application/json:
          schema:
            type: array
            items:
              $ref: '../schemas/BulkIdentitiesAccountsResponse.yaml'
            example:
              - id: 2c9180858082150f0180893dbaf553fe
                statusCode: 404
                message: Referenced identity "2c9180858082150f0180893dbaf553fe" was not found.
              - id: 2c91808384203c2d018437e631158308
                statusCode: 202
                message:
    '400':
      $ref: '../../v3/responses/400.yaml'
    '401':
      $ref: '../../v3/responses/401.yaml'
    '403':
      $ref: '../../v3/responses/403.yaml'
    '429':
      $ref: '../../v3/responses/429.yaml'
    '500':
      $ref: '../../v3/responses/500.yaml'
