openapi: 3.2.0 info: title: Fenergo Data Deletion API version: '1.0' description: 'Operations tagged DataDeletion across 2 of this provider''s published API definitions: fenergo-dataprotectioncommand-v1-0-openapi.json, fenergo-productcommand-v1-0-openapi.json. Each path carries the servers of the definition it was published in.' servers: - url: /dataprotectioncommand - url: /productcommand security: - Bearer: [] tags: - name: Data Deletion paths: /api/datadeletion/deleteEntityData: post: tags: - Data Deletion summary: Delete entity data description: Executes deletion of entity data for a specified entity and jurisdiction operationId: DeleteEntityData parameters: - name: X-TENANT-ID in: header description: The UiD of the tenant representing organization required: true schema: type: string example: b11f8be3-f29b-4959-8964-956d4af7c468 requestBody: description: Request Fenergo.Nebula.Platform.Core.Models.Request.ServiceRequest`1 of Fenergo.Nebula.DataProtection.Command.Application.DataDeletion.EntityData.DeleteEntityDataDto containing necessary parameters. content: application/json: schema: allOf: - $ref: '#/components/schemas/DeleteEntityDataDtoServiceRequest' description: Service request data responses: '202': description: Success. Entity data deletion execution triggered '400': description: Bad request. The request has missing/invalid values content: application/json: schema: $ref: '#/components/schemas/ProblemDetails' '409': description: Conflict saving changes in expected version content: application/json: schema: $ref: '#/components/schemas/ObjectServiceResponse' example: data: {} messages: - message: There are conflicts that cannot be resolved automatically, get latest and apply your changes type: Error errorCode: CONFLICT '401': description: User is not authorized to perform this request content: application/json: example: message: Unauthorized '403': description: Access to resource is forbidden. content: application/json: schema: $ref: '#/components/schemas/ObjectServiceResponse' example: data: {} messages: - message: 'Access denied. Following permissions are required: Permission1, Permission2' type: Forbidden errorCode: Error Code '500': description: Internal server exception. Please, contact your provider. content: application/json: schema: $ref: '#/components/schemas/ObjectServiceResponse' example: data: null messages: - message: Internal server exception. Please, contact your provider. type: Error errorCode: INTERNAL_SERVER_ERROR '410': description: Endpoint marked as deprecated was terminated. This response will be present only if the endpoint was marked as deprecated and has reached the sunset date. During the deprecation period, the API will include additional 'sunset' and 'deprecation' headers. content: application/json: schema: $ref: '#/components/schemas/StringServiceResponse' example: data: null messages: - message: This endpoint is obsolete and was terminated on yyyy-MM-dd type: Error errorCode: OBSOLETE_ENDPOINT servers: - url: /dataprotectioncommand /api/datadeletion/markForDeletion/{entityId}: post: tags: - Data Deletion summary: Mark Entity Jurisdiction for deletion description: 'Required permissions: Following permissions are required: DataProtectionDelete' operationId: MarkForDeletion parameters: - name: entityId in: path description: Id of the entity marked for deletion required: true schema: type: string format: uuid - name: X-TENANT-ID in: header description: The UiD of the tenant representing organization required: true schema: type: string example: b11f8be3-f29b-4959-8964-956d4af7c468 requestBody: description: Request Fenergo.Nebula.Platform.Core.Models.Request.ServiceRequest`1 of Fenergo.Nebula.DataProtection.Command.Application.DataDeletion.MarkForDeletion.MarkForDeletionDto containing necessary parameters. content: application/json: schema: allOf: - $ref: '#/components/schemas/MarkForDeletionDtoServiceRequest' description: Service request data responses: '202': description: Success. The resource has been marked for deletion '400': description: Bad request. The request has missing/invalid values content: application/json: schema: $ref: '#/components/schemas/ProblemDetails' '401': description: User is not authorized to perform this request content: application/json: example: message: Unauthorized '403': description: Access to resource is forbidden. content: application/json: schema: $ref: '#/components/schemas/ObjectServiceResponse' example: data: {} messages: - message: 'Access denied. Following permissions are required: Permission1, Permission2' type: Forbidden errorCode: Error Code '500': description: Internal server exception. Please, contact your provider. content: application/json: schema: $ref: '#/components/schemas/ObjectServiceResponse' example: data: null messages: - message: Internal server exception. Please, contact your provider. type: Error errorCode: INTERNAL_SERVER_ERROR '410': description: Endpoint marked as deprecated was terminated. This response will be present only if the endpoint was marked as deprecated and has reached the sunset date. During the deprecation period, the API will include additional 'sunset' and 'deprecation' headers. content: application/json: schema: $ref: '#/components/schemas/StringServiceResponse' example: data: null messages: - message: This endpoint is obsolete and was terminated on yyyy-MM-dd type: Error errorCode: OBSOLETE_ENDPOINT servers: - url: /dataprotectioncommand /api/product/{productId}/datadeletion/{id}: put: tags: - Data Deletion summary: Set For Deletion status product draft description: 'Required permissions: Following permissions are required: ProductEdit' operationId: SetForDeletionProductDraft parameters: - name: productId in: path description: Product id required: true schema: type: string format: uuid - name: id in: path description: Product draft id required: true schema: type: string format: uuid - name: X-TENANT-ID in: header description: The UiD of the tenant representing organization required: true schema: type: string example: b11f8be3-f29b-4959-8964-956d4af7c468 responses: '409': description: Conflict saving changes in expected version content: application/json: schema: $ref: '#/components/schemas/ObjectServiceResponse_2' example: data: {} messages: - message: There are conflicts that cannot be resolved automatically, get latest and apply your changes type: Error errorCode: CONFLICT '400': description: Bad request. The request has missing/invalid values content: application/json: schema: $ref: '#/components/schemas/ServiceResponse' '404': description: Resource not found content: application/json: schema: $ref: '#/components/schemas/ObjectServiceResponse_2' example: data: {} messages: - message: Not Found. Product/Product draft with given id does not exist type: Error errorCode: Error Code '202': description: Success. Product draft updated '401': description: User is not authorized to perform this request content: application/json: example: message: Unauthorized '403': description: Access to resource is forbidden. content: application/json: schema: $ref: '#/components/schemas/ObjectServiceResponse_2' example: data: {} messages: - message: 'Access denied. Following permissions are required: Permission1, Permission2' type: Forbidden errorCode: Error Code '500': description: Internal server exception. Please, contact your provider. content: application/json: schema: $ref: '#/components/schemas/ObjectServiceResponse_2' example: data: null messages: - message: Internal server exception. Please, contact your provider. type: Error errorCode: INTERNAL_SERVER_ERROR '410': description: Endpoint marked as deprecated was terminated. This response will be present only if the endpoint was marked as deprecated and has reached the sunset date. During the deprecation period, the API will include additional 'sunset' and 'deprecation' headers. content: application/json: schema: $ref: '#/components/schemas/StringServiceResponse_2' example: data: null messages: - message: This endpoint is obsolete and was terminated on yyyy-MM-dd type: Error errorCode: OBSOLETE_ENDPOINT servers: - url: /productcommand components: schemas: DeleteEntityDataDto: type: object properties: entityId: type: string format: uuid jurisdictions: type: - array - 'null' items: type: string additionalProperties: false MarkForDeletionDto: type: object properties: jurisdiction: type: - string - 'null' initiatedOn: type: string format: date-time additionalProperties: false DeleteEntityDataDtoServiceRequest: type: object properties: data: allOf: - $ref: '#/components/schemas/DeleteEntityDataDto' description: The service request DTO additionalProperties: false description: Service request data ProblemDetails: type: object properties: type: type: - string - 'null' title: type: - string - 'null' status: type: - integer - 'null' format: int32 detail: type: - string - 'null' instance: type: - string - 'null' additionalProperties: {} ServiceResponseMessage: type: object properties: message: type: - string - 'null' description: The message example: Success type: type: - string - 'null' description: 'Type of the message One of Info, Warning, Error, Forbidden' example: Info errorCode: type: - string - 'null' description: Error Code example: INTERNAL_SERVER_ERROR additionalProperties: false description: The message associated to the service response MarkForDeletionDtoServiceRequest: type: object properties: data: allOf: - $ref: '#/components/schemas/MarkForDeletionDto' description: The service request DTO additionalProperties: false description: Service request data ObjectServiceResponse: type: object properties: data: description: The service response DTO messages: type: - array - 'null' items: $ref: '#/components/schemas/ServiceResponseMessage' description: List of Fenergo.Nebula.Platform.Core.Models.Response.ServiceResponseMessage associated to the service response additionalProperties: false description: Service response data StringServiceResponse: type: object properties: data: type: - string - 'null' description: The service response DTO messages: type: - array - 'null' items: $ref: '#/components/schemas/ServiceResponseMessage' description: List of Fenergo.Nebula.Platform.Core.Models.Response.ServiceResponseMessage associated to the service response additionalProperties: false description: Service response data ServiceResponse: type: object properties: data: type: - string - 'null' messages: type: - array - 'null' items: $ref: '#/components/schemas/ServiceResponseMessage_2' additionalProperties: false ServiceResponseMessage_2: type: object properties: message: type: - string - 'null' type: type: - string - 'null' errorCode: type: - string - 'null' additionalProperties: false ObjectServiceResponse_2: type: object properties: data: {} messages: type: - array - 'null' items: $ref: '#/components/schemas/ServiceResponseMessage_2' additionalProperties: false StringServiceResponse_2: type: object properties: data: type: - string - 'null' messages: type: - array - 'null' items: $ref: '#/components/schemas/ServiceResponseMessage_2' additionalProperties: false securitySchemes: Bearer: type: apiKey description: Please insert JWT with Bearer into field name: Authorization in: header x-refined-from: - fenergo-dataprotectioncommand-v1-0-openapi.json - fenergo-productcommand-v1-0-openapi.json