Updates a location-related custom attribute definition for a Square seller account.
PUT
/v2/locations/custom-attribute-definitions/{key}
Updates a location-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.
The custom attribute definition that contains the fields to update. This endpoint supports sparse updates, so only new or changed fields need to be included in the request. Only the following fields can be updated:
namedescriptionvisibilityschema for a Selection data type. Only changes to the named options or the maximum number of allowed selections are supported.For more information, see Update a location custom attribute definition. To enable optimistic concurrency control, specify the current version of the custom attribute definition. If this is not important for your application, version can be set to -1.
A unique identifier for this request, used to ensure idempotency. For more information, see Idempotency.