{"_id":"54b576742d48f3350040e562","version":{"_id":"54343531bfaa3d0800c4d4af","project":"54343170fa5527080064f449","__v":28,"forked_from":"54343170fa5527080064f44c","createdAt":"2014-10-07T18:47:13.086Z","releaseDate":"2014-10-07T18:47:13.086Z","categories":["54343531bfaa3d0800c4d4b0","543435b1edce040800409240","543435b9edce040800409241","543435bcedce040800409243","543435bfedce040800409244","543435c2edce040800409245","54370cc426469424002a6dfa","54370cf026469424002a6dfd","5437129d26469424002a6e2f","543712d226469424002a6e30","5480c8fd74904f1a00053c86","54aafc6eefb39016009e4d71","54ac1d36de18cc1400226e01","54ad59369219922100751732","54b41bcf4f25cb1600518d2c","54b533a3a806f40c0050d53c","54b54bbf96fe3c0b00d38d2a","54b688a27379a90c00f53a8a","54b699efbc1a46160005edfa","54b8191691011f0b00068804","54bfb002d03bfc0d0000e814","54bfb33ed03bfc0d0000e816","55a3e94e912a6e2300882cdb","55a56c370f354f0d00fd02a8","55e85ad034516037002e9325","5638ecb62fc5520d001a4cf9","572cba2fc310640e008f63d5","596e6e42c5b53b00509791b1"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"3.0.0","version":"3.0"},"user":"543532513513400800a144f4","category":{"_id":"54b54bbf96fe3c0b00d38d2a","__v":9,"pages":["54b54bf296fe3c0b00d38d2b","54b56fb796fe3c0b00d38d61","54b576742d48f3350040e562","54b592342562600c00e05f2b","54b5926596fe3c0b00d38dbc","54b5938596fe3c0b00d38dc1","54b594722562600c00e05f2f","54c7a95e56f4ff0d00aaabe2","54caa9f7dd5cf30d00c35296"],"project":"54343170fa5527080064f449","version":"54343531bfaa3d0800c4d4af","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-01-13T16:45:51.860Z","from_sync":false,"order":6,"slug":"roles","title":"Roles"},"editedParams":true,"editedParams2":true,"project":"54343170fa5527080064f449","__v":5,"parentDoc":null,"updates":["54c7af2680ca750d00cc0255","57434ba39a2c890e002833cf"],"next":{"pages":[],"description":""},"createdAt":"2015-01-13T19:48:04.104Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"method":"post","examples":{"codes":[]},"settings":"","auth":"required","params":[{"_id":"54b5776c2d48f3350040e566","ref":"","in":"path","required":false,"desc":"The ID of the project in which the role will be created","default":"","type":"string","name":"projectId"},{"_id":"54b5776c2d48f3350040e565","ref":"","in":"path","required":false,"desc":"The ID of the user to which the role wil be assigned","default":"","type":"string","name":"userId"},{"_id":"54b5776c2d48f3350040e564","ref":"","in":"path","required":false,"desc":"The ID of the role template which will be used in creating the project role","default":"","type":"string","name":"roleTemplateId"}],"url":"/projects/:projectId/users/:userId/roletemplates/:roleTemplateId"},"isReference":false,"order":6,"body":"To give a user access to a project, you need to assign them a role in that project. The permissions defined in the role template will govern the user's permissions within the context of the project. \n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Permissions\"\n}\n[/block]\nA PROJECT OWNER can assign role templates to users within a project they manage. A user with an account-level role of ADMINISTRATOR can assign role templates to any user in any project.","excerpt":"","slug":"assign-a-role-template","type":"endpoint","title":"Assign Role Template"}

postAssign Role Template


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

projectId:
string
The ID of the project in which the role will be created
userId:
string
The ID of the user to which the role wil be assigned
roleTemplateId:
string
The ID of the role template which will be used in creating the project role

Documentation

To give a user access to a project, you need to assign them a role in that project. The permissions defined in the role template will govern the user's permissions within the context of the project. [block:api-header] { "type": "basic", "title": "Permissions" } [/block] A PROJECT OWNER can assign role templates to users within a project they manage. A user with an account-level role of ADMINISTRATOR can assign role templates to any user in any project.

User Information

Try It Out

post
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}