discussions
Discussion related operations
The search query
The field (and direction) on which sorting apply
Filters discussions on their closed status if specified
Filter discussions for a given subject
Filter discussions for a given organization
Filter discussions created by a user
The page to fetch
The page size to fetch
An optional fields mask
Success
GET /api/1/discussions/ HTTP/1.1
Host: www.data.gouv.fr
Accept: */*
Success
{
"data": [
{
"class": "text",
"closed": "2025-08-12T18:57:24.745Z",
"closed_by": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"closed_by_organization": {
"class": "text",
"id": "text",
"acronym": "text",
"badges": [
{
"kind": "text"
}
],
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"created": "2025-08-12T18:57:24.745Z",
"discussion": {
"content": "text",
"last_modified_at": "2025-08-12T18:57:24.745Z",
"permissions": {
"delete": true,
"edit": true
},
"posted_by": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"posted_by_organization": {
"class": "text",
"id": "text",
"acronym": "text",
"badges": [
{
"kind": "text"
}
],
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"posted_on": "2025-08-12T18:57:24.745Z",
"spam": {
"status": "not_checked"
}
},
"extras": {},
"id": "text",
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"badges": [
{
"kind": "text"
}
],
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"permissions": {
"close": true,
"delete": true,
"edit": true
},
"self_web_url": "text",
"spam": {
"status": "not_checked"
},
"subject": {
"class": "text",
"id": "text"
},
"title": "text",
"url": "text",
"user": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
}
],
"next_page": "text",
"page": 1,
"page_size": 1,
"previous_page": "text",
"total": 1
}
An optional fields mask
The content of the initial comment
Extras attributes as key-value pairs
Publish in the name of this organization
The discussion target object
The title of the discussion to open
Success
POST /api/1/discussions/ HTTP/1.1
Host: www.data.gouv.fr
Content-Type: application/json
Accept: */*
Content-Length: 197
{
"comment": "text",
"extras": {},
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"slug": "text"
},
"subject": {
"class": "text",
"id": "text"
},
"title": "text"
}
Success
{
"class": "text",
"closed": "2025-08-12T18:57:24.745Z",
"closed_by": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"closed_by_organization": {
"class": "text",
"id": "text",
"acronym": "text",
"badges": [
{
"kind": "text"
}
],
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"created": "2025-08-12T18:57:24.745Z",
"discussion": {
"content": "text",
"last_modified_at": "2025-08-12T18:57:24.745Z",
"permissions": {
"delete": true,
"edit": true
},
"posted_by": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"posted_by_organization": {
"class": "text",
"id": "text",
"acronym": "text",
"badges": [
{
"kind": "text"
}
],
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"posted_on": "2025-08-12T18:57:24.745Z",
"spam": {
"status": "not_checked"
}
},
"extras": {},
"id": "text",
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"badges": [
{
"kind": "text"
}
],
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"permissions": {
"close": true,
"delete": true,
"edit": true
},
"self_web_url": "text",
"spam": {
"status": "not_checked"
},
"subject": {
"class": "text",
"id": "text"
},
"title": "text",
"url": "text",
"user": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
}
An optional fields mask
Success
GET /api/1/discussions/{id}/ HTTP/1.1
Host: www.data.gouv.fr
Accept: */*
Success
{
"class": "text",
"closed": "2025-08-12T18:57:24.745Z",
"closed_by": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"closed_by_organization": {
"class": "text",
"id": "text",
"acronym": "text",
"badges": [
{
"kind": "text"
}
],
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"created": "2025-08-12T18:57:24.745Z",
"discussion": {
"content": "text",
"last_modified_at": "2025-08-12T18:57:24.745Z",
"permissions": {
"delete": true,
"edit": true
},
"posted_by": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"posted_by_organization": {
"class": "text",
"id": "text",
"acronym": "text",
"badges": [
{
"kind": "text"
}
],
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"posted_on": "2025-08-12T18:57:24.745Z",
"spam": {
"status": "not_checked"
}
},
"extras": {},
"id": "text",
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"badges": [
{
"kind": "text"
}
],
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"permissions": {
"close": true,
"delete": true,
"edit": true
},
"self_web_url": "text",
"spam": {
"status": "not_checked"
},
"subject": {
"class": "text",
"id": "text"
},
"title": "text",
"url": "text",
"user": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
}
An optional fields mask
Is this a closing response. Only subject owner can close
The comment to submit
Success
Not allowed to close this discussion OR can't add comments on a closed discussion
POST /api/1/discussions/{id}/ HTTP/1.1
Host: www.data.gouv.fr
Content-Type: application/json
Accept: */*
Content-Length: 31
{
"close": true,
"comment": "text"
}
{
"class": "text",
"closed": "2025-08-12T18:57:24.745Z",
"closed_by": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"closed_by_organization": {
"class": "text",
"id": "text",
"acronym": "text",
"badges": [
{
"kind": "text"
}
],
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"created": "2025-08-12T18:57:24.745Z",
"discussion": {
"content": "text",
"last_modified_at": "2025-08-12T18:57:24.745Z",
"permissions": {
"delete": true,
"edit": true
},
"posted_by": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"posted_by_organization": {
"class": "text",
"id": "text",
"acronym": "text",
"badges": [
{
"kind": "text"
}
],
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"posted_on": "2025-08-12T18:57:24.745Z",
"spam": {
"status": "not_checked"
}
},
"extras": {},
"id": "text",
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"badges": [
{
"kind": "text"
}
],
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"permissions": {
"close": true,
"delete": true,
"edit": true
},
"self_web_url": "text",
"spam": {
"status": "not_checked"
},
"subject": {
"class": "text",
"id": "text"
},
"title": "text",
"url": "text",
"user": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
}
}
Mis à jour
Ce contenu vous a-t-il été utile ?