## Rewrapping - Calendly - Airtable - Squareup - PagerDuty - Trello - Miro --------- Co-authored-by: Francisco Liberal <francisco@arcade.dev>
414 lines
29 KiB
JSON
414 lines
29 KiB
JSON
{
|
|
"name": "UpdateOrderCustomAttributeDefinition",
|
|
"fully_qualified_name": "SquareupApi.UpdateOrderCustomAttributeDefinition@2.0.0",
|
|
"description": "Modify order-related custom attribute definitions.\n\nUse this tool to update an order-related custom attribute definition for a Square seller account. Only the definition owner can perform updates. This tool is useful when you need to revise custom attributes that are part of an order.",
|
|
"toolkit": {
|
|
"name": "ArcadeSquareupApi",
|
|
"description": null,
|
|
"version": "2.0.0"
|
|
},
|
|
"input": {
|
|
"parameters": [
|
|
{
|
|
"name": "custom_attribute_key",
|
|
"required": true,
|
|
"description": "The key for the custom attribute definition to update. Must be unique per application, seller, and resource type.",
|
|
"value_schema": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The key of the custom attribute definition to update."
|
|
},
|
|
"inferrable": true,
|
|
"http_endpoint_parameter_name": "key"
|
|
},
|
|
{
|
|
"name": "custom_attribute_definition_key",
|
|
"required": false,
|
|
"description": "The identifier of the custom attribute definition. Can be a simple or qualified key. Must be unique per application, seller, and resource type.",
|
|
"value_schema": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The identifier\nof the custom attribute definition and its corresponding custom attributes. This value\ncan be a simple key, which is the key that is provided when the custom attribute definition\nis created, or a qualified key, if the requesting\napplication is not the definition owner. The qualified key consists of the application ID\nof the custom attribute definition owner\nfollowed by the simple key that was provided when the definition was created. It has the\nformat application_id:simple key.\n\nThe value for a simple key can contain up to 60 alphanumeric characters, periods (.),\nunderscores (_), and hyphens (-).\n\nThis field can not be changed\nafter the custom attribute definition is created. This field is required when creating\na definition and must be unique per application, seller, and resource type."
|
|
},
|
|
"inferrable": true,
|
|
"http_endpoint_parameter_name": "custom_attribute_definition.key"
|
|
},
|
|
{
|
|
"name": "custom_attribute_schema",
|
|
"required": false,
|
|
"description": "Provide the JSON schema for the custom attribute definition, determining the data type of associated attributes. This is mandatory when creating a definition.",
|
|
"value_schema": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The JSON schema for the custom attribute definition, which determines the data type of the corresponding custom attributes. For more information,\nsee [Custom Attributes Overview](https://developer.squareup.com/docs/devtools/customattributes/overview). This field is required when creating a definition."
|
|
},
|
|
"inferrable": true,
|
|
"http_endpoint_parameter_name": "custom_attribute_definition.schema"
|
|
},
|
|
{
|
|
"name": "custom_attribute_name",
|
|
"required": false,
|
|
"description": "The unique name for the custom attribute definition within the seller and application pair. Required if visibility is `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.",
|
|
"value_schema": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The name of the custom attribute definition for API and seller-facing UI purposes. The name must\nbe unique within the seller and application pair. This field is required if the\n`visibility` field is `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`."
|
|
},
|
|
"inferrable": true,
|
|
"http_endpoint_parameter_name": "custom_attribute_definition.name"
|
|
},
|
|
{
|
|
"name": "custom_attribute_description",
|
|
"required": false,
|
|
"description": "Description for the custom attribute definition, viewable as a Square UI tooltip. Required if visibility is READ_ONLY or READ_WRITE_VALUES.",
|
|
"value_schema": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Seller-oriented description of the custom attribute definition, including any constraints\nthat the seller should observe. May be displayed as a tooltip in Square UIs. This field is\nrequired if the `visibility` field is `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`."
|
|
},
|
|
"inferrable": true,
|
|
"http_endpoint_parameter_name": "custom_attribute_definition.description"
|
|
},
|
|
{
|
|
"name": "custom_attribute_visibility",
|
|
"required": false,
|
|
"description": "Sets the visibility level for the custom attribute definition. Options: 'VISIBILITY_HIDDEN', 'VISIBILITY_READ_ONLY', 'VISIBILITY_READ_WRITE_VALUES'.",
|
|
"value_schema": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"VISIBILITY_HIDDEN",
|
|
"VISIBILITY_READ_ONLY",
|
|
"VISIBILITY_READ_WRITE_VALUES"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The level of permission that a seller or other applications requires to\nview this custom attribute definition.\nThe `Visibility` field controls who can read and write the custom attribute values\nand custom attribute definition."
|
|
},
|
|
"inferrable": true,
|
|
"http_endpoint_parameter_name": "custom_attribute_definition.visibility"
|
|
},
|
|
{
|
|
"name": "current_version_of_custom_attribute_definition",
|
|
"required": false,
|
|
"description": "The current version of the custom attribute definition. Provide this to enable optimistic concurrency.",
|
|
"value_schema": {
|
|
"val_type": "integer",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Read only. The current version of the custom attribute definition.\nThe value is incremented each time the custom attribute definition is updated.\nWhen updating a custom attribute definition, you can provide this field\nand specify the current version of the custom attribute definition to enable\n[optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency).\n\nOn writes, this field must be set to the latest version. Stale writes are rejected.\n\nThis field can also be used to enforce strong consistency for reads. For more information about strong consistency for reads,\nsee [Custom Attributes Overview](https://developer.squareup.com/docs/devtools/customattributes/overview)."
|
|
},
|
|
"inferrable": true,
|
|
"http_endpoint_parameter_name": "custom_attribute_definition.version"
|
|
},
|
|
{
|
|
"name": "custom_attribute_updated_timestamp",
|
|
"required": false,
|
|
"description": "The timestamp in RFC 3339 format showing when the custom attribute definition was created or last updated.",
|
|
"value_schema": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The timestamp that indicates when the custom attribute definition was created or most recently updated,\nin RFC 3339 format."
|
|
},
|
|
"inferrable": true,
|
|
"http_endpoint_parameter_name": "custom_attribute_definition.updated_at"
|
|
},
|
|
{
|
|
"name": "creation_timestamp",
|
|
"required": false,
|
|
"description": "The timestamp indicating when the custom attribute definition was created, in RFC 3339 format. This field is read-only and used for informational purposes.",
|
|
"value_schema": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The timestamp that indicates when the custom attribute definition was created, in RFC 3339 format."
|
|
},
|
|
"inferrable": true,
|
|
"http_endpoint_parameter_name": "custom_attribute_definition.created_at"
|
|
},
|
|
{
|
|
"name": "idempotency_identifier",
|
|
"required": false,
|
|
"description": "A unique string identifier for the request to ensure idempotency. Refer to Square's idempotency guidelines for more details.",
|
|
"value_schema": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A unique identifier for this request, used to ensure idempotency. \nFor more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency)."
|
|
},
|
|
"inferrable": true,
|
|
"http_endpoint_parameter_name": "idempotency_key"
|
|
}
|
|
]
|
|
},
|
|
"output": {
|
|
"description": "Response from the API endpoint 'UpdateOrderCustomAttributeDefinition'.",
|
|
"available_modes": [
|
|
"value",
|
|
"error",
|
|
"null"
|
|
],
|
|
"value_schema": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": null
|
|
}
|
|
},
|
|
"requirements": {
|
|
"authorization": {
|
|
"provider_id": "arcade-squareup",
|
|
"provider_type": "oauth2",
|
|
"id": null,
|
|
"oauth2": {
|
|
"scopes": [
|
|
"ORDERS_WRITE"
|
|
]
|
|
}
|
|
},
|
|
"secrets": null,
|
|
"metadata": null
|
|
},
|
|
"deprecation_message": null,
|
|
"metadata": {
|
|
"object_type": "api_wrapper_tool",
|
|
"version": "1.1.0",
|
|
"description": "Tools that enable LLMs to interact directly with the squareup API."
|
|
},
|
|
"http_endpoint": {
|
|
"metadata": {
|
|
"object_type": "http_endpoint",
|
|
"version": "1.2.0",
|
|
"description": ""
|
|
},
|
|
"url": "https://connect.squareup.com/v2/orders/custom-attribute-definitions/{key}",
|
|
"http_method": "PUT",
|
|
"headers": {},
|
|
"parameters": [
|
|
{
|
|
"name": "key",
|
|
"tool_parameter_name": "custom_attribute_key",
|
|
"description": "The key of the custom attribute definition to update.",
|
|
"value_schema": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The key of the custom attribute definition to update."
|
|
},
|
|
"accepted_as": "path",
|
|
"required": true,
|
|
"deprecated": false,
|
|
"default": null,
|
|
"documentation_urls": []
|
|
},
|
|
{
|
|
"name": "custom_attribute_definition.key",
|
|
"tool_parameter_name": "custom_attribute_definition_key",
|
|
"description": "The identifier\nof the custom attribute definition and its corresponding custom attributes. This value\ncan be a simple key, which is the key that is provided when the custom attribute definition\nis created, or a qualified key, if the requesting\napplication is not the definition owner. The qualified key consists of the application ID\nof the custom attribute definition owner\nfollowed by the simple key that was provided when the definition was created. It has the\nformat application_id:simple key.\n\nThe value for a simple key can contain up to 60 alphanumeric characters, periods (.),\nunderscores (_), and hyphens (-).\n\nThis field can not be changed\nafter the custom attribute definition is created. This field is required when creating\na definition and must be unique per application, seller, and resource type.",
|
|
"value_schema": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The identifier\nof the custom attribute definition and its corresponding custom attributes. This value\ncan be a simple key, which is the key that is provided when the custom attribute definition\nis created, or a qualified key, if the requesting\napplication is not the definition owner. The qualified key consists of the application ID\nof the custom attribute definition owner\nfollowed by the simple key that was provided when the definition was created. It has the\nformat application_id:simple key.\n\nThe value for a simple key can contain up to 60 alphanumeric characters, periods (.),\nunderscores (_), and hyphens (-).\n\nThis field can not be changed\nafter the custom attribute definition is created. This field is required when creating\na definition and must be unique per application, seller, and resource type."
|
|
},
|
|
"accepted_as": "body",
|
|
"required": false,
|
|
"deprecated": false,
|
|
"default": null,
|
|
"documentation_urls": []
|
|
},
|
|
{
|
|
"name": "custom_attribute_definition.schema",
|
|
"tool_parameter_name": "custom_attribute_schema",
|
|
"description": "The JSON schema for the custom attribute definition, which determines the data type of the corresponding custom attributes. For more information,\nsee [Custom Attributes Overview](https://developer.squareup.com/docs/devtools/customattributes/overview). This field is required when creating a definition.",
|
|
"value_schema": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The JSON schema for the custom attribute definition, which determines the data type of the corresponding custom attributes. For more information,\nsee [Custom Attributes Overview](https://developer.squareup.com/docs/devtools/customattributes/overview). This field is required when creating a definition."
|
|
},
|
|
"accepted_as": "body",
|
|
"required": false,
|
|
"deprecated": false,
|
|
"default": null,
|
|
"documentation_urls": []
|
|
},
|
|
{
|
|
"name": "custom_attribute_definition.name",
|
|
"tool_parameter_name": "custom_attribute_name",
|
|
"description": "The name of the custom attribute definition for API and seller-facing UI purposes. The name must\nbe unique within the seller and application pair. This field is required if the\n`visibility` field is `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.",
|
|
"value_schema": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The name of the custom attribute definition for API and seller-facing UI purposes. The name must\nbe unique within the seller and application pair. This field is required if the\n`visibility` field is `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`."
|
|
},
|
|
"accepted_as": "body",
|
|
"required": false,
|
|
"deprecated": false,
|
|
"default": null,
|
|
"documentation_urls": []
|
|
},
|
|
{
|
|
"name": "custom_attribute_definition.description",
|
|
"tool_parameter_name": "custom_attribute_description",
|
|
"description": "Seller-oriented description of the custom attribute definition, including any constraints\nthat the seller should observe. May be displayed as a tooltip in Square UIs. This field is\nrequired if the `visibility` field is `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.",
|
|
"value_schema": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Seller-oriented description of the custom attribute definition, including any constraints\nthat the seller should observe. May be displayed as a tooltip in Square UIs. This field is\nrequired if the `visibility` field is `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`."
|
|
},
|
|
"accepted_as": "body",
|
|
"required": false,
|
|
"deprecated": false,
|
|
"default": null,
|
|
"documentation_urls": []
|
|
},
|
|
{
|
|
"name": "custom_attribute_definition.visibility",
|
|
"tool_parameter_name": "custom_attribute_visibility",
|
|
"description": "The level of permission that a seller or other applications requires to\nview this custom attribute definition.\nThe `Visibility` field controls who can read and write the custom attribute values\nand custom attribute definition.",
|
|
"value_schema": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"VISIBILITY_HIDDEN",
|
|
"VISIBILITY_READ_ONLY",
|
|
"VISIBILITY_READ_WRITE_VALUES"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The level of permission that a seller or other applications requires to\nview this custom attribute definition.\nThe `Visibility` field controls who can read and write the custom attribute values\nand custom attribute definition."
|
|
},
|
|
"accepted_as": "body",
|
|
"required": false,
|
|
"deprecated": false,
|
|
"default": null,
|
|
"documentation_urls": []
|
|
},
|
|
{
|
|
"name": "custom_attribute_definition.version",
|
|
"tool_parameter_name": "current_version_of_custom_attribute_definition",
|
|
"description": "Read only. The current version of the custom attribute definition.\nThe value is incremented each time the custom attribute definition is updated.\nWhen updating a custom attribute definition, you can provide this field\nand specify the current version of the custom attribute definition to enable\n[optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency).\n\nOn writes, this field must be set to the latest version. Stale writes are rejected.\n\nThis field can also be used to enforce strong consistency for reads. For more information about strong consistency for reads,\nsee [Custom Attributes Overview](https://developer.squareup.com/docs/devtools/customattributes/overview).",
|
|
"value_schema": {
|
|
"val_type": "integer",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Read only. The current version of the custom attribute definition.\nThe value is incremented each time the custom attribute definition is updated.\nWhen updating a custom attribute definition, you can provide this field\nand specify the current version of the custom attribute definition to enable\n[optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency).\n\nOn writes, this field must be set to the latest version. Stale writes are rejected.\n\nThis field can also be used to enforce strong consistency for reads. For more information about strong consistency for reads,\nsee [Custom Attributes Overview](https://developer.squareup.com/docs/devtools/customattributes/overview)."
|
|
},
|
|
"accepted_as": "body",
|
|
"required": false,
|
|
"deprecated": false,
|
|
"default": null,
|
|
"documentation_urls": []
|
|
},
|
|
{
|
|
"name": "custom_attribute_definition.updated_at",
|
|
"tool_parameter_name": "custom_attribute_updated_timestamp",
|
|
"description": "The timestamp that indicates when the custom attribute definition was created or most recently updated,\nin RFC 3339 format.",
|
|
"value_schema": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The timestamp that indicates when the custom attribute definition was created or most recently updated,\nin RFC 3339 format."
|
|
},
|
|
"accepted_as": "body",
|
|
"required": false,
|
|
"deprecated": false,
|
|
"default": null,
|
|
"documentation_urls": []
|
|
},
|
|
{
|
|
"name": "custom_attribute_definition.created_at",
|
|
"tool_parameter_name": "creation_timestamp",
|
|
"description": "The timestamp that indicates when the custom attribute definition was created, in RFC 3339 format.",
|
|
"value_schema": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The timestamp that indicates when the custom attribute definition was created, in RFC 3339 format."
|
|
},
|
|
"accepted_as": "body",
|
|
"required": false,
|
|
"deprecated": false,
|
|
"default": null,
|
|
"documentation_urls": []
|
|
},
|
|
{
|
|
"name": "idempotency_key",
|
|
"tool_parameter_name": "idempotency_identifier",
|
|
"description": "A unique identifier for this request, used to ensure idempotency. \nFor more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).",
|
|
"value_schema": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A unique identifier for this request, used to ensure idempotency. \nFor more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency)."
|
|
},
|
|
"accepted_as": "body",
|
|
"required": false,
|
|
"deprecated": false,
|
|
"default": null,
|
|
"documentation_urls": []
|
|
}
|
|
],
|
|
"documentation_urls": [],
|
|
"secrets": [
|
|
{
|
|
"arcade_key": "auth_token",
|
|
"parameter_name": "Authorization",
|
|
"accepted_as": "header",
|
|
"formatted_value": "Bearer {authorization}",
|
|
"description": "The OAuth token to use for authentication.",
|
|
"is_auth_token": true
|
|
}
|
|
],
|
|
"request_body_spec": "{\n \"required\": true,\n \"description\": \"An object containing the fields to POST for the request.\\n\\nSee the corresponding object definition for field details.\",\n \"content\": {\n \"application/json\": {\n \"schema\": {\n \"type\": \"object\",\n \"description\": \"Represents an update request for an order custom attribute definition.\",\n \"x-release-status\": \"BETA\",\n \"x-params-example\": \"?key=cover-count\",\n \"required\": [\n \"custom_attribute_definition\"\n ],\n \"properties\": {\n \"custom_attribute_definition\": {\n \"type\": \"object\",\n \"description\": \"Represents a definition for custom attribute values. A custom attribute definition\\nspecifies the key, visibility, schema, and other properties for a custom attribute.\",\n \"x-release-status\": \"PUBLIC\",\n \"properties\": {\n \"key\": {\n \"type\": \"string\",\n \"description\": \"The identifier\\nof the custom attribute definition and its corresponding custom attributes. This value\\ncan be a simple key, which is the key that is provided when the custom attribute definition\\nis created, or a qualified key, if the requesting\\napplication is not the definition owner. The qualified key consists of the application ID\\nof the custom attribute definition owner\\nfollowed by the simple key that was provided when the definition was created. It has the\\nformat application_id:simple key.\\n\\nThe value for a simple key can contain up to 60 alphanumeric characters, periods (.),\\nunderscores (_), and hyphens (-).\\n\\nThis field can not be changed\\nafter the custom attribute definition is created. This field is required when creating\\na definition and must be unique per application, seller, and resource type.\",\n \"minLength\": 1,\n \"pattern\": \"^([a-zA-Z0-9\\\\._-]+:)?[a-zA-Z0-9\\\\._-]{1,60}$\",\n \"nullable\": true\n },\n \"schema\": {\n \"type\": \"object\",\n \"description\": \"The JSON schema for the custom attribute definition, which determines the data type of the corresponding custom attributes. For more information,\\nsee [Custom Attributes Overview](https://developer.squareup.com/docs/devtools/customattributes/overview). This field is required when creating a definition.\",\n \"nullable\": true\n },\n \"name\": {\n \"type\": \"string\",\n \"description\": \"The name of the custom attribute definition for API and seller-facing UI purposes. The name must\\nbe unique within the seller and application pair. This field is required if the\\n`visibility` field is `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.\",\n \"maxLength\": 255,\n \"nullable\": true\n },\n \"description\": {\n \"type\": \"string\",\n \"description\": \"Seller-oriented description of the custom attribute definition, including any constraints\\nthat the seller should observe. May be displayed as a tooltip in Square UIs. This field is\\nrequired if the `visibility` field is `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.\",\n \"maxLength\": 255,\n \"nullable\": true\n },\n \"visibility\": {\n \"type\": \"string\",\n \"enum\": [\n \"VISIBILITY_HIDDEN\",\n \"VISIBILITY_READ_ONLY\",\n \"VISIBILITY_READ_WRITE_VALUES\"\n ],\n \"x-enum-elements\": [\n {\n \"name\": \"VISIBILITY_HIDDEN\",\n \"description\": \"The custom attribute definition and values are hidden from the seller (except on export\\nof all seller data) and other developers.\"\n },\n {\n \"name\": \"VISIBILITY_READ_ONLY\",\n \"description\": \"The seller and other developers can read the custom attribute definition and values\\non resources.\"\n },\n {\n \"name\": \"VISIBILITY_READ_WRITE_VALUES\",\n \"description\": \"The seller and other developers can read the custom attribute definition,\\nand can read and write values on resources. A custom attribute definition\\ncan only be edited or deleted by the application that created it.\"\n }\n ],\n \"description\": \"The level of permission that a seller or other applications requires to\\nview this custom attribute definition.\\nThe `Visibility` field controls who can read and write the custom attribute values\\nand custom attribute definition.\",\n \"x-release-status\": \"PUBLIC\"\n },\n \"version\": {\n \"type\": \"integer\",\n \"description\": \"Read only. The current version of the custom attribute definition.\\nThe value is incremented each time the custom attribute definition is updated.\\nWhen updating a custom attribute definition, you can provide this field\\nand specify the current version of the custom attribute definition to enable\\n[optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency).\\n\\nOn writes, this field must be set to the latest version. Stale writes are rejected.\\n\\nThis field can also be used to enforce strong consistency for reads. For more information about strong consistency for reads,\\nsee [Custom Attributes Overview](https://developer.squareup.com/docs/devtools/customattributes/overview).\"\n },\n \"updated_at\": {\n \"type\": \"string\",\n \"description\": \"The timestamp that indicates when the custom attribute definition was created or most recently updated,\\nin RFC 3339 format.\",\n \"readOnly\": true\n },\n \"created_at\": {\n \"type\": \"string\",\n \"description\": \"The timestamp that indicates when the custom attribute definition was created, in RFC 3339 format.\",\n \"readOnly\": true\n }\n }\n },\n \"idempotency_key\": {\n \"type\": \"string\",\n \"description\": \"A unique identifier for this request, used to ensure idempotency. \\nFor more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).\",\n \"minLength\": 1,\n \"maxLength\": 45,\n \"nullable\": true\n }\n },\n \"example\": {\n \"custom_attribute_definition\": {\n \"key\": \"cover-count\",\n \"version\": 1,\n \"visibility\": \"VISIBILITY_READ_ONLY\"\n },\n \"idempotency_key\": \"IDEMPOTENCY_KEY\"\n }\n }\n }\n }\n}",
|
|
"use_request_body_schema_mode": false,
|
|
"validate_request_body_schema": false
|
|
}
|
|
}
|