Skip to main content

Update access

This endpoint allows you to update an existing access.

Endpoint

PATCH /user/v1/users/{user_id}/access/{access_id}

Parameters

NameLocationRequiredTypeDefault valueDescription
user_idURLYesIntegerThe user identifier
access_idURLYesIntegerThe access identifier
rolesBodyNoList of StringThe roles associated to the access

All parameters are optional.
Only specified parameters will be modified.

You cannot change the access type after it has been created, for this reason there is no type parameter on this entry.
Each type of access requires additional information.

ui_connection access

For more information, please visit the following link : UI Connection

NameLocationRequiredTypeDefault valueDescription
two_fa_enabledBodyNoBooleanDoes this access require two-factor authentication?

sso_connection access

For more information, please visit the following link : SSO Connection

NameLocationRequiredTypeDefault valueDescription
sso_idBodyNoStringThe access identifier on your Single Sign On authentication system

api_connection access

For more information, please visit the following link : API Connection

NameLocationRequiredTypeDefault valueDescription
nameBodyNoStringThe name of this API access. It can be used to differentiate between several accesses.
languageBodyNoStringYou can specify a specific language for an API acces.
This will ensure that messages returned by the API are not impacted by a change in the language of the associated user

profile access

For more information, please visit the following link : Profile

NameLocationRequiredTypeDefault valueDescription
nameBodyNoStringThe name of this profile. It can be used to differentiate between several accesses.

Response

A Access object.

Example Request

PATCH /user/v1/users/c0b48140-34cb-4187-acd7-aaa830dc97f9/access/433514
Body
{
"name": "New application API access V2",
"roles": [
"CLIENTNMS_WEBSERVICE_EVENT_R",
"CLIENTNMS_WEBSERVICE_DNS_RW",
"CLIENTNMS_WEBSERVICE_NDD_RW"
],
}

Example Response

{
"message": "OK",
"data": {
"id": 433514,
"user": "c0b48140-34cb-4187-acd7-aaa830dc97f9",
"type": "api_connection",
"customer_id": 1234,
"roles": [
"CLIENTNMS_WEBSERVICE_EVENT_R",
"CLIENTNMS_WEBSERVICE_DNS_RW",
"CLIENTNMS_WEBSERVICE_NDD_RW"
],
"last_login_at": null,
"language": "en",
"name": "New application API access V2",
"created_at": "2023-01-01T00:00:00+00:00",
"created_by": {
"id": "7a1506b9-9ce4-43f9-a6f0-e94ef4252277",
"firstname": "Company",
"lastname": "Administrator"
}
}
}