contacts

Contact points related operations

Creates a contact point

POST//www.data.gouv.fr/api/1/contacts/
Header parameters
Body
contact_formstring

The contact point's contact form

email*string

The contact point's email

idstring

The contact point's identifier

name*string

The contact point's name

organizationall of

The producer organization

ownerall of

The user information

Response

Success

Body
contact_formstring

The contact point's contact form

email*string

The contact point's email

idstring

The contact point's identifier

name*string

The contact point's name

organizationall of

The producer organization

ownerall of

The user information

Request
const response = await fetch('//www.data.gouv.fr/api/1/contacts/', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "email": "text",
      "name": "text"
    }),
});
const data = await response.json();
Response
{
  "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"
  }
}

Deletes a contact point given its identifier

DELETE//www.data.gouv.fr/api/1/contacts/{contact_point}/
Path parameters
contact_point*string
Response

Contact point deleted

Request
const response = await fetch('//www.data.gouv.fr/api/1/contacts/{contact_point}/', {
    method: 'DELETE',
    headers: {},
});
const data = await response.json();

Get a contact point given its identifier

GET//www.data.gouv.fr/api/1/contacts/{contact_point}/
Path parameters
contact_point*string
Header parameters
Response

Success

Body
contact_formstring

The contact point's contact form

email*string

The contact point's email

idstring

The contact point's identifier

name*string

The contact point's name

organizationall of

The producer organization

ownerall of

The user information

Request
const response = await fetch('//www.data.gouv.fr/api/1/contacts/{contact_point}/', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "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"
  }
}

PARAMETERS//www.data.gouv.fr/api/1/contacts/{contact_point}/
Path parameters
contact_point*string
Request
const response = await fetch('//www.data.gouv.fr/api/1/contacts/{contact_point}/', {
    method: 'PARAMETERS',
    headers: {},
});
const data = await response.json();

Updates a contact point given its identifier

PUT//www.data.gouv.fr/api/1/contacts/{contact_point}/
Path parameters
contact_point*string
Header parameters
Body
contact_formstring

The contact point's contact form

email*string

The contact point's email

idstring

The contact point's identifier

name*string

The contact point's name

organizationall of

The producer organization

ownerall of

The user information

Response

Success

Body
contact_formstring

The contact point's contact form

email*string

The contact point's email

idstring

The contact point's identifier

name*string

The contact point's name

organizationall of

The producer organization

ownerall of

The user information

Request
const response = await fetch('//www.data.gouv.fr/api/1/contacts/{contact_point}/', {
    method: 'PUT',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "email": "text",
      "name": "text"
    }),
});
const data = await response.json();
Response
{
  "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"
  }
}

Dernière mise à jour