{"type":"api","title":"Update task permissions for the role","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-2/76fd4bb9d069fd2530d7a02f0b3a4ca00eccfd35/c92e7384-b2f4-3d3b-8e8e-03a9325b07bb","info":{"title":"Crosswork RBAC API - Version 1","description":"Crosswork Role-based Access Control APIs","contact":{"name":"Crosswork Team, Cisco","email":"support@cisco.com"},"license":{"name":"Cisco Software License Agreement","url":"http://www.cisco.com/public/sw-license-agreement.html"},"version":"7.2.0"},"security":[{"bearerAuth":[]}],"x-parser-conf":{"overview":{"markdownPath":"reference/INFRA/RBAC/rbac-v1-overview.md"}},"openapi":"3.0.1","servers":[{"url":"https://{cw_ip}:30603/crosswork/aaa/v1"}],"securitySchemes":{"bearerAuth":{"type":"apiKey","description":"Use a bearer token to authenticate requests. Include the token in the Authorization header with the prefix 'Bearer '.","name":"Authorization","in":"header"}}},"spec":{"tags":["rbac"],"summary":"Update task permissions for the role.","description":"This API allows updates to the task permissions for the role specified.","operationId":"UpdateTasks","parameters":[{"name":"role","in":"path","description":"Unique role name","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Create role name","content":{"application/json":{"schema":{"type":"array","description":"Array of RBAC task IDs.","example":[{"taskId":"id_export_audit_logs_access"},{"taskId":"id_nso_fp_deployment_management"}],"items":{"type":"object","description":"Details of an RBAC task ID.","properties":{"taskId":{"type":"string","description":"The unique programmatic identifier for this RBAC task."}},"$$ref":"#/components/schemas/rbacTaskId"},"$$ref":"#/components/schemas/rbacTaskIds"}}},"required":true},"responses":{"204":{"description":"No Content. The request was successful and there is no additional content in the response body.","content":{"application/json":{"schema":{"type":"object","description":"An empty object schema","properties":{"rbacEmpty":{"type":"object","description":"An empty object schema.","properties":{}}},"$$ref":"#/components/schemas/rbacEmpty"}}}},"403":{"description":"Forbidden. The server recognizes the authentication credentials, but the client is not authorized to perform this request.","content":{}},"500":{"description":"Internal Server Error. The server could not fulfill the request.","content":{}}},"x-codegen-request-body-name":"body","__originalOperationId":"UpdateTasks","security":[{"bearerAuth":[]}],"method":"post","path":"/task/{role}"}}