Skip to content

Create or update a principal

PUT
/resources/iam/principals/{id}

Parameters

Path Parameters

id*
Type
string
Required
Format
"uuid"

Request Body

JSON
{
  
"name": "string",
  
"email": "string",
  
"phone": "string",
  
"picture": "string",
  
"settings": {
  
  
"additionalProperties": null
  
},
  
"roles": [
  
  
"string"
  
],
  
"acl": {
  
  
"entries": [
  
  
  
{
  
  
  
  
"attributeKeys": [
  
  
  
  
  
"string"
  
  
  
  
],
  
  
  
  
"resource": [
  
  
  
  
  
"string"
  
  
  
  
],
  
  
  
  
"permission": [
  
  
  
  
  
"string"
  
  
  
  
]
  
  
  
}
  
  
]
  
},
  
"accessAttributes": {
  
  
"additionalProperties": [
  
  
  
"string"
  
  
]
  
},
  
"etag": "string"
}

Responses

OK

JSON
{
  
"id": "string",
  
"name": "string",
  
"email": "string",
  
"phone": "string",
  
"picture": "string",
  
"settings": {
  
  
"additionalProperties": null
  
},
  
"roles": [
  
  
"string"
  
],
  
"acl": {
  
  
"entries": [
  
  
  
{
  
  
  
  
"attributeKeys": [
  
  
  
  
  
"string"
  
  
  
  
],
  
  
  
  
"resource": [
  
  
  
  
  
"string"
  
  
  
  
],
  
  
  
  
"permission": [
  
  
  
  
  
"string"
  
  
  
  
]
  
  
  
}
  
  
]
  
},
  
"accessAttributes": {
  
  
"additionalProperties": [
  
  
  
"string"
  
  
]
  
},
  
"suspendedAt": "string",
  
"lastActiveAt": "string",
  
"createdAt": "string",
  
"eTag": "string",
  
"passwordLogin": true,
  
"passwordExpiresAt": "string"
}

Samples

© 2024 Hantera AB. All rights reserved.