TraitGroup

Update Trait Group

Changed on

Partially updates a Trait Group. Only the fields provided in the request body will be updated. For traits: existing traits with matching keys will be updated, new keys will be added. To remove a trait, set its dataType to an empty string ("") - this serves as an explicit deletion marker.

patch/v1/ControlPlane/Stores/{storeId}/TraitGroups/{traitGroupName}

Request

  • Base URL
    https://memory.twilio.com
  • URL
    https://memory.twilio.com/v1/ControlPlane/Stores/{storeId}/TraitGroups/{traitGroupName}
  • Auth
    HTTP basic

Headers

If-Matchstring
Example:"eyJpZCI6ImFuX2lkIiwidiI6MX0"

Allows for optimistic concurrency control by making the request conditional. Server will only act if the resource's current Entity Tag (ETag) matches the one provided, preventing accidental overwrites.

Request body

descriptionstring

Updated description of the Trait Group

traitsobject

Map of traits to add, update, or remove in this Trait Group, where the key is the trait name. - To update/add a trait: provide the complete TraitDefinition object - To remove a trait: set dataType to an empty string ("")

Example request

{
  "description": "Updated Trait Group contains traits related to contact information."
}

Response

TraitGroup update request accepted for processing.

messagestring
statusUrlstring

URI to check operation status.

Example response

{
  "message": "TraitGroup update request accepted."
}

Changes

    • breaking

      request body became required

    • breaking

      the response property's max was increased from 99999.00 to 999999.00 for the response status

    • breaking

      the response property's max was increased from 99999.00 to 999999.00 for the response status

    • breaking

      the response property's max was increased from 99999.00 to 999999.00 for the response status

    • breaking

      the response property's max was increased from 99999.00 to 999999.00 for the response status

    • breaking

      the response property's max was increased from 99999.00 to 999999.00 for the response status

    • info

      added the new optional request property //