Skip to main content
POST
/
campaigns
/
{id}
/
customer_metadatas
/
{customer_id}
Create or update campaign customer metadata
curl --request POST \
  --url https://api.pocketflows.com/campaigns/{id}/customer_metadatas/{customer_id} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "metadata": {}
}'
{
  "customer": "<string>",
  "metadata": {},
  "created_at": "<string>",
  "updated_at": "<string>"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

The ID of the campaign

customer_id
string
required

The ID of the customer

Body

application/json
metadata
object
required

The metadata to associate with this campaign-customer pair

Response

200 - application/json

The created or updated CampaignCustomerMetadata object

customer
string
required

The ID of the customer

metadata
object
required

Arbitrary metadata associated with this campaign-customer pair

created_at
string
required

The creation timestamp

updated_at
string
required

The last update timestamp