openapi: 3.2.0 info: version: 0.48.24 termsOfService: https://www.decisiv.com/terms-of-use contact: name: Decisiv Support email: support@decisiv.com url: https://www.decisiv.com title: Service Management Repair Statuses API description: The **Decisiv SRM Gateway** `Service Management` module provides the API functionality for managing an asset's case lifecycle from a Service Providers perspective. license: name: Proprietary identifier: proprietary url: https://www.decisiv.com/terms-of-use/ servers: - url: https://srm-api.staging.decisivapps.com - url: https://srm-api.decisivapps.com security: - OAuth2AuthorizationCode: [] AccessToken: [] - OAuth2Password: [] AccessToken: [] tags: - name: Repair Statuses paths: /service_management/{srm_account_id}/v1/repair_statuses: get: summary: List all the repair statuses tags: - Repair Statuses parameters: - name: srm_account_id in: path description: The account ID for SRM required: true schema: type: string responses: '200': description: Returns list of repair statuses content: application/vnd.api+json: example: data: - id: appointment type: decisiv_case_repair_statuses attributes: name: 'Appointment ' description: An appointment has been associated with the case category: arrival schema: $ref: '#/components/schemas/repair_statuses' '401': description: This response may occur when the access token provided within the Authorization token has expired. content: application/vnd.api+json: example: errors: - title: Access unauthorized detail: Access unauthorized code: decisiv::access_token:001 status: '401' schema: $ref: '#/components/schemas/errors_response' '403': description: This response may occur when the authenticated user embedded within the Authorization header does not have access to the requested resource. content: application/vnd.api+json: example: errors: - title: Forbidden detail: User does not have permission to perform this action on the requested resource(s) code: decisiv:access:001 status: '403' schema: $ref: '#/components/schemas/errors_response' components: schemas: repair_statuses: type: object required: - data properties: data: type: array items: $ref: '#/components/schemas/repair_status_properties-data' meta: type: object properties: record-count: type: integer description: Total count across all pages errors_response: type: object properties: errors: type: array items: $ref: '#/components/schemas/error_response' required: - errors repair_status_properties-data: type: object properties: id: type: string type: type: string enum: - decisiv_case_repair_statuses attributes: type: object properties: name: type: string description: Name of the repair status minLength: 1 maxLength: 150 description: type: string description: Description of the repair status minLength: 0 maxLength: 255 category: type: string description: Category of the repair status inside the case minLength: 0 maxLength: 255 required: - attributes - type - id error_response: type: object properties: status: type: string title: type: string detail: type: - string - 'null' code: type: - string - 'null' source: type: object properties: parameter: type: - string - 'null' pointer: type: - string - 'null' links: type: object description: Links related to this error (e.g. documentation reference). additionalProperties: type: string format: uri required: - status - title securitySchemes: AccessToken: type: http scheme: bearer bearerFormat: JWT OAuth2AuthorizationCode: type: oauth2 description: OAuth 2.0 Authorization Code flow. This is the required flow for new integrations. See https://api-docs.decisiv.net/docs/api/oauth/ flows: authorizationCode: authorizationUrl: https://login.decisiv.net/auth/api_gateway tokenUrl: https://login.decisiv.net/oauth/token refreshUrl: https://login.decisiv.net/oauth/token scopes: {} OAuth2Password: type: oauth2 description: '**Deprecated.** OAuth 2.0 Password flow. New integrations must use the Authorization Code flow (`OAuth2AuthorizationCode`); this flow remains available only during the migration window and will be removed in a future release. See https://api-docs.decisiv.net/docs/api/oauth/' flows: password: tokenUrl: https://login.decisiv.net/oauth/token scopes: {}