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/components/schemas/membership_model.yml

62 lines
1.3 KiB

# Schema: MembershipModel
---
type: object
required:
- createdAt
- updatedAt
properties:
id:
type: integer
description: Membership id
readOnly: true
minimum: 0
exclusiveMinimum: true
createdAt:
type: string
format: date-time
description: Time of creation
readOnly: true
updatedAt:
type: string
format: date-time
description: Time of latest update
readOnly: true
_links:
type: object
required:
- self
- roles
- principal
properties:
self:
allOf:
- "$ref": "./link.yml"
- description: |-
This membership
**Resource**: Membership
readOnly: true
project:
allOf:
- "$ref": "./link.yml"
- description: |-
The project for which the membership is granted
**Resource**: Project
readOnly: true
roles:
allOf:
- "$ref": "./link.yml"
- description: |-
The list of roles the user or group is granted in the project
**Resource**: RoleCollection
readOnly: true
principal:
allOf:
- "$ref": "./link.yml"
- description: |-
The user or group that was granted membership
**Resource**: User or Group
readOnly: true