diff --git a/idn/beta/paths/identity-attribute.yaml b/idn/beta/paths/identity-attribute.yaml index 9ea0afb..5bdbe41 100644 --- a/idn/beta/paths/identity-attribute.yaml +++ b/idn/beta/paths/identity-attribute.yaml @@ -68,6 +68,48 @@ post: $ref: "../../v3/responses/429.yaml" "500": $ref: "../../v3/responses/500.yaml" +put: + operationId: putIdentityAttribute + tags: + - Identity Attributes + summary: Update Identity Attribute + description: >- + This updates an existing identity attribute. + security: + - UserContextAuth: [ idn:identity-profile-attribute:create ] + parameters: + - in: path + name: name + schema: + type: string + description: The attribute's technical name. + required: true + example: displayName + requestBody: + required: true + content: + application/json: + schema: + $ref: "../../v3/schemas/identity-attributes/IdentityAttribute.yaml" + responses: + "201": + description: The identity attribute was created successfully + content: + application/json: + schema: + $ref: "../../v3/schemas/identity-attributes/IdentityAttribute.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" delete: operationId: deleteIdentityAttribute tags: diff --git a/idn/beta/paths/identity-attributes-bulk-delete.yaml b/idn/beta/paths/identity-attributes-bulk-delete.yaml index 3438370..2e0d5bc 100644 --- a/idn/beta/paths/identity-attributes-bulk-delete.yaml +++ b/idn/beta/paths/identity-attributes-bulk-delete.yaml @@ -12,10 +12,7 @@ post: content: application/json: schema: - name: ids - type: array - items: - type: string + $ref: "../../v3/schemas/identity-attributes/IdentityAttributeNames.yaml" responses: "204": $ref: "../../v3/responses/204.yaml" diff --git a/idn/v3/schemas/identity-attributes/IdentityAttributeNames.yaml b/idn/v3/schemas/identity-attributes/IdentityAttributeNames.yaml new file mode 100644 index 0000000..2990b8e --- /dev/null +++ b/idn/v3/schemas/identity-attributes/IdentityAttributeNames.yaml @@ -0,0 +1,7 @@ +name: ids +description: List of identity attributes' technical names +type: array +items: + type: string + example: "name" +example: ["name","displayName"]