-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBusinessDataUpdate_DeveloperPortal1.yml
150 lines (145 loc) · 4.86 KB
/
BusinessDataUpdate_DeveloperPortal1.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
openapi: 3.0.1
info:
description: >-
Business Data fields are custom fields that can be associated with the call's
metadata. these fields are used for enriching call interactions with data
that is coming from external sources, mostly from CRM systems.<br>
The API offers the following functionality:<br>
1. Set new business data fields (see limitations)<br>
2. Activate or Deactivate business data field<br>
3. Modify the business data display-name (see limitations)<br>
4. Query the number of available fields<br><br>
Limitations: <br>
1. The number of fields that can be set is limited<br>
- Number of "String" type is limited to 35<br>
- Number of "Numeric" type is limited to 10<br>
- Number of "Boolean" type is limited to 5<br>
2. Display-name of business data can be changed but must be unique<br>
version: V1
title: Business Data Fields Management API
contact:
email: R&[email protected]
license:
name: Apache 2.0
url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
paths:
/business-data-manager/v1/business-data/contact/{contactId}:
put:
tags:
- UpdateBusiness Data
summary: For all the segments available for the given acdContactId, replace/update the business data with the user provided business data
description: Update Business Data for Closed Interactions
operationId: updateBusinessDataFieldForClosedInteraction
parameters:
- name: contactId
in: path
description: acdContactId for the segment
required: true
schema:
type: string
requestBody:
description: Dynamic Business Data key value pairs
content:
application/json:
schema:
type: array
items:
type: object
example: [{"BDNAME1":"BDVAL1"},{"BDNAME2":1234.12},{"BDNAME3":true}]
required: true
responses:
'204':
description: The server has successfully fulfilled the request and that there is no additional content to send in the response payload body.
'400':
description: 400 Invalid Request
content:
application/json:
schema:
$ref: '#/components/schemas/Error400ApiResponse'
'401':
description: 401 Authentication failure
content:
application/json:
schema:
$ref: '#/components/schemas/Error401ApiResponse'
'403':
description: 403 Permissions Required
content:
application/json:
schema:
$ref: '#/components/schemas/Error403ApiResponse'
'404':
description: 404 Business data field was not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error404ApiResponse'
'500':
description: 500 Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error500ApiResponse'
components:
schemas:
Error400ApiResponse:
type: object
properties:
internalCode:
type: string
example: 8100
message:
type: string
example: Invalid request
Error401ApiResponse:
type: object
properties:
internalCode:
type: string
example: 8300
message:
type: string
example: Requested change is not permited
Error403ApiResponse:
type: object
properties:
internalCode:
type: string
example: 8500
message:
type: string
example: User has no privileges to perform this operation
Error404ApiResponse:
type: object
properties:
internalCode:
type: string
example: 8200
message:
type: string
example: Business data field was not found
Error500ApiResponse:
type: object
properties:
internalCode:
type: string
example: 8400
message:
type: string
example: Internal server error
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
security:
- bearerAuth: []
servers:
- url: 'https://na1.nice-incontact.com'
description: Production Environment (uses live data)
- url: 'https://na1.test.nice-incontact.com'
description: Test Environment
- url: 'https://na1.dev.nice-incontact.com'
description: Dev Environment
- url: 'https://na1.staging.nice-incontact.com'
description: Staging Environment