feat: Add examples to request payloads

This commit is contained in:
Daniel Jimenez
2025-05-13 14:29:02 +12:00
parent 470d51c913
commit 9eefec31b3
5 changed files with 73 additions and 11 deletions
@@ -3,3 +3,29 @@ properties:
name:
type: string
description: Name of the account
example: 'My Account'
locale:
type: string
description: The locale of the account
example: 'en'
domain:
type: string
description: The domain of the account
example: 'example.com'
support_email:
type: string
description: The support email of the account
example: 'support@example.com'
status:
type: string
enum: ['active', 'suspended']
description: The status of the account
example: 'active'
limits:
type: object
description: The limits of the account
example: {}
custom_attributes:
type: object
description: The custom attributes of the account
example: {}
@@ -6,6 +6,8 @@ properties:
user_id:
type: integer
description: The ID of the user
example: 1
role:
type: string
description: whether user is an administrator or agent
example: administrator
@@ -3,9 +3,16 @@ properties:
name:
type: string
description: The name of the agent bot
example: 'My Agent Bot'
description:
type: string
description: The description about the agent bot
description: The description of the agent bot
example: 'This is a sample agent bot'
outgoing_url:
type: string
description: The webhook URL for the bot
example: 'https://example.com/webhook'
account_id:
type: integer
description: The account ID to associate the agent bot with
example: 1
@@ -3,13 +3,20 @@ properties:
name:
type: string
description: Name of the user
example: 'Daniel'
display_name:
type: string
description: Display name of the user
example: 'Dan'
email:
type: string
description: Email of the user
example: 'daniel@acme.inc'
password:
type: string
description: Password must contain uppercase, lowercase letters, number and a special character
example: 'Password2!'
custom_attributes:
type: object
description: Custom attributes you want to associate with the user
example: {}
+29 -9
View File
@@ -8732,11 +8732,13 @@
"properties": {
"user_id": {
"type": "integer",
"description": "The ID of the user"
"description": "The ID of the user",
"example": 1
},
"role": {
"type": "string",
"description": "whether user is an administrator or agent"
"description": "whether user is an administrator or agent",
"example": "administrator"
}
}
},
@@ -8745,15 +8747,23 @@
"properties": {
"name": {
"type": "string",
"description": "The name of the agent bot"
"description": "The name of the agent bot",
"example": "My Agent Bot"
},
"description": {
"type": "string",
"description": "The description about the agent bot"
"description": "The description of the agent bot",
"example": "This is a sample agent bot"
},
"outgoing_url": {
"type": "string",
"description": "The webhook URL for the bot"
"description": "The webhook URL for the bot",
"example": "https://example.com/webhook"
},
"account_id": {
"type": "integer",
"description": "The account ID to associate the agent bot with",
"example": 1
}
}
},
@@ -8762,19 +8772,29 @@
"properties": {
"name": {
"type": "string",
"description": "Name of the user"
"description": "Name of the user",
"example": "Daniel"
},
"display_name": {
"type": "string",
"description": "Display name of the user",
"example": "Dan"
},
"email": {
"type": "string",
"description": "Email of the user"
"description": "Email of the user",
"example": "daniel@acme.inc"
},
"password": {
"type": "string",
"description": "Password must contain uppercase, lowercase letters, number and a special character"
"description": "Password must contain uppercase, lowercase letters, number and a special character",
"example": "Password2!"
},
"custom_attributes": {
"type": "object",
"description": "Custom attributes you want to associate with the user"
"description": "Custom attributes you want to associate with the user",
"example": {
}
}
}
},