POST
/
publisher.v1
/
attribute.schema
/
set
Set
curl --request POST \
  --url http://localhost/publisher.v1/attribute.schema/set \
  --header 'Content-Type: application/json' \
  --data '
{
  "member_base_id": "<string>",
  "schema": {}
}
'
{
  "id": "<string>",
  "member_base_id": "<string>",
  "schema": {},
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}
Define or update the attribute schema for a memberbase. The schema specifies which attribute keys are valid and their types. Adding new keys to the schema does not affect existing members — they simply won’t have values for the new keys until explicitly set. Removing a key from the schema prevents new values from being written for that key but does not delete existing values from members.

Supported Types

The schema supports string, number, boolean, date (ISO 8601), and array (list of strings) types.

Body

application/json
member_base_id
string
required
schema
object
required

Response

Successful response

id
string
required
member_base_id
string
required
schema
object
required
created_at
string<date-time>
required
updated_at
string<date-time>
required