delete:
  operationId: deleteIdentityProfile
  tags:
    - Identity Profiles
  summary: Delete an Identity Profile
  description: >-
    This API endpoint deletes an Identity Profile based on its ID.

    A token with ORG_ADMIN authority is required to call this API to delete an Identity Profile.
  parameters:
    - in: path
      name: id
      schema:
        type: string
      required: true
      description: The Identity Profile ID.
      example: ef38f94347e94562b5bb8424a56397d8
  responses:
    '202':
      description: Accepted - Returned if the request was successfully accepted into the system.
      content:
        application/json:
          schema:
            $ref: '../../v3/schemas/BaseReferenceDto.yaml'
            description: A DTO with a TaskResult reference of the delete job
    '400':
      $ref: '../../v3/responses/400.yaml'
    '401':
      $ref: '../../v3/responses/401.yaml'
    '403':
      $ref: '../../v3/responses/403.yaml'
    '404':
      $ref: '../../v3/responses/404.yaml'
    '429':
      $ref: '../../v3/responses/429.yaml'
    '500':
      $ref: '../../v3/responses/500.yaml'
  security:
    - oauth2: [idn:identity-profile:manage]

patch:
  operationId: updateIdentityProfile
  tags:
    - Identity Profiles
  summary: Update the Identity Profile
  description: >-
    This update the specified Identity Profile.

    A token with ORG_ADMIN authority is required to call this API to update the Identity Profile.
    Some fields of the Schema cannot be updated. These fields are listed below.

    * id

    * name

    * created

    * modified
  security:
    - oauth2: [idn:identity-profile:manage]
  parameters:
    - in: path
      name: id
      schema:
        type: string
        format: uuid
      required: true
      description: The Identity Profile ID
      example: ef38f94347e94562b5bb8424a56397d8
  requestBody:
    required: true
    description: >-
      A list of Identity Profile update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard.
    content:
      application/json-patch+json:
        schema:
          type: array
          items:
            $ref: '../schemas/JsonPatchOperation.yaml'
        example:
          - op: "replace"
            path: "/description"
            value: "Updated description!"
  responses:
    '200':
      description: >-
        The updated Identity Profile.
      content:
        application/json:
          schema:
            $ref: '../schemas/IdentityProfile.yaml'
    '400':
      $ref: '../../v3/responses/400.yaml'
    '401':
      $ref: '../../v3/responses/401.yaml'
    '403':
      $ref: '../../v3/responses/403.yaml'
    '404':
      $ref: '../../v3/responses/404.yaml'
    '429':
      $ref: '../../v3/responses/429.yaml'
    '500':
      $ref: '../../v3/responses/500.yaml'
