|
| 1 | +get: |
| 2 | + tags: |
| 3 | + - Configuration |
| 4 | + summary: "Retrieve task-specific training configuration" |
| 5 | + description: | |
| 6 | + Retrieves the training configuration for a specific project and task. |
| 7 | + |
| 8 | + - Task ID is required for task chain projects |
| 9 | + - If model_manifest_id is provided, returns configuration for that specific model architecture |
| 10 | + - If model_id is provided, returns configuration for a specific trained model |
| 11 | + - Without model_manifest_id or model_id, returns only general task-related configuration |
| 12 | + operationId: GetTrainingConfiguration |
| 13 | + parameters: |
| 14 | + - $ref: "../../parameters/path/organization_id.yaml" |
| 15 | + - $ref: "../../parameters/path/workspace_id.yaml" |
| 16 | + - $ref: "../../parameters/path/project_id.yaml" |
| 17 | + - $ref: "../../parameters/query/task_id.yaml" |
| 18 | + - $ref: "../../parameters/query/model_manifest_id.yaml" |
| 19 | + - $ref: "../../parameters/query/model_id.yaml" |
| 20 | + responses: |
| 21 | + '200': |
| 22 | + description: Training configuration retrieved successfully |
| 23 | + content: |
| 24 | + application/json: |
| 25 | + schema: |
| 26 | + $ref: "../../../../interactive_ai/services/api/schemas/configuration/responses/revamp/training_configuration.yaml" |
| 27 | + examples: |
| 28 | + Training configuration response: |
| 29 | + value: |
| 30 | + $ref: "../../examples/configuration/responses/revamp/training_configuration.json" |
| 31 | + '404': |
| 32 | + description: Object not found. See the examples for details. |
| 33 | + content: |
| 34 | + application/json: |
| 35 | + schema: |
| 36 | + $ref: "../../../../interactive_ai/services/api/schemas/generic_responses/error_response.yaml" |
| 37 | + examples: |
| 38 | + Organization not found response: |
| 39 | + value: |
| 40 | + $ref: "../../examples/organizations/error_responses/organization_not_found.json" |
| 41 | + Workspace not found response: |
| 42 | + value: |
| 43 | + $ref: "../../examples/workspaces/error_responses/workspace_not_found.json" |
| 44 | + Project not found response: |
| 45 | + value: |
| 46 | + $ref: "../../examples/projects/error_responses/project_not_found.json" |
| 47 | + Task not found response: |
| 48 | + value: |
| 49 | + $ref: "../../examples/configuration/error_responses/revamp/task_not_found.json" |
| 50 | + '400': |
| 51 | + description: Query parameter error. See the examples for details. |
| 52 | + content: |
| 53 | + application/json: |
| 54 | + schema: |
| 55 | + $ref: "../../../../interactive_ai/services/api/schemas/generic_responses/error_response.yaml" |
| 56 | + examples: |
| 57 | + Payload validation error response: |
| 58 | + value: |
| 59 | + $ref: "../../examples/configuration/error_responses/revamp/missing_task_id.json" |
| 60 | + |
| 61 | +patch: |
| 62 | + tags: |
| 63 | + - Configuration |
| 64 | + summary: "Update training configuration parameters" |
| 65 | + description: | |
| 66 | + Updates the training configuration parameters for a task or specific model architecture. |
| 67 | + |
| 68 | + - Task ID is required for task chain projects |
| 69 | + - If only task_id is provided, updates general task-related configuration |
| 70 | + - If model_manifest_id is provided, updates configuration for that specific model architecture |
| 71 | + |
| 72 | + The updated configuration will affect future training sessions but will not modify already trained models. |
| 73 | + operationId: UpdateTrainingConfiguration |
| 74 | + parameters: |
| 75 | + - $ref: "../../parameters/path/organization_id.yaml" |
| 76 | + - $ref: "../../parameters/path/workspace_id.yaml" |
| 77 | + - $ref: "../../parameters/path/project_id.yaml" |
| 78 | + - $ref: "../../parameters/query/task_id.yaml" |
| 79 | + - $ref: "../../parameters/query/model_manifest_id.yaml" |
| 80 | + requestBody: |
| 81 | + content: |
| 82 | + application/json: |
| 83 | + schema: |
| 84 | + $ref: "../../../../interactive_ai/services/api/schemas/configuration/requests/revamp/training_configuration.yaml" |
| 85 | + examples: |
| 86 | + Training configuration request: |
| 87 | + value: |
| 88 | + $ref: "../../examples/configuration/requests/revamp/training_configuration.json" |
| 89 | + required: true |
| 90 | + responses: |
| 91 | + '204': |
| 92 | + description: Training configuration updated successfully |
| 93 | + '404': |
| 94 | + description: Object not found. See the examples for details. |
| 95 | + content: |
| 96 | + application/json: |
| 97 | + schema: |
| 98 | + $ref: "../../../../interactive_ai/services/api/schemas/generic_responses/error_response.yaml" |
| 99 | + examples: |
| 100 | + Organization not found response: |
| 101 | + value: |
| 102 | + $ref: "../../examples/organizations/error_responses/organization_not_found.json" |
| 103 | + Workspace not found response: |
| 104 | + value: |
| 105 | + $ref: "../../examples/workspaces/error_responses/workspace_not_found.json" |
| 106 | + Project not found response: |
| 107 | + value: |
| 108 | + $ref: "../../examples/projects/error_responses/project_not_found.json" |
| 109 | + Task not found response: |
| 110 | + value: |
| 111 | + $ref: "../../examples/configuration/error_responses/revamp/task_not_found.json" |
| 112 | + '400': |
| 113 | + description: Payload configuration contains validation error. See the examples for details. |
| 114 | + content: |
| 115 | + application/json: |
| 116 | + schema: |
| 117 | + $ref: "../../../../interactive_ai/services/api/schemas/generic_responses/error_response.yaml" |
| 118 | + examples: |
| 119 | + Payload validation error response: |
| 120 | + value: |
| 121 | + $ref: "../../examples/configuration/error_responses/revamp/pydantic_validation_error.json" |
0 commit comments