Set or clear a person's access profile
curl --request POST \
--url https://api.usenexio.com/access/profile-assignments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"profile": "<string>",
"reason": "<string>",
"operator": "<string>",
"revoke": true
}
'import requests
url = "https://api.usenexio.com/access/profile-assignments"
payload = {
"email": "<string>",
"profile": "<string>",
"reason": "<string>",
"operator": "<string>",
"revoke": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
email: '<string>',
profile: '<string>',
reason: '<string>',
operator: '<string>',
revoke: true
})
};
fetch('https://api.usenexio.com/access/profile-assignments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"action": "<string>",
"data": {
"principal_email": "<string>",
"profile_slug": "<string>",
"reason": "<string>",
"set_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"status": "<string>",
"version": 123,
"revoked_at": "2023-11-07T05:31:56Z"
},
"before": "<unknown>",
"principal": "<string>",
"request_id": "<string>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}Access
Set or clear a person's access profile
The ceiling on one person’s derived seat; revoke clears it back to the full seat.
POST
/
access
/
profile-assignments
Set or clear a person's access profile
curl --request POST \
--url https://api.usenexio.com/access/profile-assignments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"profile": "<string>",
"reason": "<string>",
"operator": "<string>",
"revoke": true
}
'import requests
url = "https://api.usenexio.com/access/profile-assignments"
payload = {
"email": "<string>",
"profile": "<string>",
"reason": "<string>",
"operator": "<string>",
"revoke": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
email: '<string>',
profile: '<string>',
reason: '<string>',
operator: '<string>',
revoke: true
})
};
fetch('https://api.usenexio.com/access/profile-assignments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"action": "<string>",
"data": {
"principal_email": "<string>",
"profile_slug": "<string>",
"reason": "<string>",
"set_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"status": "<string>",
"version": 123,
"revoked_at": "2023-11-07T05:31:56Z"
},
"before": "<unknown>",
"principal": "<string>",
"request_id": "<string>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}Headers
Body
application/json
Response
OK