Skip to main content
POST/api/management/projects/{projectId}/security/roles

Parameter

NameParameter typeTypeDescriptionExampleRequired
projectIdpathstringThe project identifier found in the project overview screen of the management consolemovieDbtrue

Responses

HTTP status codeReasonModel
201CreatedRole
401UnauthorizedError
403ForbiddenError
404Project not foundError
409Resource already existsError
422Validation errorError
500Internal server errorError

Examples

JSON
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{ "projectId": "website", "name": "Movie Editors", "description": "Movie editors can carry out all actions with the exception of deleting entries", "enabled": true, "permissions": { "contentTypes": [], "entries": [ { "languages": [ "en-GB" ], "id": "movie", "actions": [ "contensisEntryApproval.sysCreate", "contensisEntryApproval.draft.submit", "contensisEntryApproval.draft.sysUpdate", "contensisEntryApproval.draft.sysClearPublishSchedule", "contensisEntryApproval.draft.sysSetPublishSchedule", "contensisEntryApproval.draft.sysClearUnpublishSchedule", "contensisEntryApproval.draft.sysSetUnpublishSchedule", "contensisEntryApproval.awaitingApproval.revoke", "contensisEntryApproval.awaitingApproval.decline", "contensisEntryApproval.awaitingApproval.approve", "contensisEntryApproval.awaitingApproval.scheduledApprove", "contensisEntryApproval.awaitingApproval.sysClearPublishSchedule", "contensisEntryApproval.awaitingApproval.sysSetPublishSchedule", "contensisEntryApproval.awaitingApproval.sysClearUnpublishSchedule", "contensisEntryApproval.awaitingApproval.sysSetUnpublishSchedule", "contensisEntryApproval.declined.submit", "contensisEntryApproval.declined.sysUpdate", "contensisEntryApproval.declined.sysClearPublishSchedule", "contensisEntryApproval.declined.sysSetPublishSchedule", "contensisEntryApproval.declined.sysClearUnpublishSchedule", "contensisEntryApproval.declined.sysSetUnpublishSchedule", "contensisEntryApproval.scheduled.cancel", "contensisEntryApproval.scheduled.publishNow", "contensisEntryApproval.scheduled.sysPublishScheduleInvoke", "contensisEntryApproval.scheduled.sysSetPublishSchedule", "contensisEntryApproval.scheduled.sysClearUnpublishSchedule", "contensisEntryApproval.scheduled.sysSetUnpublishSchedule", "contensisEntryApproval.versionComplete.sysUpdate", "contensisEntryApproval.versionComplete.sysClearPublishSchedule", "contensisEntryApproval.versionComplete.sysSetPublishSchedule", "contensisEntryApproval.versionComplete.sysClearUnpublishSchedule", "contensisEntryApproval.versionComplete.sysSetUnpublishSchedule", "contensisEntryApproval.sysUnpublish" ] } ], "assets": [ { "languages": [ "*" ], "id": "pdf", "actions": [ "*" ] } ], "webhookSubscriptions": { "actions": [ "create", "view" ] }, "proxies": { "actions": [ "create", "update", "publish" ] }, "eventStreams": { "actions": [ "connect", "useCustomTemplates" ] }, "blocks": { "actions": [] }, "renderers": { "actions": [] } }, "assignments": { "users": [ "a.user" ], "groups": [ "Movie editors" ], "apiKeys": [ "Movie Import" ] } }

Remarks

Still need help?

New support request