contacts

Contact points related operations

Creates a contact point

post
Header parameters
X-Fieldsanyoptional

An optional fields mask

Body
contact_formstringoptional

The contact point's contact form

emailstringrequired

The contact point's email

idstringread-onlyoptional

The contact point's identifier

namestringrequired

The contact point's name

organizationall ofoptional

The producer organization

ownerall ofoptional

The user information

rolestringrequired

The role of the contact

Responses
curl -L \
  --request POST \
  --url 'http://www.data.gouv.fr/api/1/contacts/' \
  --header 'Content-Type: application/json' \
  --data '{
    "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",
    "logo": "text",
    "logo_thumbnail": "text",
    "slug": "text"
  },
  "owner": {
    "class": "text",
    "id": "text",
    "avatar": "text",
    "avatar_thumbnail": "text",
    "slug": "text",
    "uri": "text"
  },
  "role": "text"
}

Deletes a contact point given its identifier

delete
Path parameters
contact_pointanyrequired
Responses
curl -L \
  --request DELETE \
  --url 'http://www.data.gouv.fr/api/1/contacts/{contact_point}/'

No body

Get a contact point given its identifier

get
Path parameters
contact_pointanyrequired
Header parameters
X-Fieldsanyoptional

An optional fields mask

Responses
curl -L \
  --url 'http://www.data.gouv.fr/api/1/contacts/{contact_point}/'
{
  "contact_form": "text",
  "email": "text",
  "id": "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"
}
parameters
Path parameters
contact_pointanyrequired
curl -L \
  --request PARAMETERS \
  --url 'http://www.data.gouv.fr/api/1/contacts/{contact_point}/'

Updates a contact point given its identifier

put
Path parameters
contact_pointanyrequired
Header parameters
X-Fieldsanyoptional

An optional fields mask

Body
contact_formstringoptional

The contact point's contact form

emailstringrequired

The contact point's email

idstringread-onlyoptional

The contact point's identifier

namestringrequired

The contact point's name

organizationall ofoptional

The producer organization

ownerall ofoptional

The user information

rolestringrequired

The role of the contact

Responses
curl -L \
  --request PUT \
  --url 'http://www.data.gouv.fr/api/1/contacts/{contact_point}/' \
  --header 'Content-Type: application/json' \
  --data '{
    "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",
    "logo": "text",
    "logo_thumbnail": "text",
    "slug": "text"
  },
  "owner": {
    "class": "text",
    "id": "text",
    "avatar": "text",
    "avatar_thumbnail": "text",
    "slug": "text",
    "uri": "text"
  },
  "role": "text"
}

Dernière mise à jour

Cet article vous a-t-il été utile ?