Skip to content

Commit 1695a5d

Browse files
author
Olaf Joppe
authored
Update projects-v2.yaml
1 parent a9f92a7 commit 1695a5d

1 file changed

Lines changed: 37 additions & 36 deletions

File tree

static/openapi-spec/projects-v2.yaml

Lines changed: 37 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ info:
77
contact:
88
name: Mendix Support
99
url: 'https://support.mendix.com'
10+
email: support@mendix.com
1011
servers:
1112
- url: 'https://projects-api.home.mendix.com/v2'
1213
paths:
@@ -104,28 +105,28 @@ paths:
104105
properties:
105106
categories:
106107
type: array
107-
description: 'Array of category assignments. Each item identifies a company custom field (fieldId) and the Code/Value to assign. Used when updating `category`.'
108+
description: 'Array of category assignments. Each item identifies a company category (categoryId) and the Code/Value to assign. Used when updating `category`.'
108109
items:
109110
type: object
110111
required:
111-
- fieldId
112+
- categoryId
112113
- value
113114
properties:
114-
fieldId:
115+
categoryId:
115116
type: string
116-
description: 'Identifier of the company custom field'
117+
description: 'Identifier of the company category'
117118
maxLength: 36
118119
value:
119120
type: string
120-
description: 'The Code or Value to assign to the custom field. An empty string clears the assignment.'
121+
description: 'The Code or Value to assign to the category. An empty string clears the assignment.'
121122
maxLength: 500
122123
examples:
123124
category-update:
124125
value:
125126
categories:
126-
- fieldId: '123456789'
127+
- categoryId: '123456789'
127128
value: 'NLD'
128-
- fieldId: '987654321'
129+
- categoryId: '987654321'
129130
value: ''
130131
responses:
131132
'204':
@@ -263,7 +264,7 @@ paths:
263264
tags:
264265
- Projects
265266
summary: 'Get the status of a job creating a project'
266-
description: 'Returns the status of the process that creates a project.</br>Every request must be authenticated through a Personal Access Token containing the `mx:app:create` scope.'
267+
description: 'Returns the status of the process that creates a project.</br>Every request must be authenticated by a Personal Access Token containing the scope `mx:app:create`.'
267268
operationId: get-project-job
268269
parameters:
269270
- $ref: '#/components/parameters/job-id'
@@ -281,13 +282,13 @@ paths:
281282
tags:
282283
- Users
283284
summary: 'Get a list of projects the user is a team member of'
284-
description: 'Returns a list of projects that the specified user is a team member of. The output is restricted based on the authorization of the calling user. Mendix administrators will get a list of all projects (active or inactive) owned by their company for the specified user. This includes external users hired by them to work on their projects. Project members must be active and will get a list of all active projects that they themselves are a team member of. Project members cannot request a list of projects on behalf of someone else.<br/>The result is sorted alphabetically by project name in ascending order.</br>Every request must be authenticated through a Personal Access Token containing the `mx:app:metadata:read` scope.'
285+
description: 'Returns a list of projects that the specified user is a team member of. The output is restricted based on the authorization of the calling user. Mendix administrators will get a list of all projects (active or inactive) owned by their company for the specified user. This includes external users hired by them to work on their projects. Project members must be active and will get a list of all active projects that they themselves are a team member of. Project members cannot request a list of projects on behalf of someone else.<br/>The result is sorted alphabetically by project name in ascending order.</br>Every request must be authenticated by a Personal Access Token containing the scope `mx:app:metadata:read`.'
285286
operationId: get-user-projects
286287
parameters:
287288
- $ref: '#/components/parameters/user-id'
288289
- name: permissions
289290
in: query
290-
description: 'A comma-separated list of permissions that the user has within the project. Possible values are `administrator`, `technicalcontact`, `repositoryaccess`, `cloudaccess`, `storyaccess`, `invitationrights`. The values are applied to the query using the AND operator.'
291+
description: 'A comma separated list of permissions the user has within the project. Possible values are `administrator`, `technicalcontact`, `repositoryaccess`, `cloudaccess`, `storyaccess`, `invitationrights`. The values are applied to the query using the AND operator'
291292
schema:
292293
type: string
293294
- name: isPinnedByUser
@@ -311,13 +312,13 @@ paths:
311312
tags:
312313
- Accounts
313314
summary: 'Get a list of project roles for a specified account.'
314-
description: 'Returns a list of project roles for a specified account or company. The output is restricted based on the authorization of the calling user. The calling user must be a member of the specified company.</br></br>Every request must be authenticated through a Personal Access Token containing the `mx:app:roles:read` scope.'
315+
description: 'Returns a list of project roles for a specified account (or company). The output is restricted based on the authorization of the calling user. The calling user must be a member of the specified company.</br></br>Every request must be authenticated by a Personal Access Token containing the scope `mx:app:roles:read`.'
315316
operationId: get-company-roles
316317
parameters:
317318
- $ref: '#/components/parameters/account-id'
318319
- name: changedSince
319320
in: query
320-
description: 'If supplied, only roles created or changed since this date will be returned. The date and time should be provided in the ISO 8601 format, for example `2024-08-21T11:07:00Z`.'
321+
description: 'If supplied only roles created or changed since this date will be returned. This date time should be provided in the ISO 8601 format, for example `2024-08-21T11:07:00Z`'
321322
schema:
322323
type: string
323324
format: date-time
@@ -339,12 +340,12 @@ paths:
339340
tags:
340341
- Accounts
341342
summary: 'Get a list of company-owned projects'
342-
description: 'Returns a list of projects owned by the company of the requesting user. Inactive projects are only returned if the requesting user is a Mendix Admin.</br>Every request must be authenticated through a Personal Access Token containing the `mx:app:metadata:read` scope.'
343+
description: 'Returns a list of projects owned by the company of the requesting user. Inactive projects are only returned if the requesting user is a Mendix Administrator.</br>Every request must be authenticated by a Personal Access Token containing the scope `mx:app:metadata:read`.'
343344
operationId: get-account-projects
344345
parameters:
345346
- name: createdSince
346347
in: query
347-
description: 'Retrieve all projects created after this date. Time is in UTC and must be provided in this format: 2020-01-16T05:53:28Z.'
348+
description: 'Retrieve all projects created after this date. Time is in UTC and must be provided in this format: 2020-01-16T05:53:28Z'
348349
schema:
349350
type: string
350351
- $ref: '#components/parameters/limit'
@@ -394,7 +395,7 @@ components:
394395
description: Unique identifier in the Mendix Platform.
395396
Account:
396397
type: object
397-
description: 'Account or company that owns the resource'
398+
description: 'Account (or company) that owns the resource'
398399
properties:
399400
accountId:
400401
type: string
@@ -420,7 +421,7 @@ components:
420421
$ref: '#/components/schemas/Account'
421422
Page:
422423
type: object
423-
description: 'Contains information about the current page, and the total number of elements to be retrieved.'
424+
description: 'Contains information about the current page, and total elements to be retrieved'
424425
properties:
425426
totalElements:
426427
type: integer
@@ -452,7 +453,7 @@ components:
452453
description: 'URL of the cloud portal the project is hosted on.'
453454
active:
454455
type: boolean
455-
description: 'Indicates whether a project is active and can be maintained by a team. Inactive projects will only be returned to Mendix Admins. Note this attribute does not indicate whether the project is actively deployed or running in the cloud.'
456+
description: 'Indicates whether a project is active and can be maintained by a team. Inactive projects will only be returned to Mendix administrators. Note this attribute does not indicate whether the project is actively deployed or running in the cloud.'
456457
account:
457458
$ref: "#/components/schemas/Account"
458459
ProjectRole:
@@ -498,13 +499,13 @@ components:
498499
properties:
499500
environmentType:
500501
type: string
501-
description: 'The type of environment.'
502+
description: 'Type of the environment.'
502503
enum:
503504
- non_production
504505
- production
505506
accessType:
506507
type: string
507-
description: 'The type of access.'
508+
description: 'Type of the access.'
508509
enum:
509510
- no_access
510511
- access
@@ -517,7 +518,7 @@ components:
517518
description: 'Indicates whether the role has environment transportation rights.'
518519
hasBackupAccess:
519520
type: boolean
520-
description: 'Indicates whether the role is allowed to access the environment''s backups.'
521+
description: 'Indicates whether the role is allowed to access the environment'' backups.'
521522
hasMonitoringAccess:
522523
type: boolean
523524
description: 'Indicates whether the role has access to the environment''s monitoring.'
@@ -590,7 +591,7 @@ components:
590591
description: Unique identifier of the member
591592
roleId:
592593
type: string
593-
description: The unique identifier of the role that will be assigned to the member.
594+
description: Unique identifier of the role that will be assigned to the member
594595
x-examples:
595596
Example 1:
596597
memberId: d207ff9b-3603-4060-aa0a-62d5b264bac7
@@ -608,7 +609,7 @@ components:
608609
properties:
609610
name:
610611
type: string
611-
description: The name of the project.
612+
description: Name of the project
612613
maxLength: 100
613614
summary:
614615
type: string
@@ -617,10 +618,10 @@ components:
617618
maxLength: 400
618619
image:
619620
type: string
620-
description: 'Base-64 encoded string of the project icon image. The file size is limited to 5MB, minimum of 200 x 200 px and maximum of 400 x 400 px.'
621+
description: 'Base-64 encoded string of the project icon image. The file size is limited to 5MB, minimum of 200 x 200 px and amaximum of 400 x 400 px.'
621622
templateId:
622623
type: string
623-
description: 'Identifier of the template that the project will be copied from. If empty, the default template is used.'
624+
description: 'Identifier of the template that the project will be copied from. If empty, the default template will be used.'
624625
format: uuid
625626
pattern: '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'
626627
maxLength: 36
@@ -642,7 +643,7 @@ components:
642643
securitySchemes:
643644
PersonalAccessToken:
644645
type: apiKey
645-
description: "For more information about requesting and using a token, refer to the [documentation](https://docs.mendix.com/community-tools/mendix-profile/user-settings/#pat).<br/>The header must be set to `MxToken <Your PAT>`."
646+
description: "For more information about requesting and using a token see the [documentation](https://docs.mendix.com/community-tools/mendix-profile/user-settings/#pat).<br/>The header must be set to `MxToken <Your PAT>`."
646647
name: Authorization
647648
in: header
648649
responses:
@@ -678,7 +679,7 @@ components:
678679
description: Date and time in UTC when the project was created.
679680
active:
680681
type: boolean
681-
description: 'Indicates whether a project is active or not. Inactive projects will only be returned to Mendix Admins.'
682+
description: 'Indicates whether a project is active or not. Inactive projects will only be returned to Mendix administrators.'
682683
createdBy:
683684
type: object
684685
description: Contains information about the person that created this project.
@@ -743,10 +744,10 @@ components:
743744
description: URL of the project image/logo.
744745
createdOn:
745746
type: string
746-
description: Date and time when the project was created, expressed in UTC.
747+
description: Date and time in UTC when the project was created.
747748
active:
748749
type: boolean
749-
description: Indicates whether a project is active or not. Inactive projects will only be returned to Mendix Admins.
750+
description: Indicates whether a project is active or not. Inactive projects will only be returned to Mendix administrators.
750751
createdBy:
751752
type: object
752753
description: Contains information about the person that created this project.
@@ -764,7 +765,7 @@ components:
764765
maxLength: 50
765766
storyTool:
766767
type: string
767-
description: The tool or service used to manage the workload of the project. Can be empty if no tool has been chosen yet.
768+
description: The tool or service used to manage the workload of the project. Could be empty if no tool has been chosen yet
768769
enum:
769770
- Epics
770771
- Jira
@@ -781,10 +782,10 @@ components:
781782
- Mendix_for_Private_Cloud
782783
targetCloud:
783784
type: string
784-
description: URL of the cloud portal where the project is hosted
785+
description: URL of the cloud portal the project is hosted on
785786
members:
786787
type: array
787-
description: Array of members in the project. Inactive members will only be returned to Mendix Admins.
788+
description: Array of members in the project. Inactive members will only be returned for Mendix Administrators
788789
items:
789790
allOf:
790791
- $ref: '#/components/schemas/User'
@@ -819,7 +820,7 @@ components:
819820
maxLength: 500
820821
categoryId:
821822
type: string
822-
description: ID of the category (also known as 'FieldId')
823+
description: ID of the category (also known as categoryId)
823824
maxLength: 36
824825
values:
825826
type: array
@@ -915,7 +916,7 @@ components:
915916
description: URL of the avatar image of the member.
916917
isActive:
917918
type: boolean
918-
description: Indicates whether the member is an active member on the platform.
919+
description: Indicator of whether the member is an active member on the platform
919920
company:
920921
type: object
921922
description: Contains information of the company to which the member belongs.
@@ -959,7 +960,7 @@ components:
959960
properties:
960961
jobId:
961962
type: string
962-
description: Unique identifier of the job that created the project. Use this ID to query the status of the process.
963+
description: Unique identifier of the job that creates the project. Use this ID to query the status of the process.
963964
format: uuid
964965
pattern: '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'
965966
minLength: 36
@@ -987,7 +988,7 @@ components:
987988
description: Error message provided in case the job has failed
988989
projectId:
989990
type: string
990-
description: Identifier of the newly created project
991+
description: Identifier of the new created project
991992
format: uuid
992993
pattern: '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'
993994
maxLength: 36
@@ -1039,7 +1040,7 @@ components:
10391040
description: 'Indicates whether the user is allowed to make changes to the project''s model.'
10401041
hasCloudAccess:
10411042
type: boolean
1042-
description: 'Indicates whether the user has access to cloud environments.'
1043+
description: 'Indicates whether the user has access to the cloud environments.'
10431044
hasStoryAccess:
10441045
type: boolean
10451046
description: 'Indicates whether the user has access to Stories and Feedback of the project.'

0 commit comments

Comments
 (0)