younifyd
Menu

Create Logpush Ownership

Create Logpush ownership token file.

POST/organizations/{organizationId}/zones/{zoneId}/logpush/ownership

Use it in a workflow

  1. Add a step and choose the Salesforce Commerce Cloud connector.
  2. Pick the Create Logpush Ownership action (under Zones (Data API)).
  3. Fill in the fields below, then reference the result from later steps as {{createLogpushOwnership.response.data}}.

Request

Path parameters

zoneIdstringrequired
organizationIdstringrequired

An identifier for the organization the request is being made by

Request body

Enter the body as JSON in the step's Body field.

destinationPathstringrequired

Uniquely identifies a resource (such as an s3 bucket) where data will be pushed. Additional configuration parameters supported by the destination may be included. You can use the special string {DATE} in the URL path to separate logs into daily subdirectories; for example s3://customer-bucket/logs/{DATE}?region=us-east-1&sse=AES256. The name of the directory will be replaced with the date in YYYYMMDD format (e.g. 20220215) when the logs are stored.

json
{
  "destinationPath": "s3://customer-bucket/site-name/{DATE}?region=us-east-1&sse=AES256"
}

Response

Returns 201 with an object. Read it in later steps with {{createLogpushOwnership.response.data.<field>}}.

dataobject

The customer's new Logpush Ownership.

destinationPathstringrequired

Destination where logs will be sent (S3 bucket only).

fileNamestringrequired

File path where the ownership challenge file is written.

json
{
  "data": {
    "destinationPath": "s3://customer-bucket/site-name/{DATE}?region=us-east-1&sse=AES256",
    "fileName": "site-name/20230101/ownership-challenge-d12345678.txt"
  }
}

Need more? See the Salesforce Commerce Cloud guide for connection setup and behaviour shared by every action.

Create Logpush Ownership — Salesforce Commerce Cloud — Documentation