contacts
Contact points related operations
Paramètres d'en-tête
X-Fieldsstring · maskOptionnel
An optional fields mask
Corps
contact_formstringOptionnel
The contact point's contact form
emailstringRequis
The contact point's email
idstringLecture seuleOptionnel
The contact point's identifier
namestringRequis
The contact point's name
organizationall ofOptionnel
The producer organization
ownerall ofOptionnel
The user information
rolestringRequis
The role of the contact
Réponses
200
Success
application/json
400
Validation error
post
POST /api/1/contacts/ HTTP/1.1
Host: www.data.gouv.fr
Content-Type: application/json
Accept: */*
Content-Length: 285
{
"contact_form": "text",
"email": "text",
"name": "text",
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"slug": "text"
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"slug": "text",
"uri": "text"
},
"role": "text"
}
{
"contact_form": "text",
"email": "text",
"id": "text",
"name": "text",
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"badges": [
{
"kind": "text"
}
],
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"role": "text"
}
Paramètres de chemin
contact_pointanyRequis
Paramètres d'en-tête
X-Fieldsstring · maskOptionnel
An optional fields mask
Réponses
200
Success
application/json
404
Contact point not found
get
GET /api/1/contacts/{contact_point}/ HTTP/1.1
Host: www.data.gouv.fr
Accept: */*
{
"contact_form": "text",
"email": "text",
"id": "text",
"name": "text",
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"badges": [
{
"kind": "text"
}
],
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"role": "text"
}
parameters
Paramètres de chemin
contact_pointanyRequis
parameters
PARAMETERS /api/1/contacts/{contact_point}/ HTTP/1.1
Host: www.data.gouv.fr
Accept: */*
Paramètres de chemin
contact_pointanyRequis
Paramètres d'en-tête
X-Fieldsstring · maskOptionnel
An optional fields mask
Corps
contact_formstringOptionnel
The contact point's contact form
emailstringRequis
The contact point's email
idstringLecture seuleOptionnel
The contact point's identifier
namestringRequis
The contact point's name
organizationall ofOptionnel
The producer organization
ownerall ofOptionnel
The user information
rolestringRequis
The role of the contact
Réponses
200
Success
application/json
400
Validation error
404
Contact point not found
put
PUT /api/1/contacts/{contact_point}/ HTTP/1.1
Host: www.data.gouv.fr
Content-Type: application/json
Accept: */*
Content-Length: 285
{
"contact_form": "text",
"email": "text",
"name": "text",
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"logo": "text",
"logo_thumbnail": "text",
"slug": "text"
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"slug": "text",
"uri": "text"
},
"role": "text"
}
{
"contact_form": "text",
"email": "text",
"id": "text",
"name": "text",
"organization": {
"class": "text",
"id": "text",
"acronym": "text",
"badges": [
{
"kind": "text"
}
],
"logo": "text",
"logo_thumbnail": "text",
"name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"owner": {
"class": "text",
"id": "text",
"avatar": "text",
"avatar_thumbnail": "text",
"first_name": "text",
"last_name": "text",
"page": "text",
"slug": "text",
"uri": "text"
},
"role": "text"
}
Dernière mise à jour
Cet article vous a-t-il été utile ?