Adding square up toolkit --------- Co-authored-by: Francisco Liberal <francisco@arcade.dev>
137 lines
4.7 KiB
JSON
137 lines
4.7 KiB
JSON
{
|
|
"name": "RemoveLocationCustomAttribute",
|
|
"fully_qualified_name": "SquareupApi.RemoveLocationCustomAttribute@0.1.0",
|
|
"description": "Deletes a custom attribute from a specified location.\n\nUse this tool to delete a custom attribute associated with a specified location. Ensure that the attribute's visibility is set to `VISIBILITY_READ_WRITE_VALUES` if it is owned by another application.",
|
|
"toolkit": {
|
|
"name": "ArcadeSquareupApi",
|
|
"description": null,
|
|
"version": "0.1.0"
|
|
},
|
|
"input": {
|
|
"parameters": [
|
|
{
|
|
"name": "location_id",
|
|
"required": true,
|
|
"description": "The ID of the target location for which the custom attribute will be deleted.",
|
|
"value_schema": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The ID of the target [location](entity:Location)."
|
|
},
|
|
"inferrable": true,
|
|
"http_endpoint_parameter_name": "location_id"
|
|
},
|
|
{
|
|
"name": "custom_attribute_key",
|
|
"required": true,
|
|
"description": "The key for the custom attribute to delete. Use the qualified key if not the definition owner.",
|
|
"value_schema": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The key of the custom attribute to delete. This key must match the `key` of a custom\nattribute definition in the Square seller account. If the requesting application is not the\ndefinition owner, you must use the qualified key."
|
|
},
|
|
"inferrable": true,
|
|
"http_endpoint_parameter_name": "key"
|
|
}
|
|
]
|
|
},
|
|
"output": {
|
|
"description": "Response from the API endpoint 'DeleteLocationCustomAttribute'.",
|
|
"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": [
|
|
"MERCHANT_PROFILE_WRITE"
|
|
]
|
|
}
|
|
},
|
|
"secrets": null,
|
|
"metadata": null
|
|
},
|
|
"deprecation_message": null,
|
|
"metadata": {
|
|
"object_type": "api_wrapper_tool",
|
|
"version": "1.0.0",
|
|
"description": "Tools that enable LLMs to interact directly with the squareup API."
|
|
},
|
|
"http_endpoint": {
|
|
"metadata": {
|
|
"object_type": "http_endpoint",
|
|
"version": "1.0.0",
|
|
"description": ""
|
|
},
|
|
"url": "https://connect.squareup.com/v2/locations/{location_id}/custom-attributes/{key}",
|
|
"http_method": "DELETE",
|
|
"headers": {},
|
|
"parameters": [
|
|
{
|
|
"name": "location_id",
|
|
"tool_parameter_name": "location_id",
|
|
"description": "The ID of the target [location](entity:Location).",
|
|
"value_schema": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The ID of the target [location](entity:Location)."
|
|
},
|
|
"accepted_as": "path",
|
|
"required": true,
|
|
"deprecated": false,
|
|
"documentation_urls": []
|
|
},
|
|
{
|
|
"name": "key",
|
|
"tool_parameter_name": "custom_attribute_key",
|
|
"description": "The key of the custom attribute to delete. This key must match the `key` of a custom\nattribute definition in the Square seller account. If the requesting application is not the\ndefinition owner, you must use the qualified key.",
|
|
"value_schema": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The key of the custom attribute to delete. This key must match the `key` of a custom\nattribute definition in the Square seller account. If the requesting application is not the\ndefinition owner, you must use the qualified key."
|
|
},
|
|
"accepted_as": "path",
|
|
"required": true,
|
|
"deprecated": false,
|
|
"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
|
|
}
|
|
]
|
|
}
|
|
}
|