diff --git a/static/api-specs/nerm/openapi.yaml b/static/api-specs/nerm/openapi.yaml index f3ec5df1bab6..ea9580859234 100644 --- a/static/api-specs/nerm/openapi.yaml +++ b/static/api-specs/nerm/openapi.yaml @@ -243,6 +243,11 @@ paths: # Form Attributes /form_attributes: $ref: "./paths/form_attributes.yaml" +# Isc Accounts + /isc/accounts: + $ref: "./paths/isc_accounts.yaml" + /isc/accounts/{id}: + $ref: "./paths/isc_account.yaml" security: diff --git a/static/api-specs/nerm/paths/isc_account.yaml b/static/api-specs/nerm/paths/isc_account.yaml index 9fe785708f50..82af72977c78 100644 --- a/static/api-specs/nerm/paths/isc_account.yaml +++ b/static/api-specs/nerm/paths/isc_account.yaml @@ -13,3 +13,18 @@ get: $ref: "../responses/400.yaml" '500': $ref: "../responses/500.yaml" +patch: + summary: Updates a profile via reverse mapping of schema-mapped fields + operationId: updateProfile + description: Updates a profile only through ISC schema-mapped attributes, performs a reverse mapping to match the NERM attributes to update. + tags: + - isc accounts + requestBody: + $ref: "../requestBodies/PATCH/ProfileAccount.yaml" + responses: + '200': + $ref: "../responses/Profile.yaml" + '400': + $ref: "../responses/400.yaml" + '500': + $ref: "../responses/500.yaml" diff --git a/static/api-specs/nerm/requestBodies/PATCH/ProfileAccount.yaml b/static/api-specs/nerm/requestBodies/PATCH/ProfileAccount.yaml new file mode 100644 index 000000000000..29395f9532cc --- /dev/null +++ b/static/api-specs/nerm/requestBodies/PATCH/ProfileAccount.yaml @@ -0,0 +1,29 @@ +content: + application/json: + schema: + type: object + properties: + id: + name: id + in: query + required: true + type: string + format: uuid + description: The profile account id. + example: 79ed1cb6-9977-4965-9bfe-f2bcc2424444 + profile: + name: profile + in: body + required: true + description: The profile object to be updated with its schema-mapped attributes. + type: object + properties: + attributes: + required: false + type: object + description: schema-mapped attributes to be updated + example: + attributes: + 'First Name': John + 'Last Name': Doe + 'Email': john.doe@sailpoint.com diff --git a/static/api-specs/nerm/schemas/PATCH/ProfileAccount.yaml b/static/api-specs/nerm/schemas/PATCH/ProfileAccount.yaml new file mode 100644 index 000000000000..e69de29bb2d1