Skip to main content Link Search Menu Expand Document (external link)

Updated Thu Sep 22nd 2022, 19:00 UTC

Create

POST /:account/user_schema

Note: This endpoint is still under active development, and may change without warning.

User Schema fields allow primary account admins to designate fields that users can fill out to customize their personalization variables.

Examples

Creating a custom field

Request

POST /textus/user_schema

Body

{
   "type": "url",
   "title": "Calendar Link",
   "description": "Your personal calend.ly url."
}
Example
$ curl -i -H Accept:"application/vnd.textus+jsonld" \
    -H Authorization:"Bearer {token}" \
    -X POST /textus/user_schema
    -d '{
   "type": "url",
   "title": "Calendar Link",
   "description": "Your personal calend.ly url."
}'

Response

Status

201

Response Type

CustomField

Example Body

{
  "@type": "CustomField",
  "@context": "/contexts/CustomField.jsonld",
  "id": "/textus/user_schema/qlrDLk",
  "slug": "calendar-link",
  "title": "Calendar Link",
  "type": "url",
  "description": "Your personal calend.ly url.",
  "createdAt": "2020-10-15T20:07:20.862Z",
  "inUse": false
}

© 2022 TextUs