Assigns policies to a user (for ordinary users)
Delegate policy.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
usernamestringRequiredExample:
User Identifier
usernameBody
policyIdsstring[]RequiredExample:
["000000000000000000000001"]assignbooleanRequiredExample:
trueResponses
200
Assigned policy.
application/json
idstringRequiredExample:
000000000000000000000001uuidstringRequiredExample:
00000000-0000-0000-0000-000000000000namestringRequiredExample:
Policy namedescriptionstringRequiredExample:
DescriptiontopicDescriptionstringRequiredExample:
DescriptionpolicyTagstringRequiredExample:
Tagstatusstring · enumRequiredExample:
DRAFTPossible values: creatorstringRequiredExample:
#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001ownerstringRequiredExample:
#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001topicIdstringRequiredExample:
0.0.1messageIdstringRequiredExample:
0000000000.000000001codeVersionstringRequiredExample:
1.0.0createDatestringRequiredExample:
1900-01-01T00:00:00.000ZversionstringRequiredExample:
1.0.0configobjectRequired
userRolestringRequiredExample:
InstalleruserRolesstring[]RequiredExample:
["Installer"]userGroupobjectRequiredExample:
{"uuid":"00000000-0000-0000-0000-000000000000","role":"Installer","groupLabel":"Label","groupName":"Name","active":true}userGroupsobject[]RequiredExample:
[{"uuid":"00000000-0000-0000-0000-000000000000","role":"Installer","groupLabel":"Label","groupName":"Name","active":true}]policyRolesstring[]RequiredExample:
["Registrant"]policyNavigationobject[]RequiredExample:
[{"role":"Registrant","steps":[{"block":"Block tag","level":1,"name":"Step name"}]}]policyTopicsobject[]RequiredExample:
[{"name":"Project","description":"Project","memoObj":"topic","static":false,"type":"any"}]policyTokensobject[]RequiredExample:
[{"tokenName":"Token name","tokenSymbol":"Token symbol","tokenType":"non-fungible","decimals":"","changeSupply":true,"enableAdmin":true,"enableFreeze":true,"enableKYC":true,"enableWipe":true,"templateTokenTag":"token_template_0"}]policyGroupsobject[]RequiredExample:
[{"name":"Group name","creator":"Registrant","groupAccessType":"Private","groupRelationshipType":"Multiple","members":["Registrant"]}]categoriesstring[]Required
projectSchemastringRequiredExample:
00000000-0000-0000-0000-000000000000401
Unauthorized.
403
Forbidden.
500
Internal server error.
application/json
post/permissions/users/{username}/policies/delegate
POST /api/v1/permissions/users/{username}/policies/delegate HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 56
{
"policyIds": [
"000000000000000000000001"
],
"assign": true
}{
"id": "000000000000000000000001",
"uuid": "00000000-0000-0000-0000-000000000000",
"name": "Policy name",
"description": "Description",
"topicDescription": "Description",
"policyTag": "Tag",
"status": "DRAFT",
"creator": "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001",
"owner": "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001",
"topicId": "0.0.1",
"messageId": "0000000000.000000001",
"codeVersion": "1.0.0",
"createDate": "1900-01-01T00:00:00.000Z",
"version": "1.0.0",
"config": {},
"userRole": "Installer",
"userRoles": [
"Installer"
],
"userGroup": {
"uuid": "00000000-0000-0000-0000-000000000000",
"role": "Installer",
"groupLabel": "Label",
"groupName": "Name",
"active": true
},
"userGroups": [
{
"uuid": "00000000-0000-0000-0000-000000000000",
"role": "Installer",
"groupLabel": "Label",
"groupName": "Name",
"active": true
}
],
"policyRoles": [
"Registrant"
],
"policyNavigation": [
{
"role": "Registrant",
"steps": [
{
"block": "Block tag",
"level": 1,
"name": "Step name"
}
]
}
],
"policyTopics": [
{
"name": "Project",
"description": "Project",
"memoObj": "topic",
"static": false,
"type": "any"
}
],
"policyTokens": [
{
"tokenName": "Token name",
"tokenSymbol": "Token symbol",
"tokenType": "non-fungible",
"decimals": "",
"changeSupply": true,
"enableAdmin": true,
"enableFreeze": true,
"enableKYC": true,
"enableWipe": true,
"templateTokenTag": "token_template_0"
}
],
"policyGroups": [
{
"name": "Group name",
"creator": "Registrant",
"groupAccessType": "Private",
"groupRelationshipType": "Multiple",
"members": [
"Registrant"
]
}
],
"categories": [
"text"
],
"projectSchema": "00000000-0000-0000-0000-000000000000"
}Was this helpful?