Get a consent

Get a consent

This endpoint returns an individual consent.

GEThttps://apione.zwapgrid.com/consents//api/v1/consents/{consentId}
Path parameters
consentId*string (uuid)

The id of the consent you wish to get.

Header parameters
Response

Returns a consent.

Body
idstring (uuid)
namenullable string
statusConsentStatus (enum)
0123
sourcenullable string
createdOnstring (date-time)
updatedOnnullable string (date-time)
Request
const response = await fetch('https://apione.zwapgrid.com/consents//api/v1/consents/{consentId}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "status": 0,
  "source": "text",
  "createdOn": "2024-07-21T07:57:29.371Z",
  "updatedOn": "2024-07-21T07:57:29.371Z"
}

Last updated