contacts

Contact points related operations

Creates a contact point

post
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
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"
}

Deletes a contact point given its identifier

delete
Paramètres de chemin
contact_pointanyRequis
Réponses
204
Contact point deleted
delete
DELETE /api/1/contacts/{contact_point}/ HTTP/1.1
Host: www.data.gouv.fr
Accept: */*

Aucun contenu

Get a contact point given its identifier

get
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
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: */*

Updates a contact point given its identifier

put
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
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 ?