Update contact create swagger (#6576)
This commit is contained in:
parent
d870b0815a
commit
f1827c82fd
@ -1,25 +1,31 @@
|
|||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
email:
|
payload:
|
||||||
type: string
|
|
||||||
description: Email address of the contact
|
|
||||||
name:
|
|
||||||
type: string
|
|
||||||
description: The name of the contact
|
|
||||||
phone_number:
|
|
||||||
type: string
|
|
||||||
description: Phone number of the contact
|
|
||||||
thumbnail:
|
|
||||||
type: string
|
|
||||||
description: Avatar URL of the contact
|
|
||||||
additional_attributes:
|
|
||||||
type: object
|
type: object
|
||||||
description: The object containing additional attributes related to the contact
|
properties:
|
||||||
custom_attributes:
|
contact:
|
||||||
type: object
|
type: object
|
||||||
description: The object to save custom attributes for contact, accepts custom attributes key and value
|
properties:
|
||||||
example: { attribute_key: attribute_value, signed_up_at: dd/mm/yyyy }
|
email:
|
||||||
contact_inboxes:
|
type: string
|
||||||
type: array
|
description: Email address of the contact
|
||||||
items:
|
name:
|
||||||
$ref: '#/definitions/contact_inboxes'
|
type: string
|
||||||
|
description: The name of the contact
|
||||||
|
phone_number:
|
||||||
|
type: string
|
||||||
|
description: Phone number of the contact
|
||||||
|
thumbnail:
|
||||||
|
type: string
|
||||||
|
description: Avatar URL of the contact
|
||||||
|
additional_attributes:
|
||||||
|
type: object
|
||||||
|
description: The object containing additional attributes related to the contact
|
||||||
|
custom_attributes:
|
||||||
|
type: object
|
||||||
|
description: The object to save custom attributes for contact, accepts custom attributes key and value
|
||||||
|
example: { attribute_key: attribute_value, signed_up_at: dd/mm/yyyy }
|
||||||
|
contact_inboxes:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/definitions/contact_inboxes'
|
||||||
|
|||||||
@ -4857,38 +4857,48 @@
|
|||||||
"contact": {
|
"contact": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"email": {
|
"payload": {
|
||||||
"type": "string",
|
|
||||||
"description": "Email address of the contact"
|
|
||||||
},
|
|
||||||
"name": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "The name of the contact"
|
|
||||||
},
|
|
||||||
"phone_number": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "Phone number of the contact"
|
|
||||||
},
|
|
||||||
"thumbnail": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "Avatar URL of the contact"
|
|
||||||
},
|
|
||||||
"additional_attributes": {
|
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"description": "The object containing additional attributes related to the contact"
|
"properties": {
|
||||||
},
|
"contact": {
|
||||||
"custom_attributes": {
|
"type": "object",
|
||||||
"type": "object",
|
"properties": {
|
||||||
"description": "The object to save custom attributes for contact, accepts custom attributes key and value",
|
"email": {
|
||||||
"example": {
|
"type": "string",
|
||||||
"attribute_key": "attribute_value",
|
"description": "Email address of the contact"
|
||||||
"signed_up_at": "dd/mm/yyyy"
|
},
|
||||||
}
|
"name": {
|
||||||
},
|
"type": "string",
|
||||||
"contact_inboxes": {
|
"description": "The name of the contact"
|
||||||
"type": "array",
|
},
|
||||||
"items": {
|
"phone_number": {
|
||||||
"$ref": "#/definitions/contact_inboxes"
|
"type": "string",
|
||||||
|
"description": "Phone number of the contact"
|
||||||
|
},
|
||||||
|
"thumbnail": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Avatar URL of the contact"
|
||||||
|
},
|
||||||
|
"additional_attributes": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "The object containing additional attributes related to the contact"
|
||||||
|
},
|
||||||
|
"custom_attributes": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "The object to save custom attributes for contact, accepts custom attributes key and value",
|
||||||
|
"example": {
|
||||||
|
"attribute_key": "attribute_value",
|
||||||
|
"signed_up_at": "dd/mm/yyyy"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"contact_inboxes": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/contact_inboxes"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user