MerchantCustomAttributes
UpdateMerchantCustomAttributeDefinition
Updates a merchant-related custom attribute definition for a Square seller account. Use this endpoint to update the following fields: name, description, visibility, or the schema for a Selection data type. Only the definition owner can update a custom attribute definition.
put/v2/merchants/custom-attribute-definitions/{key}
Path parameters
keystring required
The key of the custom attribute definition to update.
Request body
Example request
{
"custom_attribute_definition": {
"description": "Update the description as desired.",
"visibility": "VISIBILITY_READ_ONLY"
}
}Response
Success
Example response
{
"custom_attribute_definition": {
"created_at": "2023-05-05T19:06:36.559Z",
"description": "Update the description as desired.",
"key": "alternative_seller_name",
"name": "Alternative Merchant Name",
"schema": {
"$ref": "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String"
},
"updated_at": "2023-05-05T19:34:10.181Z",
"version": 2,
"visibility": "VISIBILITY_READ_ONLY"
}
}