|
| 1 | +get: |
| 2 | + tags: |
| 3 | + - models |
| 4 | + operationId: getModelInstanceConfig |
| 5 | + summary: Get a model’s instance configuration. |
| 6 | + description: Get the configuration for a model that was activated. |
| 7 | + parameters: |
| 8 | + - $ref: '../../common/parameters.yml#/modelID' |
| 9 | + responses: |
| 10 | + '200': |
| 11 | + description: OK |
| 12 | + content: |
| 13 | + application/json: |
| 14 | + schema: |
| 15 | + title: getModelInstanceConfigResponse |
| 16 | + $ref: '../../responses/Models.yml#/modelInstance' |
| 17 | + '401': |
| 18 | + $ref: '../../responses/InvalidCredentials.yml' |
| 19 | + '404': |
| 20 | + $ref: '../../../common/responses/IndexNotFound.yml' |
| 21 | + '422': |
| 22 | + $ref: '../../../common/responses/UnprocessableEntity.yml' |
| 23 | + '500': |
| 24 | + $ref: '../../../common/responses/InternalError.yml' |
| 25 | + |
| 26 | +post: |
| 27 | + tags: |
| 28 | + - models |
| 29 | + operationId: updateModelInstance |
| 30 | + summary: Update a model instance. |
| 31 | + description: Update a model’s configuration. |
| 32 | + parameters: |
| 33 | + - $ref: '../../common/parameters.yml#/modelID' |
| 34 | + requestBody: |
| 35 | + required: true |
| 36 | + content: |
| 37 | + application/json: |
| 38 | + schema: |
| 39 | + $ref: '../../common/schemas/modelsParams.yml#/updateModelParams' |
| 40 | + responses: |
| 41 | + '200': |
| 42 | + description: OK |
| 43 | + content: |
| 44 | + application/json: |
| 45 | + schema: |
| 46 | + title: updateModelInstanceResponse |
| 47 | + type: object |
| 48 | + additionalProperties: false |
| 49 | + properties: |
| 50 | + modelID: |
| 51 | + type: string |
| 52 | + description: The ID of the model. |
| 53 | + updatedAt: |
| 54 | + $ref: '../../../common/responses/common.yml#/updatedAt' |
| 55 | + required: |
| 56 | + - modelID |
| 57 | + - updatedAt |
| 58 | + '401': |
| 59 | + $ref: '../../responses/InvalidCredentials.yml' |
| 60 | + '404': |
| 61 | + $ref: '../../../common/responses/IndexNotFound.yml' |
| 62 | + '422': |
| 63 | + $ref: '../../../common/responses/UnprocessableEntity.yml' |
| 64 | + '500': |
| 65 | + $ref: '../../../common/responses/InternalError.yml' |
| 66 | + |
| 67 | +delete: |
| 68 | + tags: |
| 69 | + - models |
| 70 | + operationId: deleteModelInstance |
| 71 | + summary: Delete a model instance. |
| 72 | + description: Delete the model’s configuration, pipelines and generated predictions. |
| 73 | + parameters: |
| 74 | + - $ref: '../../common/parameters.yml#/modelID' |
| 75 | + responses: |
| 76 | + '200': |
| 77 | + description: OK |
| 78 | + content: |
| 79 | + application/json: |
| 80 | + schema: |
| 81 | + title: deleteModelInstanceResponse |
| 82 | + type: object |
| 83 | + additionalProperties: false |
| 84 | + properties: |
| 85 | + modelID: |
| 86 | + type: string |
| 87 | + description: The ID of the model. |
| 88 | + deletedUntil: |
| 89 | + type: string |
| 90 | + description: The date until which you can safely consider the data as being deleted. |
| 91 | + required: |
| 92 | + - modelID |
| 93 | + - deletedUntil |
| 94 | + '401': |
| 95 | + $ref: '../../responses/InvalidCredentials.yml' |
| 96 | + '404': |
| 97 | + $ref: '../../../common/responses/IndexNotFound.yml' |
| 98 | + '422': |
| 99 | + $ref: '../../../common/responses/UnprocessableEntity.yml' |
| 100 | + '500': |
| 101 | + $ref: '../../../common/responses/InternalError.yml' |
0 commit comments