Skip to main content

Create Personal Data Erasure Request

POST 

https://useast.api.elasticpath.com/v2/personal-data/erasure-requests

This request serves to create a new erasure request for a given resource ID and Type. All resources that belong to the same personal data set will be erased.

Request

Body

    data ErasureRequestrequired
    resource_typestring

    The type of the data entry to be erased.

    Example: account
    resource_iduuid

    The ID of the data entry to be erased (note that also all data entries in the personal data set will be erased).

    Example: 98140362-6caf-4829-b93d-953ac6adbe6e
    typestringrequired

    The type of the object. Always equal to erasure_request.

Responses

Created

Schema
    data object
    iduuid

    The unique identifier for the log entry.

    resource_typestring

    The type of the data entry to be erased.

    Example: account
    resource_iduuid

    The ID of the data entry to be erased (note that also all data entries in the personal data set will be erased).

    Example: 98140362-6caf-4829-b93d-953ac6adbe6e
    typestring

    The type of the object. Always equal to erasure_request.

    initiator object

    Specifies who initiated the erasure request.

    access-token-emailstring
    Example: accounts@elasticpath.com
    access-token-idstring
    Example: 1222341536243516000
    access-token-namestring
    Example: elastic path test team
    access-token-store-iduuid
    Example: 15ea9633-278c-4807-80f7-2009fed63c7e
    access-token-typestring
    Example: client-credentials-token
    statusstring

    Specifies the status of the erasure request.

    status_descriptionstring

    Elaborates on the erasure request status.

    created_atstring

    Specifies the status of the erasure request.

    updated_atstring

    Elaborates on the erasure request status.

    links object
    selfstring

    The self link.

Authorization: http

name: bearerAuthtype: httpscheme: bearer
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://useast.api.elasticpath.com/v2/personal-data/erasure-requests");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var content = new StringContent("{\n \"data\": {\n \"resource_type\": \"account\",\n \"resource_id\": \"98140362-6caf-4829-b93d-953ac6adbe6e\",\n \"type\": \"string\"\n }\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://useast.api.elasticpath.com
Auth
Body
{
  "data": {
    "resource_type": "account",
    "resource_id": "98140362-6caf-4829-b93d-953ac6adbe6e",
    "type": "string"
  }
}
ResponseClear

Click the Send API Request button above and see the response here!

We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.