Skip to content

Commit 9692249

Browse files
authored
update spec to support project:assign_resource standardization (#1206)
1 parent 7667351 commit 9692249

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

specification/resources/apps/models/apps_create_app_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ properties:
55
type: string
66
description: |
77
The ID of the project the app should be assigned to. If omitted, it will be assigned to your default project.
8-
<br><br>Requires `project:update` scope.
8+
<br><br>Requires `project:assign_resource` scope.
99
required:
1010
- spec
1111
type: object

specification/resources/databases/models/database_cluster.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ properties:
142142
type: string
143143
format: uuid
144144
example: 9cc10173-e9ea-4176-9dbc-a4cee4c4ff30
145-
description: The ID of the project that the database cluster is assigned to. If excluded when creating a new database cluster, it will be assigned to your default project.<br><br>Requires `project:update` scope.
145+
description: The ID of the project that the database cluster is assigned to. If excluded when creating a new database cluster, it will be assigned to your default project.<br><br>Requires `project:assign_resource` scope.
146146
rules:
147147
type: array
148148
items:

specification/resources/projects/projects_assign_resources.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ summary: Assign Resources to a Project
55
description: |
66
To assign resources to a project, send a POST request to `/v2/projects/$PROJECT_ID/resources`.
77
8-
You must have both `project:update` and `<resource>:read` scopes to assign new resources. For example, to assign a Droplet to a project, include both the `project:update` and `droplet:read` scopes.
8+
You must have both `project:assign_resource` and `<resource>:read` scopes to assign new resources. For example, to assign a Droplet to a project, include both the `project:assign_resource` and `droplet:read` scopes. The `project:update` scope also grants `project:assign_resource`.
99
1010
tags:
1111
- Project Resources
@@ -55,4 +55,4 @@ x-codeSamples:
5555

5656
security:
5757
- bearer_auth:
58-
- 'project:update'
58+
- 'project:assign_resource'

specification/resources/projects/projects_assign_resources_default.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ summary: Assign Resources to Default Project
55
description: |
66
To assign resources to your default project, send a POST request to `/v2/projects/default/resources`.
77
8-
You must have both project:update and <resource>:read scopes to assign new resources. For example, to assign a Droplet to the default project, include both the `project:update` and `droplet:read` scopes.
8+
You must have both `project:assign_resource` and `<resource>:read` scopes to assign new resources. For example, to assign a Droplet to the default project, include both the `project:assign_resource` and `droplet:read` scopes. The `project:update` scope also grants `project:assign_resource`.
99
1010
tags:
1111
- Project Resources
@@ -52,4 +52,4 @@ x-codeSamples:
5252

5353
security:
5454
- bearer_auth:
55-
- 'project:update'
55+
- 'project:assign_resource'

0 commit comments

Comments
 (0)