Skip to content

Commit 5be5c72

Browse files
committedNov 17, 2024·
Updates for client routes
1 parent c264809 commit 5be5c72

File tree

2 files changed

+56
-12
lines changed

2 files changed

+56
-12
lines changed
 

‎api-docs.yaml

+52-11
Original file line numberDiff line numberDiff line change
@@ -12983,6 +12983,7 @@ paths:
1298312983
parameters:
1298412984
- $ref: '#/components/parameters/X-API-TOKEN'
1298512985
- $ref: '#/components/parameters/X-Requested-With'
12986+
- $ref: '#/components/parameters/index'
1298612987
- $ref: '#/components/parameters/client_include'
1298712988
requestBody:
1298812989
description: Client object that needs to be added to the company
@@ -13038,6 +13039,7 @@ paths:
1303813039
parameters:
1303913040
- $ref: '#/components/parameters/X-API-TOKEN'
1304013041
- $ref: '#/components/parameters/X-Requested-With'
13042+
- $ref: '#/components/parameters/index'
1304113043
- $ref: '#/components/parameters/client_include'
1304213044
- name: id
1304313045
in: path
@@ -13075,7 +13077,12 @@ paths:
1307513077
tags:
1307613078
- clients
1307713079
summary: 'Update client'
13078-
description: 'Handles the updating of a client by id'
13080+
description: |
13081+
Handles the updating of a client by id
13082+
13083+
> 🚨 Important
13084+
When creating (or updating) a client you must include the child contacts with all mutating requests. Client contacts cannot be modified in isolation.
13085+
1307913086
x-codeSamples:
1308013087
- lang: php
1308113088
label: php
@@ -13113,6 +13120,7 @@ paths:
1311313120
parameters:
1311413121
- $ref: '#/components/parameters/X-API-TOKEN'
1311513122
- $ref: '#/components/parameters/X-Requested-With'
13123+
- $ref: '#/components/parameters/index'
1311613124
- $ref: '#/components/parameters/client_include'
1311713125
- name: id
1311813126
in: path
@@ -13157,7 +13165,14 @@ paths:
1315713165
tags:
1315813166
- clients
1315913167
summary: 'Delete client'
13160-
description: 'Handles the deletion of a client by id'
13168+
description: |
13169+
Handles the deletion of a client by id
13170+
13171+
> ❗ Note
13172+
Deleting a client does not purge the client from the system. The delete action will remove the clients data from all
13173+
views in the application but keep it all on file. A Client can be laterrestored reversing this action. To permanently wipe a client and
13174+
all of their records from the system, use the /purge route
13175+
1316113176
x-codeSamples:
1316213177
- lang: php
1316313178
label: php
@@ -13175,6 +13190,7 @@ paths:
1317513190
parameters:
1317613191
- $ref: '#/components/parameters/X-API-TOKEN'
1317713192
- $ref: '#/components/parameters/X-Requested-With'
13193+
- $ref: '#/components/parameters/index'
1317813194
- $ref: '#/components/parameters/client_include'
1317913195
- name: id
1318013196
in: path
@@ -13214,7 +13230,8 @@ paths:
1321413230
parameters:
1321513231
- $ref: '#/components/parameters/X-API-TOKEN'
1321613232
- $ref: '#/components/parameters/X-Requested-With'
13217-
- $ref: '#/components/parameters/include'
13233+
- $ref: '#/components/parameters/index'
13234+
- $ref: '#/components/parameters/client_include'
1321813235
- name: id
1321913236
in: path
1322013237
description: 'The Client Hashed ID'
@@ -13257,6 +13274,7 @@ paths:
1325713274
parameters:
1325813275
- $ref: '#/components/parameters/X-API-TOKEN'
1325913276
- $ref: '#/components/parameters/X-Requested-With'
13277+
- $ref: '#/components/parameters/index'
1326013278
- $ref: '#/components/parameters/client_include'
1326113279
responses:
1326213280
200:
@@ -13349,6 +13367,7 @@ paths:
1334913367
- $ref: '#/components/parameters/X-API-TOKEN'
1335013368
- $ref: '#/components/parameters/X-Requested-With'
1335113369
- $ref: '#/components/parameters/index'
13370+
- $ref: '#/components/parameters/client_include'
1335213371
requestBody:
1335313372
description: 'Bulk action array'
1335413373
required: true
@@ -13406,6 +13425,7 @@ paths:
1340613425
parameters:
1340713426
- $ref: '#/components/parameters/X-API-TOKEN'
1340813427
- $ref: '#/components/parameters/X-Requested-With'
13428+
- $ref: '#/components/parameters/index'
1340913429
- $ref: '#/components/parameters/client_include'
1341013430
- name: id
1341113431
in: path
@@ -13425,10 +13445,24 @@ paths:
1342513445
_method:
1342613446
type: string
1342713447
example: POST
13428-
documents:
13448+
documents[]:
1342913449
type: array
13450+
description: |
13451+
Array of files to upload. The files should be sent with the key name 'documents[]'.
13452+
13453+
Supported file types:
13454+
- PDF (.pdf)
13455+
- Word (.doc, .docx)
13456+
- Excel (.xls, .xlsx)
13457+
- Images (.jpg, .jpeg, .png)
13458+
- Text (.txt)
13459+
13460+
Maximum file size: 20MB per file
1343013461
items:
13462+
type: string
1343113463
format: binary
13464+
description: The file contents
13465+
example: "@/path/to/document.pdf"
1343213466
responses:
1343313467
200:
1343413468
description: 'Returns the client object'
@@ -13461,8 +13495,8 @@ paths:
1346113495
description: |
1346213496
Handles purging a client.
1346313497

13464-
Please note this is a destructive action.
13465-
13498+
> ❗ Note
13499+
This is a destructive action.
1346613500
This action will remove all data associated with the client and cannot be undone.
1346713501
x-codeSamples:
1346813502
- lang: php
@@ -13483,7 +13517,6 @@ paths:
1348313517
- $ref: '#/components/parameters/X-API-TOKEN'
1348413518
- $ref: '#/components/parameters/X-Requested-With'
1348513519
- $ref: '#/components/parameters/X-API-PASSWORD'
13486-
- $ref: '#/components/parameters/client_include'
1348713520
- name: id
1348813521
in: path
1348913522
description: 'The Client Hashed ID'
@@ -13523,6 +13556,10 @@ paths:
1352313556
The id parameter is the client that will be the primary client after the merge has completed.
1352413557

1352513558
The mergeable_client_hashed_id is the client that will be merged into the primary client, this clients records will be updated and associated with the primary client.
13559+
13560+
> 🚨 **Important**
13561+
This action requires elevated permissions, please note the X-API-PASSWORD header requirements for this route.
13562+
1352613563
x-codeSamples:
1352713564
- lang: php
1352813565
label: php
@@ -13540,8 +13577,9 @@ paths:
1354013577
parameters:
1354113578
- $ref: '#/components/parameters/X-API-TOKEN'
1354213579
- $ref: '#/components/parameters/X-Requested-With'
13543-
- $ref: '#/components/parameters/client_include'
1354413580
- $ref: '#/components/parameters/X-API-PASSWORD'
13581+
- $ref: '#/components/parameters/index'
13582+
- $ref: '#/components/parameters/client_include'
1354513583
- name: id
1354613584
in: path
1354713585
description: 'The Client Hashed ID'
@@ -13614,7 +13652,8 @@ paths:
1361413652
parameters:
1361513653
- $ref: '#/components/parameters/X-API-TOKEN'
1361613654
- $ref: '#/components/parameters/X-Requested-With'
13617-
- $ref: '#/components/parameters/include'
13655+
- $ref: '#/components/parameters/index'
13656+
- $ref: '#/components/parameters/client_include'
1361813657
requestBody:
1361913658
description: 'Statement Options'
1362013659
required: true
@@ -13677,7 +13716,8 @@ paths:
1367713716
parameters:
1367813717
- $ref: '#/components/parameters/X-API-TOKEN'
1367913718
- $ref: '#/components/parameters/X-Requested-With'
13680-
- $ref: '#/components/parameters/include'
13719+
- $ref: '#/components/parameters/index'
13720+
- $ref: '#/components/parameters/client_include'
1368113721
- name: bounce_id
1368213722
in: path
1368313723
description: 'The postmark Bounce ID reference'
@@ -13720,7 +13760,8 @@ paths:
1372013760
parameters:
1372113761
- $ref: '#/components/parameters/X-API-TOKEN'
1372213762
- $ref: '#/components/parameters/X-Requested-With'
13723-
- $ref: '#/components/parameters/include'
13763+
- $ref: '#/components/parameters/index'
13764+
- $ref: '#/components/parameters/client_include'
1372413765
- name: client
1372513766
in: path
1372613767
description: 'The Client Hashed ID reference'

‎index.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222
targetKey: 'php',
2323
clientKey: 'php',
2424
},
25-
defaultOpenAllTags: true
25+
defaultOpenAllTags: true,
26+
hideModels: true,
27+
hideDownloadButton: true
28+
2629
}
2730

2831
document.getElementById('api-reference').dataset.configuration =

0 commit comments

Comments
 (0)
Please sign in to comment.