Skip to the page
API pages

Guides

Endpoints

Requests15
Deleted requests2
Comments5
Comment search1
Voters3
Followers3
Boards4
Tags5
Issues5
Statuses1
Roadmap2
Insights10
Search1
People5
Teammates4
Conversations11
Operators1
Saved replies4
Changelog entries12
Changelog tags4
Changelog subscribers2
Help articles12
Help collections3
System status4
Knowledge sources5
Knowledge pages3
Otto2
Moderation2
Audit log1
Webhooks6
Webhook deliveries2
Token1

Set a person's trait

PUThttps://app.notert.io/api/v1/people/{id}/traits/{key}

Sets a trait on a member or a contact as the token's holder, as their page in the app does: a trait under the same key, whatever its case, takes the new value and type, and a new key is added while they carry fewer than a person takes. Sending the same value again changes nothing. Answers every trait they carry now.

A token with people:write. How to send one

Request

curl -X PUT https://app.notert.io/api/v1/people/c_a4c6e8f0-2b1d-4f3a-9c5e-7d9b1f3a5c70/traits/Company \
  -H "Authorization: Bearer $NOTERT_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "type": "text",
  "value": "Acme"
}'

Response 200

{
  "id": "c_a4c6e8f0-2b1d-4f3a-9c5e-7d9b1f3a5c70",
  "traits": [
    "string"
  ]
}

Path parameters

  • idstringRequired

    The person's id: m_ and a member's user id, or c_ and a contact's id, as the people list answers it.

  • keystringRequired

    The trait's name, up to 40 characters, such as Company or Seats. A key they carry, whatever its case, is replaced.

    At least 1 character. At most 40 characters.

Body

  • typestring

    The type to keep it as: text, number, boolean or url. Leave it out to type the value by its JSON; send url to keep a string as a link, which https:// is added to where it names no scheme, and which is refused unless it is a web address.

    One oftextnumberbooleanurl
  • valuestring or number or booleanRequired

    Its value. Without a type, it is typed by its JSON: a string is text of up to 200 characters, a number is kept as its digits (up to 15 before the point and 6 after), and true or false is yes or no. With a type, it must be a value of that type.

Response 200

  • idstring

    The person's id: m_ and a member's user id, or c_ and a contact's id, as the people list answers it.

  • traitsobject[]

    What the team, its scripts or AI clients noted about them, in the order added, each under a key of its own whatever its case.

    • keystring

      The trait's name.

    • typevalue

      The value's type: text, number, boolean or url.

    • valuestring or boolean

      The trait's value: text, a number as its digits so none is lost, true or false, or a link.

Errors

  • 400BAD_REQUESTInput validation failed.
  • 401UNAUTHORIZEDSend a valid API token as a Bearer token.
  • 403HOLDER_NOT_ALLOWEDThe teammate who holds this API token's secret can't do this in the workspace now. A teammate who can should roll it in the workspace's settings.
  • 403INSUFFICIENT_SCOPEThis API token can't change your customers' traits or invite teammates. Create one that may in the workspace's settings.
  • 403NETWORK_NOT_ALLOWEDThis API token works only from the networks it was made for. Call from one of them, or create a token for this one in the workspace's settings.
  • 403NO_SEATThis workspace's plan has no seat for you.
  • 403WORKSPACE_SUSPENDEDThis workspace is suspended.
  • 404NOT_FOUNDNot Found.
  • 409CHANGED_MEANWHILESomething changed meanwhile. Try again.
  • 409TRAIT_LIMIT_REACHEDThey carry as many traits as a person takes. Replace one by setting its key instead.
  • 429TOO_MANY_REQUESTSToo Many Requests. Its data holds retryAfter.

A refusal names its code beside a message. Rate limits says when to try again.