Skip to content

Commit

Permalink
Update OpenAPI schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Sep 28, 2023
1 parent 6d90795 commit 35aad71
Showing 1 changed file with 62 additions and 53 deletions.
115 changes: 62 additions & 53 deletions core-api/core-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -1534,10 +1534,38 @@
"string",
"boolean",
"datetime",
"number"
"number",
"teammate",
"teammate_list",
"inbox",
"enum"
]
},
"values": {
"type": "array",
"description": "List of possible values for a custom field of type `enum`.",
"items": {
"type": "object",
"properties": {
"value": {
"type": "string",
"description": "Value of the custom field"
},
"label": {
"type": "string",
"description": "Human readable label for the value"
}
}
}
}
}
},
"required": [
"_links",
"id",
"name",
"type",
"description"
]
},
"CustomMessage": {
"required": [
Expand Down Expand Up @@ -3164,18 +3192,6 @@
}
}
},
"UpdateCustomField": {
"properties": {
"name": {
"type": "string",
"description": "Name of the custom field"
},
"description": {
"type": "string",
"description": "Description of the custom field"
}
}
},
"UpdateLink": {
"properties": {
"name": {
Expand Down Expand Up @@ -4469,6 +4485,21 @@
}
}
},
"/accounts/custom_fields": {
"get": {
"summary": "List Account's custom fields",
"description": "Lists the custom fields that can be attached to an Account.",
"operationId": "list-account-custom-fields",
"tags": [
"Custom Fields"
],
"responses": {
"200": {
"$ref": "#/components/responses/listOfCustomFields"
}
}
}
},
"/accounts/{account_id}": {
"get": {
"summary": "Fetch an account",
Expand Down Expand Up @@ -5307,7 +5338,7 @@
"/contacts/custom_fields": {
"get": {
"summary": "List Contact's custom fields",
"description": "Lists the custom fields in your company that are application to a Contact.",
"description": "Lists the custom fields that can be attached to a Contact.",
"operationId": "list-contact-custom-fields",
"tags": [
"Custom Fields"
Expand Down Expand Up @@ -5635,6 +5666,21 @@
}
}
},
"/conversations/custom_fields": {
"get": {
"summary": "List Conversation's custom fields",
"description": "Lists the custom fields that can be attached to a Conversation.",
"operationId": "list-conversation-custom-fields",
"tags": [
"Custom Fields"
],
"responses": {
"200": {
"$ref": "#/components/responses/listOfCustomFields"
}
}
}
},
"/conversations/search/{query}": {
"get": {
"summary": "Search conversations",
Expand Down Expand Up @@ -6333,7 +6379,7 @@
"get": {
"deprecated": true,
"summary": "List Contact's custom fields",
"description": "Lists the custom fields in your company that are application to a Contact.\n\n> ⚠️ Deprecated endpoint\n>\n> This endpoint has been deprecated. Please use the fully compatible `GET /contacts/custom_fields` endpoint instead.\n",
"description": "Lists the custom fields that can be attached to a Contact.\n\n> ⚠️ Deprecated endpoint\n>\n> This endpoint has been deprecated. Please use the fully compatible `GET /contacts/custom_fields` endpoint instead.\n",
"operationId": "list-custom-fields",
"tags": [
"Custom Fields"
Expand All @@ -6345,43 +6391,6 @@
}
}
},
"/custom_fields/{custom_field_id}": {
"patch": {
"deprecated": true,
"summary": "Update custom field",
"description": "Update a custom field. (⚠️ Deprecated)",
"tags": [
"Custom Fields"
],
"parameters": [
{
"in": "path",
"name": "custom_field_id",
"required": true,
"description": "Custom Field ID",
"schema": {
"type": "string",
"default": "fld_123"
}
}
],
"requestBody": {
"description": "Custom field",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateCustomField"
}
}
}
},
"responses": {
"204": {
"description": "No content"
}
}
}
},
"/download/{attachment_link_id}": {
"get": {
"summary": "Download attachment",
Expand Down

0 comments on commit 35aad71

Please sign in to comment.