You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: "Update an existing role's attributes such as name, description, or linked domains. [See the documentation](https://api.peerdom.org/v1/docs)",
8
+
version: "0.0.1",
9
+
type: "action",
10
+
props: {
11
+
peerdom,
12
+
roleId: {
13
+
propDefinition: [
14
+
peerdom,
15
+
"roleId",
16
+
],
17
+
},
18
+
roleName: {
19
+
propDefinition: [
20
+
peerdom,
21
+
"roleName",
22
+
],
23
+
optional: true,
24
+
},
25
+
description: {
26
+
propDefinition: [
27
+
peerdom,
28
+
"description",
29
+
],
30
+
optional: true,
31
+
},
32
+
linkedDomains: {
33
+
propDefinition: [
34
+
peerdom,
35
+
"linkedDomains",
36
+
],
37
+
optional: true,
38
+
},
39
+
},
40
+
asyncrun({ $ }){
41
+
constdata={
42
+
...(this.roleName&&{
43
+
name: this.roleName,
44
+
}),
45
+
...(this.description&&{
46
+
customFields: {
47
+
Description: this.description,
48
+
},
49
+
}),
50
+
...(this.linkedDomains&&{
51
+
customFields: {
52
+
LinkedDomains: this.linkedDomains,
53
+
},
54
+
}),
55
+
};
56
+
57
+
constresponse=awaitthis.peerdom.updateRole({
58
+
roleId: this.roleId,
59
+
...data,
60
+
});
61
+
62
+
$.export("$summary",`Successfully updated role with ID ${this.roleId}`);
0 commit comments