OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/docs/api/apiv3/paths/role.yml

60 lines
1.5 KiB

# /api/v3/roles/{id}
---
get:
parameters:
- description: Role id
example: '1'
in: path
name: id
required: true
schema:
type: integer
responses:
'200':
content:
application/hal+json:
examples:
response:
value:
_links:
self:
href: "/api/v3/roles/3"
title: Manager
_type: Role
id: 3
name: Manager
schema:
"$ref": "../components/schemas/role_model.yml"
description: OK
headers: {}
'403':
content:
application/hal+json:
examples:
response:
value:
_type: Error
errorIdentifier: urn:openproject-org:api:v3:errors:MissingPermission
message: You are not authorized to view this resource.
description: |-
Returned if the client does not have sufficient permissions to see roles.
**Required permission:** view members **or** manage members
headers: {}
'404':
content:
application/hal+json:
examples:
response:
value:
_type: Error
errorIdentifier: urn:openproject-org:api:v3:errors:NotFound
message: The requested resource could not be found.
description: Returned if the role does not exist.
headers: {}
tags:
- Roles
description: Fetch an individual role.
operationId: View_role
summary: View role