Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
0f269f9c
Commit
0f269f9c
authored
Aug 23, 2018
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document that created_at works for group owners on Discussions
parent
2f5ce7d2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
changelogs/unreleased/fix-api-group-createdat.yml
changelogs/unreleased/fix-api-group-createdat.yml
+1
-1
doc/api/discussions.md
doc/api/discussions.md
+8
-8
No files found.
changelogs/unreleased/fix-api-group-createdat.yml
View file @
0f269f9c
---
title
:
Allow date parameters on Issues
and Note
s API for group owners
title
:
Allow date parameters on Issues
, Notes, and Discussion
s API for group owners
merge_request
:
21342
author
:
Florent Dubois
type
:
fixed
doc/api/discussions.md
View file @
0f269f9c
...
...
@@ -136,7 +136,7 @@ Parameters:
|
`id`
| integer/string | yes | The ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
|
|
`issue_iid`
| integer | yes | The IID of an issue |
|
`body`
| string | yes | The content of a discussion |
|
`created_at`
| string | no | Date time string, ISO 8601 formatted, e.g. 2016-03-11T03:45:40Z |
|
`created_at`
| string | no | Date time string, ISO 8601 formatted, e.g. 2016-03-11T03:45:40Z
(requires admin or project/group owner rights)
|
```
bash
curl
--request
POST
--header
"PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK"
https://gitlab.example.com/api/v4/projects/5/issues/11/discussions?body
=
comment
...
...
@@ -159,7 +159,7 @@ Parameters:
|
`discussion_id`
| integer | yes | The ID of a discussion |
|
`note_id`
| integer | yes | The ID of a discussion note |
|
`body`
| string | yes | The content of a discussion |
|
`created_at`
| string | no | Date time string, ISO 8601 formatted, e.g. 2016-03-11T03:45:40Z |
|
`created_at`
| string | no | Date time string, ISO 8601 formatted, e.g. 2016-03-11T03:45:40Z
(requires admin or project/group owner rights)
|
```
bash
curl
--request
POST
--header
"PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK"
https://gitlab.example.com/api/v4/projects/5/issues/11/discussions/6a9c1750b37d513a43987b574953fceb50b03ce7/notes?body
=
comment
...
...
@@ -342,7 +342,7 @@ Parameters:
|
`id`
| integer/string | yes | The ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
|
|
`snippet_id`
| integer | yes | The ID of an snippet |
|
`body`
| string | yes | The content of a discussion |
|
`created_at`
| string | no | Date time string, ISO 8601 formatted, e.g. 2016-03-11T03:45:40Z |
|
`created_at`
| string | no | Date time string, ISO 8601 formatted, e.g. 2016-03-11T03:45:40Z
(requires admin or project/group owner rights)
|
```
bash
curl
--request
POST
--header
"PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK"
https://gitlab.example.com/api/v4/projects/5/snippets/11/discussions?body
=
comment
...
...
@@ -365,7 +365,7 @@ Parameters:
|
`discussion_id`
| integer | yes | The ID of a discussion |
|
`note_id`
| integer | yes | The ID of a discussion note |
|
`body`
| string | yes | The content of a discussion |
|
`created_at`
| string | no | Date time string, ISO 8601 formatted, e.g. 2016-03-11T03:45:40Z |
|
`created_at`
| string | no | Date time string, ISO 8601 formatted, e.g. 2016-03-11T03:45:40Z
(requires admin or project/group owner rights)
|
```
bash
curl
--request
POST
--header
"PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK"
https://gitlab.example.com/api/v4/projects/5/snippets/11/discussions/6a9c1750b37d513a43987b574953fceb50b03ce7/notes?body
=
comment
...
...
@@ -601,7 +601,7 @@ Parameters:
|
`id`
| integer/string | yes | The ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
|
|
`merge_request_iid`
| integer | yes | The IID of a merge request |
|
`body`
| string | yes | The content of a discussion |
|
`created_at`
| string | no | Date time string, ISO 8601 formatted, e.g. 2016-03-11T03:45:40Z |
|
`created_at`
| string | no | Date time string, ISO 8601 formatted, e.g. 2016-03-11T03:45:40Z
(requires admin or project/group owner rights)
|
|
`position`
| hash | no | Position when creating a diff note |
|
`position[base_sha]`
| string | yes | Base commit SHA in the source branch |
|
`position[start_sha]`
| string | yes | SHA referencing commit in target branch |
...
...
@@ -659,7 +659,7 @@ Parameters:
|
`discussion_id`
| integer | yes | The ID of a discussion |
|
`note_id`
| integer | yes | The ID of a discussion note |
|
`body`
| string | yes | The content of a discussion |
|
`created_at`
| string | no | Date time string, ISO 8601 formatted, e.g. 2016-03-11T03:45:40Z |
|
`created_at`
| string | no | Date time string, ISO 8601 formatted, e.g. 2016-03-11T03:45:40Z
(requires admin or project/group owner rights)
|
```
bash
curl
--request
POST
--header
"PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK"
https://gitlab.example.com/api/v4/projects/5/merge_requests/11/discussions/6a9c1750b37d513a43987b574953fceb50b03ce7/notes?body
=
comment
...
...
@@ -894,7 +894,7 @@ Parameters:
|
`id`
| integer/string | yes | The ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
|
|
`commit_id`
| integer | yes | The ID of a commit |
|
`body`
| string | yes | The content of a discussion |
|
`created_at`
| string | no | Date time string, ISO 8601 formatted, e.g. 2016-03-11T03:45:40Z |
|
`created_at`
| string | no | Date time string, ISO 8601 formatted, e.g. 2016-03-11T03:45:40Z
(requires admin or project/group owner rights)
|
|
`position`
| hash | no | Position when creating a diff note |
|
`position[base_sha]`
| string | yes | Base commit SHA in the source branch |
|
`position[start_sha]`
| string | yes | SHA referencing commit in target branch |
...
...
@@ -930,7 +930,7 @@ Parameters:
|
`discussion_id`
| integer | yes | The ID of a discussion |
|
`note_id`
| integer | yes | The ID of a discussion note |
|
`body`
| string | yes | The content of a discussion |
|
`created_at`
| string | no | Date time string, ISO 8601 formatted, e.g. 2016-03-11T03:45:40Z |
|
`created_at`
| string | no | Date time string, ISO 8601 formatted, e.g. 2016-03-11T03:45:40Z
(requires admin or project/group owner rights)
|
```
bash
curl
--request
POST
--header
"PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK"
https://gitlab.example.com/api/v4/projects/5/commits/11/discussions/6a9c1750b37d513a43987b574953fceb50b03ce7/notes?body
=
comment
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment