@@ -165,6 +165,52 @@ paths:
165165        - oauth2 :
166166            - address:basic 
167167            - address:coordinates 
168+   /assessment_token/generate_for_customer :
169+     post :
170+       responses :
171+         200 :
172+           $ref : ' #/components/responses/JWTResponse' 
173+         400 :
174+           $ref : ' #/components/responses/BadRequest' 
175+         401 :
176+           $ref : ' #/components/responses/Unauthorized' 
177+         422 :
178+           $ref : ' #/components/responses/UnprocessableEntity' 
179+       summary : Create a JWT token to log in a customer on the assessment portal 
180+       description : |- 
181+         This endpoint can be used to create a JWT token to log in a customer on the assessment portal 
182+        tags :
183+         - Assessment token 
184+       parameters :
185+         - $ref : ' #/components/parameters/JsonHeader' 
186+       requestBody :
187+         $ref : " #/components/requestBodies/GenerateAssessmentTokenForCustomer" 
188+       security :
189+         - oauth2 :
190+             - assessment_token:generate 
191+   /assessment_token/generate_for_partner :
192+     post :
193+       responses :
194+         200 :
195+           $ref : ' #/components/responses/JWTResponse' 
196+         400 :
197+           $ref : ' #/components/responses/BadRequest' 
198+         401 :
199+           $ref : ' #/components/responses/Unauthorized' 
200+         422 :
201+           $ref : ' #/components/responses/UnprocessableEntity' 
202+       summary : Create a JWT token to log in a customer's partner on the assessment portal 
203+       description : |- 
204+         This endpoint can be used to create a JWT token to log in a customer's partner on the assessment portal 
205+        tags :
206+         - Assessment token 
207+       parameters :
208+         - $ref : ' #/components/parameters/JsonHeader' 
209+       requestBody :
210+         $ref : " #/components/requestBodies/GenerateAssessmentTokenForCustomer" 
211+       security :
212+         - oauth2 :
213+             - assessment_token:generate 
168214  /attachable :
169215    post :
170216      responses :
@@ -3964,6 +4010,8 @@ tags:
39644010    description : Endpoint for Account resource management 
39654011  - name : Address 
39664012    description : Endpoint for Address resource management 
4013+   - name : Assessment token 
4014+     description : Endpoint for generating Assessment JTW 
39674015  - name : Attachable 
39684016    description : Endpoint for Attachable resource management 
39694017  - name : Calendar 
@@ -4430,6 +4478,32 @@ components:
44304478        application/json :
44314479          schema :
44324480            $ref : ' #/components/schemas/Address' 
4481+     GenerateAssessmentTokenForCustomer :
4482+       content :
4483+         application/json :
4484+           schema :
4485+             type : object 
4486+             required :
4487+               - customer_id 
4488+             properties :
4489+               customer_id :
4490+                 type : integer 
4491+                 description : Id of the customer 
4492+               client_id :
4493+                 type : integer 
4494+                 description : Optionally provide a different oauth client id 
4495+               type :
4496+                 $ref : ' #/components/schemas/PortalInvitationTypeEnum' 
4497+           examples :
4498+             GenerateDefaultAssessmentTokenForCustomer :
4499+               value :
4500+                 customer_id : 2 
4501+                 client_id : 12345 
4502+             GenerateCustomAssessmentTokenForCustomer :
4503+               value :
4504+                 customer_id : 2 
4505+                 client_id : 12345 
4506+                 type : ' full' 
44334507    CreateAttachable :
44344508      content :
44354509        application/json :
@@ -4835,6 +4909,7 @@ components:
48354909            ' address:create '  : Nieuwe adressen aanmaken 
48364910            ' address:update '  : Adres updaten 
48374911            ' address:delete '  : Adres delete 
4912+             ' assessment_token:generate '  : Generate assessment jwt auth token 
48384913            ' attachable:basic '  : Attachable inzien 
48394914            ' attachable:create '  : Attachable aanmaken 
48404915            ' attachable:update '  : Attachable updaten 
@@ -7295,6 +7370,22 @@ components:
72957370          examples :
72967371            PaginatedAddressExample :
72977372              $ref : ' #/components/examples/PaginatedAddressesExample' 
7373+     JWTResponse :
7374+       description : A JWT response 
7375+       headers : { } 
7376+       content :
7377+         application/json :
7378+           schema :
7379+             type : object 
7380+             properties :
7381+               data :
7382+                 type : object 
7383+                 properties :
7384+                   token :
7385+                     type : string 
7386+           examples :
7387+             JWTResponseExample :
7388+               $ref : ' #/components/examples/JWTResponseExample' 
72987389    Attachable :
72997390      description : An attachable resource 
73007391      headers : { } 
@@ -8350,6 +8441,11 @@ components:
83508441            current : 1 
83518442            total_pages : 1 
83528443            links : [ ] 
8444+     JWTResponseExample :
8445+       summary : 200 OK 
8446+       value :
8447+         data :
8448+           token : ' eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c' 
83538449    AttachableExample :
83548450      summary : 200 OK 
83558451      value :
0 commit comments