kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
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.
202 lines
6.1 KiB
202 lines
6.1 KiB
3 years ago
|
# /api/v3/views/{id}
|
||
|
---
|
||
|
get:
|
||
|
parameters:
|
||
|
- description: View id
|
||
|
example: '1'
|
||
|
in: path
|
||
|
name: id
|
||
|
required: true
|
||
|
schema:
|
||
|
type: integer
|
||
|
responses:
|
||
|
'200':
|
||
|
content:
|
||
|
application/hal+json:
|
||
|
examples:
|
||
|
ViewTable:
|
||
|
"$ref": "../components/examples/view_table.yml"
|
||
|
ViewBcf:
|
||
|
"$ref": "../components/examples/view_bcf.yml"
|
||
|
'400':
|
||
|
content:
|
||
|
application/hal+json:
|
||
|
examples:
|
||
|
response:
|
||
|
value:
|
||
|
_type: Error
|
||
|
errorIdentifier: urn:openproject-org:api:v3:errors:InvalidRequestBody
|
||
|
message: The request body was not a single JSON object.
|
||
|
description: Occurs when the client did not send a valid JSON object in the
|
||
|
request body.
|
||
|
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 access this resource.
|
||
|
description: |-
|
||
|
Returned if the client does not have sufficient permissions.
|
||
|
|
||
|
**Required permission:** The required permission depends on the type of the view.
|
||
|
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 resource can not be found.
|
||
|
|
||
|
*Note: A client without sufficient permissions shall not be able to test for the existence of
|
||
|
a view. That's why a 404 is returned here, even if a 403 might be more appropriate.*
|
||
|
headers: {}
|
||
|
tags:
|
||
|
- Views
|
||
|
description: ''
|
||
|
operationId: View_view
|
||
|
summary: View view
|
||
|
delete:
|
||
|
parameters:
|
||
|
- description: View id
|
||
|
example: '1'
|
||
|
in: path
|
||
|
name: id
|
||
|
required: true
|
||
|
schema:
|
||
|
type: integer
|
||
|
responses:
|
||
|
'204':
|
||
|
description: Returned if the view was successfully deleted.
|
||
|
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 access this resource.
|
||
|
description: |-
|
||
|
Returned if the client does not have sufficient permissions.
|
||
|
|
||
|
**Required permission:** The permissions depend on the view.
|
||
|
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 view does not exist or the client does not have sufficient permissions
|
||
|
to see it.
|
||
|
|
||
|
**Required permission:** The permissions depend on the view.
|
||
|
|
||
|
*Note: A client without sufficient permissions shall not be able to test for the existence of
|
||
|
a version. That's why a 404 is returned here, even if a 403 might be more appropriate.*
|
||
|
headers: {}
|
||
|
tags:
|
||
|
- Views
|
||
|
description: Deletes the view.
|
||
|
operationId: Delete_view
|
||
|
summary: Delete view
|
||
|
patch:
|
||
|
parameters:
|
||
|
- description: View id
|
||
|
example: '1'
|
||
|
in: path
|
||
|
name: id
|
||
|
required: true
|
||
|
schema:
|
||
|
type: integer
|
||
|
responses:
|
||
|
'200':
|
||
|
content:
|
||
|
application/hal+json:
|
||
|
examples:
|
||
|
ViewTable:
|
||
|
"$ref": "../components/examples/view_table.yml"
|
||
|
description: OK
|
||
|
headers: {}
|
||
|
'400':
|
||
|
content:
|
||
|
application/hal+json:
|
||
|
examples:
|
||
|
response:
|
||
|
value:
|
||
|
_type: Error
|
||
|
errorIdentifier: urn:openproject-org:api:v3:errors:InvalidRequestBody
|
||
|
message: The request body was not a single JSON object.
|
||
|
description: Occurs when the client did not send a valid JSON object in the
|
||
|
request body.
|
||
|
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 access this resource.
|
||
|
description: |-
|
||
|
Returned if the client does not have sufficient permissions.
|
||
|
|
||
|
**Required permission:** The permissions depend on the view.
|
||
|
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 view does not exist or the client does not have sufficient permissions
|
||
|
to see it.
|
||
|
|
||
|
**Required permission:** The permissions depend on the view.
|
||
|
|
||
|
*Note: A client without sufficient permissions shall not be able to test for the existence of
|
||
|
a version. That's why a 404 is returned here, even if a 403 might be more appropriate.*
|
||
|
headers: {}
|
||
|
'422':
|
||
|
content:
|
||
|
application/hal+json:
|
||
|
examples:
|
||
|
response:
|
||
|
value:
|
||
|
_embedded:
|
||
|
details:
|
||
|
attribute: query
|
||
|
_type: Error
|
||
|
errorIdentifier: urn:openproject-org:api:v3:errors:PropertyConstraintViolation
|
||
|
message: The query does not exist.
|
||
|
description: |-
|
||
|
Returned if:
|
||
|
|
||
|
* a constraint for a property was violated (`PropertyConstraintViolation`)
|
||
|
headers: {}
|
||
|
tags:
|
||
|
- Views
|
||
|
description: |-
|
||
|
Updates the given View by applying the attributes provided in the body.
|
||
|
operationId: Update_view
|
||
|
summary: Update view
|