@@ -168,6 +168,65 @@ curl --location --request POST 'http://localhost:5000/config/ae/' \
168168
169169---
170170
171+ ## PUT /config/ae
172+
173+ Updates an existing MONAI SCP Application Entity.
174+
175+ > [ !Note]
176+ > The MONAI SCP AE Title cannot be changed.
177+
178+ > [ !Note]
179+ > The DICOM tag used for ` grouping ` can be either a Study Instance UID (0020,000D) or Series Instance UID (0020,000E).
180+ > The default is set to a Study Instance UID (0020,000D) if not specified.
181+
182+ > [ !Note]
183+ > ` timeout ` is the number of seconds the AE Title will wait between each instance before assembling a payload and publishing
184+ > a workflow request. We recommend calculating this value based on the network speed and the maximum size of each
185+ > DICOM instance.
186+
187+ ### Parameters
188+
189+ See the [ MonaiApplicationEntity] ( xref:Monai.Deploy.InformaticsGateway.Api.MonaiApplicationEntity )
190+ class definition for details.
191+
192+ ### Responses
193+
194+ Response Content Type: JSON - [ MonaiApplicationEntity] ( xref:Monai.Deploy.InformaticsGateway.Api.MonaiApplicationEntity ) .
195+
196+ | Code | Description |
197+ | ---- | ------------------------------------------------------------------------------------------------------------------------------------------- |
198+ | 200 | AE Title updated successfully. |
199+ | 400 | Validation error. The response will be a [ Problem details] ( https://datatracker.ietf.org/doc/html/rfc7807 ) object with server error details. |
200+ | 404 | Named MONAI AE not found. |
201+ | 500 | Server error. The response will be a [ Problem details] ( https://datatracker.ietf.org/doc/html/rfc7807 ) object with server error details. |
202+
203+ ### Example Request
204+
205+ ``` bash
206+ curl --location --request PUT ' http://localhost:5000/config/ae/' \
207+ --header ' Content-Type: application/json' \
208+ --data-raw ' {
209+ "name": "breast-tumor",
210+ "timeout": 3,
211+ "workflows": [
212+ "3f6a08a1-0dea-44e9-ab82-1ff1adf43a8e"
213+ ]
214+ }
215+ }'
216+ ```
217+
218+ ### Example Response
219+
220+ ``` json
221+ {
222+ "name" : " breast-tumor" ,
223+ "aeTitle" : " BREASTV1" ,
224+ "workflows" : [" 3f6a08a1-0dea-44e9-ab82-1ff1adf43a8e" ],
225+ "timeout" : 3
226+ }
227+ ```
228+
229+ ---
171230## DELETE /config/ae/{name}
172231
173232Deletes the specified MONAI SCP Application Entity.
0 commit comments